CommonParams.h
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/.
*/
#ifndef COMMON_PARAMS_GUARD
#define COMMON_PARAMS_GUARD
#include <string>
class CliParams;
class CommonParams {
public:
CommonParams();
bool getIdealIsMinimal() const {return _idealIsMinimal;}
void idealIsMinimal(bool value) {_idealIsMinimal = value;}
bool getPrintActions() const {return _printActions;}
void printActions(bool value) {_printActions = value;}
const string& getInputFormat() const {return _inputFormat;}
void setInputFormat(const string& value) {_inputFormat = value;}
const string& getOutputFormat() const {return _outputFormat;}
void setOutputFormat(const string& value) {_outputFormat = value;}
bool getProduceCanonicalOutput() const {return _produceCanonicalOutput;}
void produceCanonicalOutput(bool value) {_produceCanonicalOutput = value;}
bool getPrintDebug() const {return _printDebug;}
void printDebug(bool value) {_printDebug = value;}
bool getPrintStatistics() const {return _printStatistics;}
void printStatistics(bool value) {_printStatistics = value;}
private:
bool _idealIsMinimal;
bool _printActions;
bool _produceCanonicalOutput;
bool _printDebug;
bool _printStatistics;
string _inputFormat;
string _outputFormat;
};
void addCommonParams(CliParams& params);
void addDebugParam(CliParams& params);
void extractCliValues(CommonParams& common, const CliParams& cli);
#endif
extractCliValues
void extractCliValues(CommonParams &common, const CliParams &cli)
Definition CommonParams.cpp:59
addDebugParam
void addDebugParam(CliParams &params)
Definition CommonParams.cpp:45
addCommonParams
void addCommonParams(CliParams &params)
Definition CommonParams.cpp:55
CliParams
Definition CliParams.h:28
CommonParams
Definition CommonParams.h:25
CommonParams::printStatistics
void printStatistics(bool value)
Definition CommonParams.h:67
CommonParams::getInputFormat
const string & getInputFormat() const
Returns the format used for parsing input.
Definition CommonParams.h:47
CommonParams::printActions
void printActions(bool value)
Definition CommonParams.h:44
CommonParams::idealIsMinimal
void idealIsMinimal(bool value)
Definition CommonParams.h:39
CommonParams::getOutputFormat
const string & getOutputFormat() const
Returns the format in which output is produced.
Definition CommonParams.h:51
CommonParams::_printStatistics
bool _printStatistics
Definition CommonParams.h:74
CommonParams::setOutputFormat
void setOutputFormat(const string &value)
Definition CommonParams.h:52
CommonParams::_outputFormat
string _outputFormat
Definition CommonParams.h:77
CommonParams::getPrintStatistics
bool getPrintStatistics() const
Returns whether to print statistics on what the algorithm did to standard error after it has run.
Definition CommonParams.h:66
CommonParams::_idealIsMinimal
bool _idealIsMinimal
Definition CommonParams.h:70
CommonParams::printDebug
void printDebug(bool value)
Definition CommonParams.h:62
CommonParams::getPrintDebug
bool getPrintDebug() const
Returns whether to print information about what the algorithm is doing to standard error as it runs.
Definition CommonParams.h:61
CommonParams::_produceCanonicalOutput
bool _produceCanonicalOutput
Definition CommonParams.h:72
CommonParams::CommonParams
CommonParams()
Definition CommonParams.cpp:25
CommonParams::_inputFormat
string _inputFormat
Definition CommonParams.h:76
CommonParams::produceCanonicalOutput
void produceCanonicalOutput(bool value)
Definition CommonParams.h:57
CommonParams::setInputFormat
void setInputFormat(const string &value)
Definition CommonParams.h:48
CommonParams::getPrintActions
bool getPrintActions() const
Returns whether to print and time the large-scale actions that Frobby performs.
Definition CommonParams.h:43
CommonParams::_printActions
bool _printActions
Definition CommonParams.h:71
CommonParams::getIdealIsMinimal
bool getIdealIsMinimal() const
Returns whether the input ideal is known to be minimally generated.
Definition CommonParams.h:38
CommonParams::_printDebug
bool _printDebug
Definition CommonParams.h:73
CommonParams::getProduceCanonicalOutput
bool getProduceCanonicalOutput() const
Returns whether to produce output in a canonical representation.
Definition CommonParams.h:56