11 #ifndef __GA_PrimitiveJSONExtend__
12 #define __GA_PrimitiveJSONExtend__
65 virtual int localEntries()
const = 0;
79 virtual bool localIsEqual(
int i,
85 bool isBase(
int i)
const {
return i < myBaseEntries; }
86 int getLocal(
int i)
const {
return i - myBaseEntries; }
const GA_PrimitiveJSON * myBase
Used to pass options and map offset values during saving.
JSON reader class which handles parsing of JSON or bJSON files.
Class which writes ASCII or binary JSON streams.
virtual bool isEqual(int i, const GA_Primitive *prim1, const GA_Primitive *prim2) const =0
virtual bool loadField(GA_Primitive *prim, int i, UT_JSONParser &p, const GA_LoadMap &load) const =0
Provide a JSON interface to a primitive.
Class which extends an existing JSON schema.
virtual bool saveField(const GA_Primitive *prim, int i, UT_JSONWriter &w, const GA_SaveMap &save) const =0
int getLocal(int i) const
Class to store JSON objects as C++ objects.
GLubyte GLubyte GLubyte GLubyte w
virtual int getEntries() const =0
Return the number of data fields in the primitive private schema.
virtual const UT_StringHolder & getKeyword(int i) const =0