![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cJSONReader.h>
Public Member Functions | |
| cJSONReadVariant (cVariant &v) | |
| cVariant & | get_V () |
| virtual void | SetNull () override |
| virtual void | SetBool (bool bVal) override |
| virtual void | SetDouble (double dVal) override |
| virtual void | SetString (const char *pszString, StrLen_t nLen) override |
| virtual void | SetArray () override |
| virtual void | SetMap () override |
| virtual void * | MakeArrayElement (cJSONReader &r, ITERATE_t i) override |
| virtual void * | MakeMapElement (cJSONReader &r, const char *pszTag) override |
Public Member Functions inherited from GrayLib::cJSONReadVisitor | |
| cJSONReadVisitor (void *pVal) | |
Public Member Functions inherited from GrayLib::cJSON | |
| UNITTEST_FRIEND (cJSON) | |
Additional Inherited Members | |
Public Types inherited from GrayLib::cJSON | |
| enum | TYPE_TYPE { TYPE_Null , TYPE_Bool , TYPE_Double , TYPE_String } |
Static Public Member Functions inherited from GrayLib::cJSON | |
| static bool GRAYCALL | IsJSON (const char *pszStr, StrLen_t iLenMax=StrT::k_LEN_MAX) |
| static cVariant GRAYCALL | Parse (const char *pszVal) |
| static cJSONString GRAYCALL | Encode (const cVariant &v) |
Public Attributes inherited from GrayLib::cJSONReadVisitor | |
| void * | m_pVal |
| Fill this target variant with the contents of the JSON. More... | |
Static Public Attributes inherited from GrayLib::cJSON | |
| static const char | k_null [5] = "null" |
| "null" is valid syntax. More... | |
| static const char | k_true [5] = "true" |
| "true" More... | |
| static const char | k_false [6] = "false" |
| "false" More... | |
| static const int | k_DEPTH_MAX = 50 |
| Arbitrary max depth of read recursion. More... | |
Implement cJSONReadVisitor for a cVariant target.
| GrayLib::cJSONReadVariant::cJSONReadVariant | ( | cVariant & | v | ) |
|
overridevirtual |
Add Array element. Assume SetArray() was already called.
Implements GrayLib::cJSONReadVisitor.
|
overridevirtual |
Add Map element. Assume SetMap() was already called. pszTag MUST be unique and new? @pszTag = fail if the name is not valid ???
Implements GrayLib::cJSONReadVisitor.
|
overridevirtual |
Implements GrayLib::cJSONReadVisitor.
|
overridevirtual |
Implements GrayLib::cJSONReadVisitor.
|
overridevirtual |
Implements GrayLib::cJSONReadVisitor.
|
overridevirtual |
Implements GrayLib::cJSONReadVisitor.
|
overridevirtual |
Implements GrayLib::cJSONReadVisitor.
|
overridevirtual |
Implements GrayLib::cJSONReadVisitor.