summaryrefslogtreecommitdiff
path: root/tree/src/cData.h
blob: 14c916ab60346dd9188550ee1acea17b352ea5e4 (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
/*
 * 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);
	/*
	 * Initializes cData with _data as saved Information
	 */
	~cData();

	string getData();
	/*
	 * Returns content of cData instance as String
	 */

	cData* clone();
	/*
	 * clones current cData instance
	 */

	//Define operators
	bool operator<(cData);
	bool operator>(cData);
	bool operator<(string);
	bool operator>(string);
	bool operator==(cData);
	bool operator==(string);

private:
	string sData;
};




#endif /* SRC_CDATA_H_ */