Frobby 0.9.5
CommonParams.h
Go to the documentation of this file.
1/* Frobby: Software for monomial ideal computations.
2 Copyright (C) 2009 University of Aarhus
3 Contact Bjarke Hammersholt Roune for license information (www.broune.com)
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see http://www.gnu.org/licenses/.
17*/
18#ifndef COMMON_PARAMS_GUARD
19#define COMMON_PARAMS_GUARD
20
21#include <string>
22
23class CliParams;
24
26 public:
28
38 bool getIdealIsMinimal() const {return _idealIsMinimal;}
40
43 bool getPrintActions() const {return _printActions;}
45
47 const string& getInputFormat() const {return _inputFormat;}
48 void setInputFormat(const string& value) {_inputFormat = value;}
49
51 const string& getOutputFormat() const {return _outputFormat;}
52 void setOutputFormat(const string& value) {_outputFormat = value;}
53
58
61 bool getPrintDebug() const {return _printDebug;}
63
66 bool getPrintStatistics() const {return _printStatistics;}
68
69 private:
75
78};
79
82
84
85#endif
void extractCliValues(CommonParams &common, const CliParams &cli)
void addDebugParam(CliParams &params)
void addCommonParams(CliParams &params)
void nameFactoryRegister(NameFactory< AbstractProduct > &factory)
Registers the string returned by ConcreteProduct::getStaticName() to a function that default-construc...
void printStatistics(bool value)
const string & getInputFormat() const
Returns the format used for parsing input.
void printActions(bool value)
void idealIsMinimal(bool value)
const string & getOutputFormat() const
Returns the format in which output is produced.
bool _printStatistics
void setOutputFormat(const string &value)
string _outputFormat
bool getPrintStatistics() const
Returns whether to print statistics on what the algorithm did to standard error after it has run.
bool _idealIsMinimal
void printDebug(bool value)
bool getPrintDebug() const
Returns whether to print information about what the algorithm is doing to standard error as it runs.
bool _produceCanonicalOutput
string _inputFormat
void produceCanonicalOutput(bool value)
void setInputFormat(const string &value)
bool getPrintActions() const
Returns whether to print and time the large-scale actions that Frobby performs.
bool getIdealIsMinimal() const
Returns whether the input ideal is known to be minimally generated.
bool getProduceCanonicalOutput() const
Returns whether to produce output in a canonical representation.