oasys::UIntShim Class Reference

#include <TypeShims.h>

Inheritance diagram for oasys::UIntShim:

oasys::Formatter oasys::SerializableObject

List of all members.


Detailed Description

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_

Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Returns:
The number of bytes written, or the number of bytes that would have been written if the output is truncated.
XXX/bowei -- this contract is fairly annoying to implement.

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]

Definition at line 71 of file TypeShims.h.

References value_.

bool oasys::UIntShim::operator== ( const UIntShim other  )  const [inline]

Definition at line 73 of file TypeShims.h.

References value_.


Member Data Documentation

std::string oasys::UIntShim::name_ [private]

Definition at line 78 of file TypeShims.h.

Referenced by serialize().

u_int32_t oasys::UIntShim::value_ [private]

Definition at line 79 of file TypeShims.h.

Referenced by assign(), format(), operator==(), serialize(), and value().


The documentation for this class was generated from the following file:
Generated on Sat Sep 8 08:43:53 2007 for DTN Reference Implementation by  doxygen 1.5.3