| 19 |
|
#define ETAVALUE_ID "ETAVALUE" |
| 20 |
|
|
| 21 |
|
using namespace std; |
| 22 |
< |
|
| 22 |
> |
//////////////////////////////////////////////////////////////////////////////// |
| 23 |
> |
//Declaration of GenericData |
| 24 |
> |
//////////////////////////////////////////////////////////////////////////////// |
| 25 |
|
class GenericData |
| 26 |
|
{ |
| 27 |
|
public: |
| 31 |
|
virtual ~GenericData() {} |
| 32 |
|
|
| 33 |
|
const string& getID() const { return id; } |
| 34 |
< |
void setID(string rhs) { id = rhs; } |
| 34 |
> |
void setID(const string& rhs) { id = rhs; } |
| 35 |
|
|
| 36 |
|
protected: |
| 37 |
|
string id; |
| 38 |
|
}; |
| 39 |
|
|
| 40 |
< |
/** Something we can improve it here is to use template |
| 41 |
< |
** |
| 40 |
> |
/** |
| 41 |
> |
* Something we can improve it here is to use template |
| 42 |
|
*/ |
| 43 |
< |
|
| 43 |
> |
//////////////////////////////////////////////////////////////////////////////// |
| 44 |
> |
//Declaration of IntData |
| 45 |
> |
//////////////////////////////////////////////////////////////////////////////// |
| 46 |
|
class IntData : public GenericData{ |
| 47 |
|
|
| 48 |
|
public: |
| 54 |
|
int data; |
| 55 |
|
}; |
| 56 |
|
|
| 57 |
+ |
//////////////////////////////////////////////////////////////////////////////// |
| 58 |
+ |
//Declaration of DoubleData |
| 59 |
+ |
//////////////////////////////////////////////////////////////////////////////// |
| 60 |
|
class DoubleData : public GenericData{ |
| 61 |
|
|
| 62 |
|
public: |
| 68 |
|
double data; |
| 69 |
|
}; |
| 70 |
|
|
| 71 |
+ |
//////////////////////////////////////////////////////////////////////////////// |
| 72 |
+ |
//Declaration of StringData |
| 73 |
+ |
//////////////////////////////////////////////////////////////////////////////// |
| 74 |
|
class StringData : public GenericData{ |
| 75 |
|
|
| 76 |
|
public: |
| 80 |
|
string data; |
| 81 |
|
}; |
| 82 |
|
|
| 83 |
+ |
//////////////////////////////////////////////////////////////////////////////// |
| 84 |
+ |
//Declaration of BoolData |
| 85 |
+ |
//////////////////////////////////////////////////////////////////////////////// |
| 86 |
+ |
class BoolData : public GenericData{ |
| 87 |
+ |
public: |
| 88 |
+ |
bool getData() const { return data; } |
| 89 |
+ |
void setData(const bool rhs) { data = rhs; } |
| 90 |
+ |
protected: |
| 91 |
+ |
bool data; |
| 92 |
+ |
|
| 93 |
+ |
}; |
| 94 |
+ |
|
| 95 |
+ |
//////////////////////////////////////////////////////////////////////////////// |
| 96 |
+ |
//Declaration of ZConsParaData |
| 97 |
+ |
//////////////////////////////////////////////////////////////////////////////// |
| 98 |
|
struct ZConsParaItem { |
| 99 |
|
int zconsIndex; |
| 100 |
|
bool havingZPos; |
| 126 |
|
|
| 127 |
|
}; |
| 128 |
|
|
| 129 |
+ |
//////////////////////////////////////////////////////////////////////////////// |
| 130 |
+ |
//Declaration of IntData |
| 131 |
+ |
//////////////////////////////////////////////////////////////////////////////// |
| 132 |
|
class DoubleArrayData : public GenericData{ |
| 133 |
|
|
| 134 |
|
public: |
| 142 |
|
vector<double> data; |
| 143 |
|
}; |
| 144 |
|
|
| 145 |
+ |
//////////////////////////////////////////////////////////////////////////////// |
| 146 |
+ |
//Declaration of AtomData |
| 147 |
+ |
//////////////////////////////////////////////////////////////////////////////// |
| 148 |
|
struct AtomInfo : public GenericData{ |
| 149 |
|
public: |
| 150 |
|
string AtomType; |
| 171 |
|
vector<AtomInfo*> data; |
| 172 |
|
}; |
| 173 |
|
|
| 143 |
– |
|
| 144 |
– |
|
| 174 |
|
#endif |