HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_JSONArchive< OBJ_T > Class Template Reference

Main class for starting serialization. More...

#include <UT_JSONArchive.h>

Public Types

typedef UT_LoadArchiverManip
< OBJ_T, UT_JSONArchiver
Input
 
typedef UT_SaveArchiverManip
< OBJ_T, UT_JSONArchiver
Output
 

Detailed Description

template<typename OBJ_T>
class UT_JSONArchive< OBJ_T >

Main class for starting serialization.

Use this to create a class archive for serializing classes to/from streams as JSON.

To serialize your data, you first have to implement serialization functions as described in UT_Serialize.h. Then just this class to perform it. eg.

// form 1
// form 2
UT_JSONArchive<MyClassA>::Output output_archive(my_object);
UT_JSONArchive<MyClassA>::Input input_archive(my_object);
output_archive(cout);
input_archive(cin);

Definition at line 161 of file UT_JSONArchive.h.

Member Typedef Documentation

template<typename OBJ_T>
typedef UT_LoadArchiverManip<OBJ_T,UT_JSONArchiver> UT_JSONArchive< OBJ_T >::Input

Definition at line 163 of file UT_JSONArchive.h.

template<typename OBJ_T>
typedef UT_SaveArchiverManip<OBJ_T,UT_JSONArchiver> UT_JSONArchive< OBJ_T >::Output

Definition at line 164 of file UT_JSONArchive.h.


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