Frobby 0.10.0
Loading...
Searching...
No Matches
CommonParams.h
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
25class CommonParams {
26 public:
27 CommonParams();
28
38 bool getIdealIsMinimal() const {return _idealIsMinimal;}
39 void idealIsMinimal(bool value) {_idealIsMinimal = value;}
40
43 bool getPrintActions() const {return _printActions;}
44 void printActions(bool value) {_printActions = value;}
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
56 bool getProduceCanonicalOutput() const {return _produceCanonicalOutput;}
57 void produceCanonicalOutput(bool value) {_produceCanonicalOutput = value;}
58
61 bool getPrintDebug() const {return _printDebug;}
62 void printDebug(bool value) {_printDebug = value;}
63
66 bool getPrintStatistics() const {return _printStatistics;}
67 void printStatistics(bool value) {_printStatistics = value;}
68
69 private:
70 bool _idealIsMinimal;
71 bool _printActions;
72 bool _produceCanonicalOutput;
73 bool _printDebug;
74 bool _printStatistics;
75
76 string _inputFormat;
77 string _outputFormat;
78};
79
80void addCommonParams(CliParams& params);
81void addDebugParam(CliParams& params);
82
83void extractCliValues(CommonParams& common, const CliParams& cli);
84
85#endif
Definition CliParams.h:28
Definition CommonParams.h:25
const string & getInputFormat() const
Definition CommonParams.h:47
const string & getOutputFormat() const
Definition CommonParams.h:51
bool getPrintStatistics() const
Definition CommonParams.h:66
bool getPrintDebug() const
Definition CommonParams.h:61
bool getPrintActions() const
Definition CommonParams.h:43
bool getIdealIsMinimal() const
Definition CommonParams.h:38
bool getProduceCanonicalOutput() const
Definition CommonParams.h:56