blob: 660d1c6f8411343d57232096d8f9054a11307ae0 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
#ifndef BU_JSON_H
#define BU_JSON_H
namespace Bu
{
class Json
{
public:
Json();
virtual ~Json();
public:
enum Type
{
tObject,
tArray,
tString,
tNumber,
tBoolean,
tNull
};
class Base
{
public:
Base();
virtual ~Base();
virtual Type getType()=0;
};
class Object : public Base
{
public:
Object();
virtual ~Object();
virtual Type getType();
};
class Array : public Base
{
public:
Array();
virtual ~Array();
virtual Type getType();
};
class String : public Base
{
public:
String();
virtual ~String();
virtual Type getType();
};
class Number : public Base
{
public:
Number();
virtual ~Number();
virtual Type getType();
};
class Boolean : public Base
{
public:
Boolean();
virtual ~Boolean();
virtual Type getType();
};
class Null : public Base
{
public:
Null();
virtual ~Null();
virtual Type getType();
};
private:
};
};
#endif
|