diff options
| author | Mike Buland <mbuland@penny-arcade.com> | 2017-06-05 14:32:08 -0700 |
|---|---|---|
| committer | Mike Buland <mbuland@penny-arcade.com> | 2017-06-05 14:32:08 -0700 |
| commit | 8e0f468e79263dc7f9a6364ca1a26036906642bc (patch) | |
| tree | 7acc4a4e659ae5e429452f2c8f18ddc74a41dba9 /src/unstable/json.cpp | |
| parent | 863d9bca2b58d6de22dc2d23379a8c7a5fd755f4 (diff) | |
| download | libbu++-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 '')
| -rw-r--r-- | src/unstable/json.cpp | 87 |
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 | |||
| 3 | Bu::Json::Base::Base() | ||
| 4 | { | ||
| 5 | } | ||
| 6 | |||
| 7 | Bu::Json::Base::~Base() | ||
| 8 | { | ||
| 9 | } | ||
| 10 | |||
| 11 | Bu::Json::Object::Object() | ||
| 12 | { | ||
| 13 | } | ||
| 14 | |||
| 15 | Bu::Json::Object::~Object() | ||
| 16 | { | ||
| 17 | } | ||
| 18 | |||
| 19 | Bu::Json::Type Bu::Json::Object::getType() | ||
| 20 | { | ||
| 21 | return tObject; | ||
| 22 | } | ||
| 23 | |||
| 24 | Bu::Json::Array::Array() | ||
| 25 | { | ||
| 26 | } | ||
| 27 | |||
| 28 | Bu::Json::Array::~Array() | ||
| 29 | { | ||
| 30 | } | ||
| 31 | |||
| 32 | Bu::Json::Type Bu::Json::Array::getType() | ||
| 33 | { | ||
| 34 | return tArray; | ||
| 35 | } | ||
| 36 | |||
| 37 | Bu::Json::String::String() | ||
| 38 | { | ||
| 39 | } | ||
| 40 | |||
| 41 | Bu::Json::String::~String() | ||
| 42 | { | ||
| 43 | } | ||
| 44 | |||
| 45 | Bu::Json::Type Bu::Json::String::getType() | ||
| 46 | { | ||
| 47 | return tString; | ||
| 48 | } | ||
| 49 | |||
| 50 | Bu::Json::Number::Number() | ||
| 51 | { | ||
| 52 | } | ||
| 53 | |||
| 54 | Bu::Json::Number::~Number() | ||
| 55 | { | ||
| 56 | } | ||
| 57 | |||
| 58 | Bu::Json::Type Bu::Json::Number::getType() | ||
| 59 | { | ||
| 60 | return tNumber; | ||
| 61 | } | ||
| 62 | |||
| 63 | Bu::Json::Boolean::Boolean() | ||
| 64 | { | ||
| 65 | } | ||
| 66 | |||
| 67 | Bu::Json::Boolean::~Boolean() | ||
| 68 | { | ||
| 69 | } | ||
| 70 | |||
| 71 | Bu::Json::Type Bu::Json::Boolean::getType() | ||
| 72 | { | ||
| 73 | return tBoolean; | ||
| 74 | } | ||
| 75 | |||
| 76 | Bu::Json::Null::Null() | ||
| 77 | { | ||
| 78 | } | ||
| 79 | |||
| 80 | Bu::Json::Null::~Null() | ||
| 81 | { | ||
| 82 | } | ||
| 83 | |||
| 84 | Bu::Json::Type Bu::Json::Null::getType() | ||
| 85 | { | ||
| 86 | return tNull; | ||
| 87 | } | ||
