#include <TypeShims.h>
Inheritance diagram for oasys::NullStringShim:
Definition at line 110 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 118 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 125 of file TypeShims.h.
References snprintf(), and 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 130 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 142 of file TypeShims.h.
Referenced by format(), serialize(), value(), and ~NullStringShim().
bool oasys::NullStringShim::free_mem_ [private] |
Definition at line 143 of file TypeShims.h.
Referenced by NullStringShim(), serialize(), and ~NullStringShim().