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

Definition at line 104 of file TypeShims.h.
Public Member Functions | |
| StringShim (const std::string &str="", const char *name="string") | |
| StringShim (const Builder &) | |
| virtual | ~StringShim () |
| 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 std::string & | value () const |
| void | assign (const std::string &str) |
Private Attributes | |
| std::string | name_ |
| std::string | str_ |
| oasys::StringShim::StringShim | ( | const std::string & | str = "", |
|
| const char * | name = "string" | |||
| ) | [inline] |
Definition at line 106 of file TypeShims.h.
| oasys::StringShim::StringShim | ( | const Builder & | ) | [inline] |
Definition at line 108 of file TypeShims.h.
| virtual oasys::StringShim::~StringShim | ( | ) | [inline, virtual] |
Definition at line 110 of file TypeShims.h.
| int oasys::StringShim::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 113 of file TypeShims.h.
References str_.
| void oasys::StringShim::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 118 of file TypeShims.h.
References name_, oasys::SerializeAction::process(), and str_.
| const std::string& oasys::StringShim::value | ( | ) | const [inline] |
| void oasys::StringShim::assign | ( | const std::string & | str | ) | [inline] |
std::string oasys::StringShim::name_ [private] |
std::string oasys::StringShim::str_ [private] |
Definition at line 127 of file TypeShims.h.
Referenced by assign(), format(), serialize(), and value().
1.5.1