HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GU_IOJSON.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: GU_IOJSON.h ( GA Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __GU_IOJSON__
12 #define __GU_IOJSON__
13 
14 #include "GU_API.h"
15 #include <GA/GA_IOJSON.h>
16 
17 /// @brief Extension of GA_IOJSON which saves GU specific properties
18 ///
19 /// At the current time, there are no specific values saved with GU details.
20 class GU_API GU_IOJSON : public GA_IOJSON
21 {
22 public:
23  GU_IOJSON() {}
24  virtual ~GU_IOJSON() {}
25 
26 protected:
28  const char *token, const GA_LoadMap &map) const;
29  bool jsonSaveExtra(const GA_Detail &gdp, UT_JSONWriter &w,
30  const GA_SaveMap &map) const;
31 
32  bool finishLoad(GA_Detail &gdp, const GA_LoadMap &map) const;
33 };
34 
35 #endif
36 
virtual bool jsonSaveExtra(const GA_Detail &gdp, UT_JSONWriter &w, const GA_SaveMap &savemap) const
Used to pass options and map offset values during saving.
Definition: GA_SaveMap.h:48
virtual bool jsonLoadExtra(GA_Detail &gdp, UT_JSONParser &p, const char *token, const GA_LoadMap &loadmap) const
JSON reader class which handles parsing of JSON or bJSON files.
Definition: UT_JSONParser.h:72
Class which writes ASCII or binary JSON streams.
Definition: UT_JSONWriter.h:32
GU_IOJSON()
Definition: GU_IOJSON.h:23
Extension of GA_IOJSON which saves GU specific properties.
Definition: GU_IOJSON.h:20
Options during loading.
Definition: GA_LoadMap.h:42
#define GU_API
Definition: GU_API.h:11
JSON I/O of geometry objects.
Definition: GA_IOJSON.h:37
virtual ~GU_IOJSON()
Definition: GU_IOJSON.h:24
virtual bool finishLoad(GA_Detail &gdp, const GA_LoadMap &) const
Container class for all geometry.
Definition: GA_Detail.h:96
GLubyte GLubyte GLubyte GLubyte w
Definition: glcorearb.h:856