All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GT_Primitive::jsonWriter Class Reference

#include <GT_Primitive.h>

Public Member Functions

 jsonWriter (UT_JSONWriter &w, const char *primitive_name)
 ~jsonWriter ()
UT_JSONWriteroperator* ()

Detailed Description

The jsonWriter class can be used by sub-classes to simplify saving primitives to a JSON object. For example:

jsonWriter w("PolygonMesh");

The constructor automatically starts an array. The destructor closes the array.

Definition at line 195 of file GT_Primitive.h.

Constructor & Destructor Documentation

GT_Primitive::jsonWriter::jsonWriter ( UT_JSONWriter w,
const char *  primitive_name 
GT_Primitive::jsonWriter::~jsonWriter ( )

Member Function Documentation

UT_JSONWriter& GT_Primitive::jsonWriter::operator* ( void  )

Definition at line 200 of file GT_Primitive.h.

The documentation for this class was generated from the following file: