#include <TextSerialize.h>
Inheritance diagram for oasys::TextUnmarshal:
Definition at line 69 of file TextSerialize.h.
Public Member Functions | |
TextUnmarshal (context_t context, u_char *buf, size_t length, int options=0) | |
void | process (const char *name, u_int64_t *i) |
Virtual functions inherited from BufferedSerializeAction. | |
void | process (const char *name, u_int32_t *i) |
Virtual functions inherited from BufferedSerializeAction. | |
void | process (const char *name, u_int16_t *i) |
Virtual functions inherited from BufferedSerializeAction. | |
void | process (const char *name, u_int8_t *i) |
Virtual functions inherited from BufferedSerializeAction. | |
void | process (const char *name, bool *b) |
Virtual functions inherited from BufferedSerializeAction. | |
void | process (const char *name, u_char *bp, u_int32_t len) |
Virtual functions inherited from BufferedSerializeAction. | |
void | process (const char *name, u_char **bp, u_int32_t *lenp, int flags) |
Virtual functions inherited from BufferedSerializeAction. | |
void | process (const char *name, std::string *s) |
Virtual functions inherited from BufferedSerializeAction. | |
void | process (const char *name, SerializableObject *object) |
Virtual functions inherited from BufferedSerializeAction. | |
Private Member Functions | |
bool | is_within_buf (size_t offset) |
int | get_line (char **end) |
int | match_fieldname (const char *field_name, char *eol) |
int | get_num (const char *field_name, u_int32_t *num) |
int | get_num (const char *field_name, u_int64_t *num) |
int | get_textcode (ExpandableBuffer *buf) |
Private Attributes | |
char * | buf_ |
size_t | length_ |
char * | cur_ |
oasys::TextUnmarshal::TextUnmarshal | ( | context_t | context, | |
u_char * | buf, | |||
size_t | length, | |||
int | options = 0 | |||
) |
Definition at line 122 of file TextSerialize.cc.
void oasys::TextUnmarshal::process | ( | const char * | name, | |
u_int64_t * | i | |||
) | [virtual] |
Virtual functions inherited from BufferedSerializeAction.
Implements oasys::SerializeAction.
Definition at line 132 of file TextSerialize.cc.
References oasys::SerializeAction::error(), and get_num().
void oasys::TextUnmarshal::process | ( | const char * | name, | |
u_int32_t * | i | |||
) | [virtual] |
Virtual functions inherited from BufferedSerializeAction.
Implements oasys::SerializeAction.
Definition at line 148 of file TextSerialize.cc.
References oasys::SerializeAction::error(), and get_num().
void oasys::TextUnmarshal::process | ( | const char * | name, | |
u_int16_t * | i | |||
) | [virtual] |
Virtual functions inherited from BufferedSerializeAction.
Implements oasys::SerializeAction.
Definition at line 164 of file TextSerialize.cc.
References oasys::SerializeAction::error(), and get_num().
void oasys::TextUnmarshal::process | ( | const char * | name, | |
u_int8_t * | i | |||
) | [virtual] |
Virtual functions inherited from BufferedSerializeAction.
Implements oasys::SerializeAction.
Definition at line 180 of file TextSerialize.cc.
References oasys::SerializeAction::error(), and get_num().
void oasys::TextUnmarshal::process | ( | const char * | name, | |
bool * | b | |||
) | [virtual] |
Virtual functions inherited from BufferedSerializeAction.
Implements oasys::SerializeAction.
Definition at line 196 of file TextSerialize.cc.
References ASSERT, cur_, oasys::SerializeAction::error(), get_line(), is_within_buf(), match_fieldname(), and oasys::SerializeAction::signal_error().
void oasys::TextUnmarshal::process | ( | const char * | name, | |
u_char * | bp, | |||
u_int32_t | len | |||
) | [virtual] |
Virtual functions inherited from BufferedSerializeAction.
Implements oasys::SerializeAction.
Definition at line 230 of file TextSerialize.cc.
References oasys::ScratchBuffer< _memory_t, _static_size >::buf(), cur_, oasys::SerializeAction::error(), get_line(), get_textcode(), is_within_buf(), oasys::ExpandableBuffer::len(), match_fieldname(), and oasys::SerializeAction::signal_error().
void oasys::TextUnmarshal::process | ( | const char * | name, | |
u_char ** | bp, | |||
u_int32_t * | lenp, | |||
int | flags | |||
) | [virtual] |
Virtual functions inherited from BufferedSerializeAction.
Implements oasys::SerializeAction.
Definition at line 268 of file TextSerialize.cc.
References oasys::SerializeAction::error(), and NOTIMPLEMENTED.
void oasys::TextUnmarshal::process | ( | const char * | name, | |
std::string * | s | |||
) | [virtual] |
Virtual functions inherited from BufferedSerializeAction.
Implements oasys::SerializeAction.
Definition at line 284 of file TextSerialize.cc.
References oasys::ScratchBuffer< _memory_t, _static_size >::buf(), cur_, oasys::SerializeAction::error(), get_line(), get_textcode(), is_within_buf(), oasys::ExpandableBuffer::len(), match_fieldname(), and oasys::SerializeAction::signal_error().
void oasys::TextUnmarshal::process | ( | const char * | name, | |
SerializableObject * | object | |||
) | [virtual] |
Virtual functions inherited from BufferedSerializeAction.
Reimplemented from oasys::SerializeAction.
Definition at line 317 of file TextSerialize.cc.
References cur_, oasys::SerializeAction::error(), get_line(), is_within_buf(), match_fieldname(), oasys::SerializableObject::serialize(), and oasys::SerializeAction::signal_error().
bool oasys::TextUnmarshal::is_within_buf | ( | size_t | offset | ) | [private] |
Definition at line 344 of file TextSerialize.cc.
References buf_, cur_, and length_.
Referenced by get_line(), get_textcode(), match_fieldname(), and process().
int oasys::TextUnmarshal::get_line | ( | char ** | end | ) | [private] |
int oasys::TextUnmarshal::match_fieldname | ( | const char * | field_name, | |
char * | eol | |||
) | [private] |
Definition at line 376 of file TextSerialize.cc.
References cur_, is_within_buf(), and oasys::SerializeAction::signal_error().
int oasys::TextUnmarshal::get_num | ( | const char * | field_name, | |
u_int32_t * | num | |||
) | [private] |
Definition at line 407 of file TextSerialize.cc.
References ASSERT, cur_, get_line(), match_fieldname(), and oasys::SerializeAction::signal_error().
Referenced by process().
int oasys::TextUnmarshal::get_num | ( | const char * | field_name, | |
u_int64_t * | num | |||
) | [private] |
Definition at line 429 of file TextSerialize.cc.
References ASSERT, cur_, get_line(), match_fieldname(), and oasys::SerializeAction::signal_error().
int oasys::TextUnmarshal::get_textcode | ( | ExpandableBuffer * | buf | ) | [private] |
Definition at line 450 of file TextSerialize.cc.
References ASSERT, cur_, oasys::TextUncode::error(), is_within_buf(), and oasys::SerializeAction::signal_error().
Referenced by process().
char* oasys::TextUnmarshal::buf_ [private] |
size_t oasys::TextUnmarshal::length_ [private] |
char* oasys::TextUnmarshal::cur_ [private] |
Definition at line 89 of file TextSerialize.h.
Referenced by get_line(), get_num(), get_textcode(), is_within_buf(), match_fieldname(), and process().