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

Definition at line 28 of file TypeShims.h.
Public Member Functions | |
| IntShim (int32_t value=0, const char *name="int") | |
| IntShim (const Builder &) | |
| 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. | |
| int32_t | value () const |
| void | assign (int32_t value) |
Private Attributes | |
| std::string | name_ |
| int32_t | value_ |
| oasys::IntShim::IntShim | ( | int32_t | value = 0, |
|
| const char * | name = "int" | |||
| ) | [inline] |
Definition at line 30 of file TypeShims.h.
| oasys::IntShim::IntShim | ( | const Builder & | ) | [inline] |
Definition at line 32 of file TypeShims.h.
| int oasys::IntShim::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 35 of file TypeShims.h.
References snprintf(), and value_.
| void oasys::IntShim::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 40 of file TypeShims.h.
References name_, oasys::SerializeAction::process(), and value_.
| int32_t oasys::IntShim::value | ( | ) | const [inline] |
| void oasys::IntShim::assign | ( | int32_t | value | ) | [inline] |
std::string oasys::IntShim::name_ [private] |
int32_t oasys::IntShim::value_ [private] |
Definition at line 50 of file TypeShims.h.
Referenced by assign(), format(), serialize(), and value().
1.5.1