aboutsummaryrefslogtreecommitdiff
path: root/src/unstable/json.cpp
diff options
context:
space:
mode:
authorMike Buland <mbuland@penny-arcade.com>2017-06-05 14:32:08 -0700
committerMike Buland <mbuland@penny-arcade.com>2017-06-05 14:32:08 -0700
commit8e0f468e79263dc7f9a6364ca1a26036906642bc (patch)
tree7acc4a4e659ae5e429452f2c8f18ddc74a41dba9 /src/unstable/json.cpp
parent863d9bca2b58d6de22dc2d23379a8c7a5fd755f4 (diff)
downloadlibbu++-8e0f468e79263dc7f9a6364ca1a26036906642bc.tar.gz
libbu++-8e0f468e79263dc7f9a6364ca1a26036906642bc.tar.bz2
libbu++-8e0f468e79263dc7f9a6364ca1a26036906642bc.tar.xz
libbu++-8e0f468e79263dc7f9a6364ca1a26036906642bc.zip
Json?
I'm honestly not sure what kind of interface I want here, or how to organize it. It may just be better to expand the whole thing, spread it out some.
Diffstat (limited to 'src/unstable/json.cpp')
-rw-r--r--src/unstable/json.cpp87
1 files changed, 87 insertions, 0 deletions
diff --git a/src/unstable/json.cpp b/src/unstable/json.cpp
new file mode 100644
index 0000000..0769836
--- /dev/null
+++ b/src/unstable/json.cpp
@@ -0,0 +1,87 @@
1#include "bu/json.h"
2
3Bu::Json::Base::Base()
4{
5}
6
7Bu::Json::Base::~Base()
8{
9}
10
11Bu::Json::Object::Object()
12{
13}
14
15Bu::Json::Object::~Object()
16{
17}
18
19Bu::Json::Type Bu::Json::Object::getType()
20{
21 return tObject;
22}
23
24Bu::Json::Array::Array()
25{
26}
27
28Bu::Json::Array::~Array()
29{
30}
31
32Bu::Json::Type Bu::Json::Array::getType()
33{
34 return tArray;
35}
36
37Bu::Json::String::String()
38{
39}
40
41Bu::Json::String::~String()
42{
43}
44
45Bu::Json::Type Bu::Json::String::getType()
46{
47 return tString;
48}
49
50Bu::Json::Number::Number()
51{
52}
53
54Bu::Json::Number::~Number()
55{
56}
57
58Bu::Json::Type Bu::Json::Number::getType()
59{
60 return tNumber;
61}
62
63Bu::Json::Boolean::Boolean()
64{
65}
66
67Bu::Json::Boolean::~Boolean()
68{
69}
70
71Bu::Json::Type Bu::Json::Boolean::getType()
72{
73 return tBoolean;
74}
75
76Bu::Json::Null::Null()
77{
78}
79
80Bu::Json::Null::~Null()
81{
82}
83
84Bu::Json::Type Bu::Json::Null::getType()
85{
86 return tNull;
87}