#include <TypeShims.h>
Inheritance diagram for oasys::NullStringShim:

Definition at line 131 of file TypeShims.h.
Public Member Functions | |
| NullStringShim (const char *str, const char *name="string") | |
| NullStringShim (const Builder &) | |
| ~NullStringShim () | |
| int | format (char *buf, size_t sz) const |
| Virtual callback, called from this vsnprintf implementation whenever it encounters a format string of the form "*%p". | |
| void | serialize (SerializeAction *a) |
| This should call v->process() on each of the types that are to be serialized in the object. | |
| const char * | value () const |
Private Attributes | |
| std::string | name_ |
| char * | str_ |
| bool | free_mem_ |
| oasys::NullStringShim::NullStringShim | ( | const char * | str, | |
| const char * | name = "string" | |||
| ) | [inline] |
| oasys::NullStringShim::NullStringShim | ( | const Builder & | ) | [inline] |
Definition at line 139 of file TypeShims.h.
| oasys::NullStringShim::~NullStringShim | ( | ) | [inline] |
| int oasys::NullStringShim::format | ( | char * | buf, | |
| size_t | sz | |||
| ) | const [inline, virtual] |
Virtual callback, called from this vsnprintf implementation whenever it encounters a format string of the form "*%p".
The output routine must not write more than sz bytes and is not null terminated.
Implements oasys::Formatter.
Definition at line 146 of file TypeShims.h.
References str_.
| void oasys::NullStringShim::serialize | ( | SerializeAction * | a | ) | [inline, virtual] |
This should call v->process() on each of the types that are to be serialized in the object.
Implements oasys::SerializableObject.
Definition at line 151 of file TypeShims.h.
References oasys::Serialize::ALLOC_MEM, free_mem_, name_, oasys::Serialize::NULL_TERMINATED, oasys::SerializeAction::process(), and str_.
| const char* oasys::NullStringShim::value | ( | ) | const [inline] |
std::string oasys::NullStringShim::name_ [private] |
char* oasys::NullStringShim::str_ [private] |
Definition at line 164 of file TypeShims.h.
Referenced by format(), serialize(), value(), and ~NullStringShim().
bool oasys::NullStringShim::free_mem_ [private] |
Definition at line 165 of file TypeShims.h.
Referenced by NullStringShim(), serialize(), and ~NullStringShim().
1.5.1