#include <TypeShims.h>
Inheritance diagram for oasys::UIntShim:
Definition at line 54 of file TypeShims.h.
Public Member Functions | |
UIntShim (u_int32_t value=0, const char *name="u_int") | |
UIntShim (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. | |
u_int32_t | value () const |
void | assign (u_int32_t value) |
bool | operator== (const UIntShim &other) const |
Private Attributes | |
std::string | name_ |
u_int32_t | value_ |
oasys::UIntShim::UIntShim | ( | u_int32_t | value = 0 , |
|
const char * | name = "u_int" | |||
) | [inline] |
Definition at line 56 of file TypeShims.h.
oasys::UIntShim::UIntShim | ( | const Builder & | ) | [inline] |
Definition at line 58 of file TypeShims.h.
int oasys::UIntShim::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 61 of file TypeShims.h.
References snprintf(), and value_.
void oasys::UIntShim::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 66 of file TypeShims.h.
References name_, oasys::SerializeAction::process(), and value_.
u_int32_t oasys::UIntShim::value | ( | ) | const [inline] |
Definition at line 70 of file TypeShims.h.
References value_.
Referenced by oasys::BerkeleyDBTable::get().
void oasys::UIntShim::assign | ( | u_int32_t | value | ) | [inline] |
std::string oasys::UIntShim::name_ [private] |
u_int32_t oasys::UIntShim::value_ [private] |
Definition at line 79 of file TypeShims.h.
Referenced by assign(), format(), operator==(), serialize(), and value().