forked from uroni/urbackup_backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Table.h
55 lines (44 loc) · 1.26 KB
/
Table.h
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
#include <map>
#include <vector>
#include <string>
#include "Interface/Table.h"
class CRATable : public ITable
{
public:
~CRATable();
virtual void addObject(std::wstring key, ITable *tab);
virtual ITable* getObject(size_t n);
virtual ITable* getObject(std::wstring key);
virtual std::wstring getValue();
virtual size_t getSize();
virtual void addString(std::wstring key, std::wstring str);
private:
std::map<std::wstring, ITable*> table_map;
std::vector<ITable*> tables;
};
class CTable : public ITable
{
public:
~CTable();
virtual void addObject(std::wstring key, ITable *tab);
virtual ITable* getObject(size_t n);
virtual ITable* getObject(std::wstring key);
virtual std::wstring getValue();
virtual size_t getSize();
virtual void addString(std::wstring key, std::wstring str);
private:
std::map<std::wstring, ITable*> table_map;
};
class CTablestring : public ITable
{
public:
CTablestring(std::wstring pStr);
virtual void addObject(std::wstring key, ITable *tab);
virtual ITable* getObject(size_t n);
virtual ITable* getObject(std::wstring key);
virtual std::wstring getValue();
virtual size_t getSize();
virtual void addString(std::wstring key, std::wstring str);
private:
std::wstring str;
};