HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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  ~GU_IOJSON() override {}
25 
26 protected:
27  bool jsonLoadExtra(GA_Detail &gdp,
28  UT_JSONParser &p,
29  const char *token,
30  const GA_LoadMap &map) const override;
31  bool jsonSaveExtra(const GA_Detail &gdp,
33  const GA_SaveMap &map) const override;
34 
35  bool finishLoad(GA_Detail &gdp,
36  const GA_LoadMap &map) const override;
37 };
38 
39 #endif
40 
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:87
Class which writes ASCII or binary JSON streams.
Definition: UT_JSONWriter.h:37
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:14
JSON I/O of geometry objects.
Definition: GA_IOJSON.h:37
~GU_IOJSON() override
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:857