1 /*
2  * CCondition.hh
3  *
4  * Copyright 2014-2018 D. Mitch Bailey  cvc at shuharisystem dot com
5  *
6  * This file is part of cvc.
7  *
8  * cvc is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * cvc is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with cvc.  If not, see <http://www.gnu.org/licenses/>.
20  *
21  * You can download cvc from https://github.com/d-m-bailey/cvc.git
22  */
23 
24 #ifndef CCONDITION_HH_
25 #define CCONDITION_HH_
26 
27 #include "Cvc.hh"
28 
29 #include "CNormalValue.hh"
30 
31 class CCondition {
32 public:
33 	string parameter;
34 	relation_t	relation;
35 	string	stringValue;
36 	CNormalValue	numericValue;
37 
38 	CCondition(string theParameter, string theRelation, string theValue);
39 	bool	CheckCondition(CNormalValue & theCheckValue);
40 	long int	ConvertValue(string theStringValue);
41 
42 	string	PrintRelation();
43 	string	PrintValue();
44 	void	Print(ostream & theLogFile = cout, string theIndentation = "");
45 };
46 
47 class CConditionPtrList : public list<CCondition *> {
48 public:
49 
50 };
51 
52 
53 #endif /* CCONDITION_HH_ */
54