5 #ifndef _INC_cJSONReader_H
6 #define _INC_cJSONReader_H
64 virtual void SetNull()
override;
65 virtual void SetBool(
bool bVal)
override;
66 virtual void SetDouble(
double dVal)
override;
67 virtual void SetString(
const char* pszString,
StrLen_t nLen)
override;
69 virtual void SetArray()
override;
70 virtual void SetMap()
override;
74 virtual void* MakeMapElement(
cJSONReader& r,
const char* pszTag)
override;
89 bool ReadWhitespace();
#define GRAYCALL
declare calling convention for static functions so everyone knows the arg passing scheme....
Definition: GrayCore.h:36
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
Definition: cJSONReader.h:49
cVariant & get_V()
Definition: cJSONReader.h:58
Definition: cJSONReader.h:20
virtual void SetBool(bool bVal)=0
virtual void SetDouble(double dVal)=0
virtual void * MakeArrayElement(cJSONReader &r, ITERATE_t i)=0
void * m_pVal
Fill this target variant with the contents of the JSON.
Definition: cJSONReader.h:27
virtual void * MakeMapElement(cJSONReader &r, const char *pszTag)=0
virtual void SetString(const char *pszString, StrLen_t nLen)=0
cJSONReadVisitor(void *pVal)
Definition: cJSONReader.h:30
virtual void SetArray()=0
Definition: cJSONReader.h:78
int m_iDepth
Indent depth of reader.
Definition: cJSONReader.h:86
Definition: cVariant.h:26
static const StrLen_t k_TabSize
default desired spaces for a tab.
Definition: StrConst.h:47
Definition: cTextPos.h:107
int StrLen_t
the length of a string in chars (bytes for UTF8, wchar_t for UNICODE). or offset in characters....
Definition: StrConst.h:32
int ITERATE_t
like size_t but signed
Definition: Index.h:28
char ATOMCHAR_t
the char form (UNICODE or not) for an atom. (for symbolic names)
Definition: StrConst.h:15
static const StrLen_t k_LEN_MAX
arbitrary max size for Format() etc. NOTE: _MSC_VER says stack frame should be at least 16384
Definition: StrT.h:75