#include <UT_JSONArchive.h>
Public Types | |
| typedef UT_LoadArchiverManip < OBJ_T, UT_JSONArchiver > | Input |
| typedef UT_SaveArchiverManip < OBJ_T, UT_JSONArchiver > | Output |
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.
| typedef UT_LoadArchiverManip<OBJ_T,UT_JSONArchiver> UT_JSONArchive< OBJ_T >::Input |
Definition at line 179 of file UT_JSONArchive.h.
| typedef UT_SaveArchiverManip<OBJ_T,UT_JSONArchiver> UT_JSONArchive< OBJ_T >::Output |
Definition at line 180 of file UT_JSONArchive.h.
1.5.9