Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes
OVR::JSON Class Reference

#include <OVR_JSON.h>

Inheritance diagram for OVR::JSON:
Inheritance graph
[legend]

List of all members.

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)
JSONGetFirstItem ()
JSONGetItemByIndex (unsigned i)
JSONGetItemByName (const char *name)
unsigned GetItemCount () const
JSONGetLastItem ()
JSONGetNextItem (JSON *item)
JSONGetPrevItem (JSON *item)
bool HasItems () const
bool Save (const char *path)
 ~JSON ()

Static Public Member Functions

static JSONCreateArray ()
static JSONCreateBool (bool b)
static JSONCreateNull ()
static JSONCreateNumber (double num)
static JSONCreateObject ()
static JSONCreateString (const char *s)
static JSONLoad (const char *path, const char **perror=0)
static JSONParse (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 JSONcreateHelper (JSONItemType itemType, double dval, const char *strVal=0)

Protected Attributes

List< JSONChildren

Detailed Description

Definition at line 48 of file OVR_JSON.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

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.

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.

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.


Member Data Documentation

Definition at line 51 of file OVR_JSON.h.

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.


The documentation for this class was generated from the following files:


oculus_sdk
Author(s):
autogenerated on Fri Aug 28 2015 11:53:12