SliceLikeParams.cpp
Go to the documentation of this file.
/* Frobby: Software for monomial ideal computations.
Copyright (C) 2009 University of Aarhus
Contact Bjarke Hammersholt Roune for license information (www.broune.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses/.
*/
#include "stdinc.h"
#include "SliceLikeParams.h"
#include "CliParams.h"
SliceLikeParams::SliceLikeParams():
_useSimplification(true) {
}
namespace {
static const char* UseSimplificationName = "simplify";
}
void addSliceLikeParams(CliParams& params) {
}
void extractCliValues(SliceLikeParams& slice, const CliParams& cli) {
extractCliValues(static_cast<CommonParams&>(slice), cli);
slice.useSimplification(getBool(cli, UseSimplificationName));
}
getBool
bool getBool(const CliParams &params, const string &name)
Definition CliParams.cpp:124
CliParams.h
addSliceLikeParams
void addSliceLikeParams(CliParams &params)
Definition SliceLikeParams.cpp:31
extractCliValues
void extractCliValues(SliceLikeParams &slice, const CliParams &cli)
Definition SliceLikeParams.cpp:34
SliceLikeParams.h
CliParams
Definition CliParams.h:28
CommonParams
Definition CommonParams.h:25
SliceLikeParams
Definition SliceLikeParams.h:25
SliceLikeParams::_useSimplification
bool _useSimplification
Definition SliceLikeParams.h:36
SliceLikeParams::useSimplification
void useSimplification(bool value)
Definition SliceLikeParams.h:33
SliceLikeParams::SliceLikeParams
SliceLikeParams()
Definition SliceLikeParams.cpp:23
stdinc.h
This header file includes common definitions and is included as the first line of code in every imple...