#include <OVR_JSON.h>

Public Member Functions | |
| void | AddArrayElement (JSON *item) |
| void | AddArrayNumber (double n) |
| void | AddArrayString (const char *s) |
| void | AddBoolItem (const char *name, bool b) |
| void | AddItem (const char *string, JSON *item) |
| void | AddNullItem (const char *name) |
| void | AddNumberItem (const char *name, double n) |
| void | AddStringItem (const char *name, const char *s) |
| double | GetArrayNumber (int index) |
| int | GetArraySize () |
| const char * | GetArrayString (int index) |
| JSON * | GetFirstItem () |
| JSON * | GetItemByIndex (unsigned i) |
| JSON * | GetItemByName (const char *name) |
| unsigned | GetItemCount () const |
| JSON * | GetLastItem () |
| JSON * | GetNextItem (JSON *item) |
| JSON * | GetPrevItem (JSON *item) |
| bool | HasItems () const |
| bool | Save (const char *path) |
| ~JSON () | |
Static Public Member Functions | |
| static JSON * | CreateArray () |
| static JSON * | CreateBool (bool b) |
| static JSON * | CreateNull () |
| static JSON * | CreateNumber (double num) |
| static JSON * | CreateObject () |
| static JSON * | CreateString (const char *s) |
| static JSON * | Load (const char *path, const char **perror=0) |
| static JSON * | Parse (const char *buff, const char **perror=0) |
Public Attributes | |
| double | dValue |
| String | Name |
| JSONItemType | Type |
| String | Value |
Protected Member Functions | |
| JSON (JSONItemType itemType=JSON_Object) | |
| const char * | parseArray (const char *value, const char **perror) |
| const char * | parseNumber (const char *num) |
| const char * | parseObject (const char *value, const char **perror) |
| const char * | parseString (const char *str, const char **perror) |
| const char * | parseValue (const char *buff, const char **perror) |
| char * | PrintArray (int depth, bool fmt) |
| char * | PrintObject (int depth, bool fmt) |
| char * | PrintValue (int depth, bool fmt) |
Static Protected Member Functions | |
| static JSON * | createHelper (JSONItemType itemType, double dval, const char *strVal=0) |
Protected Attributes | |
| List< JSON > | Children |
Definition at line 48 of file OVR_JSON.h.
| OVR::JSON::~JSON | ( | ) |
Definition at line 116 of file OVR_JSON.cpp.
| OVR::JSON::JSON | ( | JSONItemType | itemType = JSON_Object | ) | [protected] |
Definition at line 111 of file OVR_JSON.cpp.
| void OVR::JSON::AddArrayElement | ( | JSON * | item | ) |
Definition at line 957 of file OVR_JSON.cpp.
| void OVR::JSON::AddArrayNumber | ( | double | n | ) | [inline] |
Definition at line 114 of file OVR_JSON.h.
| void OVR::JSON::AddArrayString | ( | const char * | s | ) | [inline] |
Definition at line 115 of file OVR_JSON.h.
| void OVR::JSON::AddBoolItem | ( | const char * | name, |
| bool | b | ||
| ) | [inline] |
Definition at line 104 of file OVR_JSON.h.
| void OVR::JSON::AddItem | ( | const char * | string, |
| JSON * | item | ||
| ) |
Definition at line 893 of file OVR_JSON.cpp.
| void OVR::JSON::AddNullItem | ( | const char * | name | ) | [inline] |
Definition at line 103 of file OVR_JSON.h.
| void OVR::JSON::AddNumberItem | ( | const char * | name, |
| double | n | ||
| ) | [inline] |
Definition at line 105 of file OVR_JSON.h.
| void OVR::JSON::AddStringItem | ( | const char * | name, |
| const char * | s | ||
| ) | [inline] |
Definition at line 106 of file OVR_JSON.h.
| static JSON* OVR::JSON::CreateArray | ( | ) | [inline, static] |
Definition at line 66 of file OVR_JSON.h.
| static JSON* OVR::JSON::CreateBool | ( | bool | b | ) | [inline, static] |
Definition at line 67 of file OVR_JSON.h.
| JSON * OVR::JSON::createHelper | ( | JSONItemType | itemType, |
| double | dval, | ||
| const char * | strVal = 0 |
||
| ) | [static, protected] |
Definition at line 942 of file OVR_JSON.cpp.
| static JSON* OVR::JSON::CreateNull | ( | ) | [inline, static] |
Definition at line 65 of file OVR_JSON.h.
| static JSON* OVR::JSON::CreateNumber | ( | double | num | ) | [inline, static] |
Definition at line 68 of file OVR_JSON.h.
| static JSON* OVR::JSON::CreateObject | ( | ) | [inline, static] |
Definition at line 64 of file OVR_JSON.h.
| static JSON* OVR::JSON::CreateString | ( | const char * | s | ) | [inline, static] |
Definition at line 69 of file OVR_JSON.h.
| double OVR::JSON::GetArrayNumber | ( | int | index | ) |
Definition at line 976 of file OVR_JSON.cpp.
| int OVR::JSON::GetArraySize | ( | ) |
Definition at line 967 of file OVR_JSON.cpp.
| const char * OVR::JSON::GetArrayString | ( | int | index | ) |
Definition at line 990 of file OVR_JSON.cpp.
| JSON* OVR::JSON::GetFirstItem | ( | ) | [inline] |
Definition at line 88 of file OVR_JSON.h.
| JSON * OVR::JSON::GetItemByIndex | ( | unsigned | i | ) |
Definition at line 844 of file OVR_JSON.cpp.
| JSON * OVR::JSON::GetItemByName | ( | const char * | name | ) |
Definition at line 869 of file OVR_JSON.cpp.
| unsigned OVR::JSON::GetItemCount | ( | ) | const |
Definition at line 836 of file OVR_JSON.cpp.
| JSON* OVR::JSON::GetLastItem | ( | ) | [inline] |
Definition at line 89 of file OVR_JSON.h.
| JSON* OVR::JSON::GetNextItem | ( | JSON * | item | ) | [inline] |
Definition at line 97 of file OVR_JSON.h.
| JSON* OVR::JSON::GetPrevItem | ( | JSON * | item | ) | [inline] |
Definition at line 98 of file OVR_JSON.h.
| bool OVR::JSON::HasItems | ( | ) | const [inline] |
Definition at line 86 of file OVR_JSON.h.
| JSON * OVR::JSON::Load | ( | const char * | path, |
| const char ** | perror = 0 |
||
| ) | [static] |
Definition at line 1006 of file OVR_JSON.cpp.
| JSON * OVR::JSON::Parse | ( | const char * | buff, |
| const char ** | perror = 0 |
||
| ) | [static] |
Definition at line 402 of file OVR_JSON.cpp.
| const char * OVR::JSON::parseArray | ( | const char * | value, |
| const char ** | perror | ||
| ) | [protected] |
Definition at line 500 of file OVR_JSON.cpp.
| const char * OVR::JSON::parseNumber | ( | const char * | num | ) | [protected] |
Definition at line 130 of file OVR_JSON.cpp.
| const char * OVR::JSON::parseObject | ( | const char * | value, |
| const char ** | perror | ||
| ) | [protected] |
Definition at line 629 of file OVR_JSON.cpp.
| const char * OVR::JSON::parseString | ( | const char * | str, |
| const char ** | perror | ||
| ) | [protected] |
Definition at line 217 of file OVR_JSON.cpp.
| const char * OVR::JSON::parseValue | ( | const char * | buff, |
| const char ** | perror | ||
| ) | [protected] |
Definition at line 425 of file OVR_JSON.cpp.
| char * OVR::JSON::PrintArray | ( | int | depth, |
| bool | fmt | ||
| ) | [protected] |
Definition at line 544 of file OVR_JSON.cpp.
| char * OVR::JSON::PrintObject | ( | int | depth, |
| bool | fmt | ||
| ) | [protected] |
Definition at line 693 of file OVR_JSON.cpp.
| char * OVR::JSON::PrintValue | ( | int | depth, |
| bool | fmt | ||
| ) | [protected] |
Definition at line 475 of file OVR_JSON.cpp.
| bool OVR::JSON::Save | ( | const char * | path | ) |
Definition at line 1033 of file OVR_JSON.cpp.
List<JSON> OVR::JSON::Children [protected] |
Definition at line 51 of file OVR_JSON.h.
| double OVR::JSON::dValue |
Definition at line 57 of file OVR_JSON.h.
Definition at line 55 of file OVR_JSON.h.
Definition at line 54 of file OVR_JSON.h.
Definition at line 56 of file OVR_JSON.h.