11 #ifndef __UT_JSONHandle__
12 #define __UT_JSONHandle__
124 bool isKey(
const char *
s1,
const char *s2)
const
164 virtual const char *getClassName()
const;
virtual bool jsonInt(UT_JSONParser &p, int64 value)=0
Event method to process an integer.
UT_JSONHandle processes events from a UT_JSONParser parser.
virtual bool jsonBool(UT_JSONParser &p, bool value)=0
Event method to process a bool (true or false tokens)
JSON reader class which handles parsing of JSON or bJSON files.
GLuint const GLchar * name
virtual bool jsonBeginArray(UT_JSONParser &p)=0
Event method invoked at the beginning of an array object.
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat s1
UT_JSONHandleError(bool fatal=true)
virtual bool jsonEndArray(UT_JSONParser &p)=0
Event method invoked at the end of an array object.
virtual bool jsonKey(UT_JSONParser &p, const char *v, int64 len)=0
Event method to process the key of a map/object is read.
void setFatal(bool f)
Set whether errors should be fatal (or just warnings)
virtual bool jsonReal(UT_JSONParser &p, fpreal64 value)=0
Event method to process a real/float.
This class generates errors on any JSON events.
virtual bool jsonString(UT_JSONParser &p, const char *value, int64 len)=0
Event method to process a string value.
~UT_JSONHandleError() override
GLuint GLsizei GLsizei * length
GLfloat GLfloat GLfloat GLfloat h
bool isKey(const char *s1, const char *s2) const
Convenience method to test key values.
~UT_JSONHandleNull() override
int SYSstrcasecmp(const char *a, const char *b)
virtual bool jsonBeginMap(UT_JSONParser &p)=0
Event method invoked at the start of a map/object.
GLsizei const GLfloat * value
This class skips over any JSON events.
bool getFatal() const
Check whether errors should be fatal (or just warnings)
virtual bool jsonNull(UT_JSONParser &p)=0
Event method to process a null token.
virtual bool jsonEndMap(UT_JSONParser &p)=0
Event method invoked at the end of a map/object.