oasys::IntShim Class Reference

#include <TypeShims.h>

Inheritance diagram for oasys::IntShim:

oasys::Formatter oasys::SerializableObject

List of all members.


Detailed Description

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_

Constructor & Destructor Documentation

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.


Member Function Documentation

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.

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 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]

Definition at line 44 of file TypeShims.h.

References value_.

void oasys::IntShim::assign ( int32_t  value  )  [inline]

Definition at line 45 of file TypeShims.h.

References value_.


Member Data Documentation

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

Definition at line 49 of file TypeShims.h.

Referenced by serialize().

int32_t oasys::IntShim::value_ [private]

Definition at line 50 of file TypeShims.h.

Referenced by assign(), format(), 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