#include <TextSerialize.h>
Inheritance diagram for oasys::TextMarshal:
# Comments {\ }*fieldname: value
# additional fields... . # single period
Definition at line 20 of file TextSerialize.h.
Public Member Functions | |
TextMarshal (context_t context, ExpandableBuffer *buf, int options=0, const char *comment=0) | |
void | process (const char *name, u_int32_t *i) |
Virtual functions inherited from SerializeAction. | |
void | process (const char *name, u_int16_t *i) |
Virtual functions inherited from SerializeAction. | |
void | process (const char *name, u_int8_t *i) |
Virtual functions inherited from SerializeAction. | |
void | process (const char *name, bool *b) |
Virtual functions inherited from SerializeAction. | |
void | process (const char *name, u_char *bp, size_t len) |
Virtual functions inherited from SerializeAction. | |
void | process (const char *name, u_char **bp, size_t *lenp, int flags) |
Virtual functions inherited from SerializeAction. | |
void | process (const char *name, std::string *s) |
Virtual functions inherited from SerializeAction. | |
void | process (const char *name, SerializableObject *object) |
Virtual functions inherited from SerializeAction. | |
Private Member Functions | |
void | indent () |
void | unindent () |
void | add_indent () |
Private Attributes | |
int | indent_ |
StringBuffer | buf_ |
oasys::TextMarshal::TextMarshal | ( | context_t | context, | |
ExpandableBuffer * | buf, | |||
int | options = 0 , |
|||
const char * | comment = 0 | |||
) |
void oasys::TextMarshal::process | ( | const char * | name, | |
u_int32_t * | i | |||
) | [virtual] |
Virtual functions inherited from SerializeAction.
Implements oasys::SerializeAction.
Definition at line 60 of file TextSerialize.cc.
References oasys::StringBuffer::appendf(), and buf_.
void oasys::TextMarshal::process | ( | const char * | name, | |
u_int16_t * | i | |||
) | [virtual] |
Virtual functions inherited from SerializeAction.
Implements oasys::SerializeAction.
Definition at line 67 of file TextSerialize.cc.
References oasys::StringBuffer::appendf(), and buf_.
void oasys::TextMarshal::process | ( | const char * | name, | |
u_int8_t * | i | |||
) | [virtual] |
Virtual functions inherited from SerializeAction.
Implements oasys::SerializeAction.
Definition at line 74 of file TextSerialize.cc.
References oasys::StringBuffer::appendf(), and buf_.
void oasys::TextMarshal::process | ( | const char * | name, | |
bool * | b | |||
) | [virtual] |
Virtual functions inherited from SerializeAction.
Implements oasys::SerializeAction.
Definition at line 81 of file TextSerialize.cc.
References oasys::StringBuffer::appendf(), and buf_.
void oasys::TextMarshal::process | ( | const char * | name, | |
u_char * | bp, | |||
size_t | len | |||
) | [virtual] |
Virtual functions inherited from SerializeAction.
Implements oasys::SerializeAction.
Definition at line 88 of file TextSerialize.cc.
References oasys::StringBuffer::appendf(), buf_, oasys::StringBuffer::expandable_buf(), and indent_.
void oasys::TextMarshal::process | ( | const char * | name, | |
u_char ** | bp, | |||
size_t * | lenp, | |||
int | flags | |||
) | [virtual] |
Virtual functions inherited from SerializeAction.
Implements oasys::SerializeAction.
Definition at line 97 of file TextSerialize.cc.
References oasys::StringBuffer::appendf(), buf_, oasys::StringBuffer::expandable_buf(), and indent_.
void oasys::TextMarshal::process | ( | const char * | name, | |
std::string * | s | |||
) | [virtual] |
Virtual functions inherited from SerializeAction.
Implements oasys::SerializeAction.
Definition at line 107 of file TextSerialize.cc.
References oasys::StringBuffer::appendf(), buf_, oasys::StringBuffer::expandable_buf(), and indent_.
void oasys::TextMarshal::process | ( | const char * | name, | |
SerializableObject * | object | |||
) | [virtual] |
Virtual functions inherited from SerializeAction.
Reimplemented from oasys::SerializeAction.
Definition at line 118 of file TextSerialize.cc.
References oasys::StringBuffer::appendf(), buf_, indent(), oasys::SerializableObject::serialize(), and unindent().
void oasys::TextMarshal::indent | ( | ) | [inline, private] |
void oasys::TextMarshal::unindent | ( | ) | [inline, private] |
Definition at line 44 of file TextSerialize.h.
References ASSERT, and indent_.
Referenced by process().
void oasys::TextMarshal::add_indent | ( | ) | [private] |
Definition at line 129 of file TextSerialize.cc.
References oasys::StringBuffer::append(), buf_, and indent_.
int oasys::TextMarshal::indent_ [private] |
Definition at line 40 of file TextSerialize.h.
Referenced by add_indent(), indent(), process(), and unindent().
StringBuffer oasys::TextMarshal::buf_ [private] |
Definition at line 41 of file TextSerialize.h.
Referenced by add_indent(), process(), and TextMarshal().