blob: a1e80f2fbbc04cfe4e9a3c6729e33a0901be6983 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
/*
* cData.h
*
* Created on: Jan 26, 2017
* Author: jonas
*/
#ifndef NULL
#define NULL 0x00
#endif
#ifndef SRC_CDATA_H_
#define SRC_CDATA_H_
#include <string>
using namespace std;
class cData{
public:
cData(string _data, bool _empty = false);
/*
* Initializes cData with _data as saved Information
*/
~cData();
string getData();
/*
* Returns content of cData instance as String
*/
cData* clone();
/*
* clones current cData instance
*/
bool isEmpty();
//Define operators
bool operator<(cData);
bool operator>(cData);
bool operator<(string);
bool operator>(string);
bool operator==(cData);
bool operator==(string);
private:
bool empty;
string sData;
};
#endif /* SRC_CDATA_H_ */
|