#include <TclListSerialize.h>
For contained serializable objects, a new list is created for the sub object.
Definition at line 32 of file TclListSerialize.h.
Public Types | |
enum | { KEEP_SINGLETON_SUBLISTS = 1 } |
Options for the list serialization. More... | |
Public Member Functions | |
TclListSerialize (Tcl_Interp *interp, Tcl_Obj *list_obj, context_t context, int options) | |
Constructor. | |
~TclListSerialize () | |
Destructor. | |
int | action (const SerializableObject *const_object) |
We can tolerate a const object. | |
void | process (const char *name, u_int64_t *i) |
void | process (const char *name, u_int32_t *i) |
void | process (const char *name, u_int16_t *i) |
void | process (const char *name, u_int8_t *i) |
void | process (const char *name, bool *b) |
void | process (const char *name, u_char *bp, u_int32_t len) |
void | process (const char *name, u_char **bp, u_int32_t *lenp, int flags) |
void | process (const char *name, std::string *s) |
void | process (const char *name, SerializableObject *object) |
Private Attributes | |
Tcl_Interp * | interp_ |
Tcl_Obj * | list_obj_ |
anonymous enum |
oasys::TclListSerialize::TclListSerialize | ( | Tcl_Interp * | interp, | |
Tcl_Obj * | list_obj, | |||
context_t | context, | |||
int | options | |||
) |
oasys::TclListSerialize::~TclListSerialize | ( | ) |
int oasys::TclListSerialize::action | ( | const SerializableObject * | const_object | ) | [inline] |
We can tolerate a const object.
Definition at line 55 of file TclListSerialize.h.
References oasys::SerializeAction::action().
void oasys::TclListSerialize::process | ( | const char * | name, | |
u_int64_t * | i | |||
) | [virtual] |
Virtual functions inherited from SerializeAction
Implements oasys::SerializeAction.
Definition at line 37 of file TclListSerialize.cc.
void oasys::TclListSerialize::process | ( | const char * | name, | |
u_int32_t * | i | |||
) | [virtual] |
Virtual functions inherited from SerializeAction
Implements oasys::SerializeAction.
Definition at line 44 of file TclListSerialize.cc.
void oasys::TclListSerialize::process | ( | const char * | name, | |
u_int16_t * | i | |||
) | [virtual] |
Virtual functions inherited from SerializeAction
Implements oasys::SerializeAction.
Definition at line 51 of file TclListSerialize.cc.
void oasys::TclListSerialize::process | ( | const char * | name, | |
u_int8_t * | i | |||
) | [virtual] |
Virtual functions inherited from SerializeAction
Implements oasys::SerializeAction.
Definition at line 58 of file TclListSerialize.cc.
void oasys::TclListSerialize::process | ( | const char * | name, | |
bool * | b | |||
) | [virtual] |
Virtual functions inherited from SerializeAction
Implements oasys::SerializeAction.
Definition at line 65 of file TclListSerialize.cc.
void oasys::TclListSerialize::process | ( | const char * | name, | |
u_char * | bp, | |||
u_int32_t | len | |||
) | [virtual] |
Virtual functions inherited from SerializeAction
Implements oasys::SerializeAction.
Definition at line 72 of file TclListSerialize.cc.
void oasys::TclListSerialize::process | ( | const char * | name, | |
u_char ** | bp, | |||
u_int32_t * | lenp, | |||
int | flags | |||
) | [virtual] |
Virtual functions inherited from SerializeAction
Implements oasys::SerializeAction.
Definition at line 87 of file TclListSerialize.cc.
References interp_, list_obj_, and oasys::Serialize::NULL_TERMINATED.
void oasys::TclListSerialize::process | ( | const char * | name, | |
std::string * | s | |||
) | [virtual] |
Virtual functions inherited from SerializeAction
Implements oasys::SerializeAction.
Definition at line 79 of file TclListSerialize.cc.
void oasys::TclListSerialize::process | ( | const char * | name, | |
SerializableObject * | object | |||
) | [virtual] |
Virtual functions inherited from SerializeAction
Reimplemented from oasys::SerializeAction.
Definition at line 102 of file TclListSerialize.cc.
References ASSERT, interp_, KEEP_SINGLETON_SUBLISTS, list_obj_, and oasys::SerializeAction::options_.
Tcl_Interp* oasys::TclListSerialize::interp_ [private] |
Tcl_Obj* oasys::TclListSerialize::list_obj_ [private] |