11 #ifndef __UT_JSONHandle__
12 #define __UT_JSONHandle__
127 bool isKey(
const char *s1,
const char *s2)
const
170 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)
GLuint GLsizei GLsizei * length
JSON reader class which handles parsing of JSON or bJSON files.
virtual bool jsonBeginArray(UT_JSONParser &p)=0
Event method invoked at the beginning of an array object.
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.
GLuint const GLchar * name
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
GLfloat GLfloat GLfloat GLfloat h
bool isKey(const char *s1, const char *s2) const
Convenience method to test key values.
~UT_JSONHandleNull() override
LeafData & operator=(const LeafData &)=delete
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.
UT_JSONHandle & operator=(const UT_JSONHandle &)=delete
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.