UT_JSONArchive< OBJ_T > Class Template Reference

Main class for starting serialization. More...

#include <UT_JSONArchive.h>

List of all members.

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
     cout << UT_JSONArchive<MyClassA>::Output(a_object);
     cin  >> UT_JSONArchive<MyClassB>::Input(b_object);

     // 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 177 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 179 of file UT_JSONArchive.h.

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

Definition at line 180 of file UT_JSONArchive.h.


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

Generated on Mon Jan 28 00:49:03 2013 for HDK by  doxygen 1.5.9