| 16 |
|
class GenericData |
| 17 |
|
{ |
| 18 |
|
public: |
| 19 |
< |
GenericData() |
| 19 |
> |
GenericData(); |
| 20 |
|
GenericData(char* theID); |
| 21 |
|
GenericData(char* theID, double theDval); |
| 22 |
|
GenericData(char* theID, char* theCval); |
| 59 |
|
|
| 60 |
|
double dVal; |
| 61 |
|
double *dArray; |
| 62 |
< |
int arrayLenth; |
| 62 |
> |
int arrayLength; |
| 63 |
|
char cVal[GD_STRING_LENGTH]; |
| 64 |
|
}; |
| 65 |
|
|
| 92 |
|
|
| 93 |
|
// }; |
| 94 |
|
|
| 95 |
– |
class DoubleArrayData : public GenericData{ |
| 95 |
|
|
| 97 |
– |
public: |
| 98 |
– |
vector<double> getData() const { return data; } |
| 99 |
– |
void setData(double* source, int num){ |
| 100 |
– |
data.clear(); |
| 101 |
– |
for(int i = 0; i < num; i++) |
| 102 |
– |
data.push_back(source[i]); |
| 103 |
– |
} |
| 104 |
– |
protected: |
| 105 |
– |
vector<double> data; |
| 106 |
– |
}; |
| 96 |
|
#endif |