oasys::SQLExtract Class Reference

#include <SQLSerialize.h>

Inheritance diagram for oasys::SQLExtract:

oasys::SerializeAction oasys::Serialize List of all members.

Detailed Description

SQLExtract is a SerializeAction that constructs an object's internals from the results of a SQL "select" statement.

Definition at line 176 of file SQLSerialize.h.

Public Member Functions

 SQLExtract (SQLImplementation *impl)
 Constructor.
const char * next_field ()
void process (const char *name, u_int32_t *i)
 Process function for a 4 byte integer.
void process (const char *name, u_int16_t *i)
 Process function for a 2 byte integer.
void process (const char *name, u_int8_t *i)
 Process function for a byte.
void process (const char *name, bool *b)
 Process function for a boolean.
void process (const char *name, u_char *bp, size_t len)
void process (const char *name, u_char **bp, size_t *lenp, int flags)
void process (const char *name, std::string *s)
 Process function for a c++ string.

Protected Attributes

int field_
 counter over the fields in the returned tuple

Private Attributes

SQLImplementationsql_impl_


Constructor & Destructor Documentation

oasys::SQLExtract::SQLExtract ( SQLImplementation impl  ) 

Constructor.

Definition at line 402 of file SQLSerialize.cc.

References field_, and sql_impl_.


Member Function Documentation

const char * oasys::SQLExtract::next_field (  ) 

Definition at line 411 of file SQLSerialize.cc.

References field_, oasys::SQLImplementation::get_value(), and sql_impl_.

Referenced by process().

void oasys::SQLExtract::process ( const char *  name,
u_int32_t *  i 
) [virtual]

Process function for a 4 byte integer.

Implements oasys::SerializeAction.

Definition at line 417 of file SQLSerialize.cc.

References oasys::SerializeAction::log_, oasys::LOG_DEBUG, oasys::logf(), and next_field().

void oasys::SQLExtract::process ( const char *  name,
u_int16_t *  i 
) [virtual]

Process function for a 2 byte integer.

Implements oasys::SerializeAction.

Definition at line 429 of file SQLSerialize.cc.

References oasys::SerializeAction::log_, oasys::LOG_DEBUG, oasys::logf(), and next_field().

void oasys::SQLExtract::process ( const char *  name,
u_int8_t *  i 
) [virtual]

Process function for a byte.

Implements oasys::SerializeAction.

Definition at line 441 of file SQLSerialize.cc.

References oasys::SerializeAction::log_, oasys::LOG_DEBUG, oasys::logf(), and next_field().

void oasys::SQLExtract::process ( const char *  name,
bool b 
) [virtual]

Process function for a boolean.

Implements oasys::SerializeAction.

Definition at line 453 of file SQLSerialize.cc.

References oasys::SerializeAction::log_, oasys::LOG_DEBUG, oasys::LOG_ERR, oasys::logf(), next_field(), and oasys::SerializeAction::signal_error().

void oasys::SQLExtract::process ( const char *  name,
u_char *  bp,
size_t  len 
)

Definition at line 498 of file SQLSerialize.cc.

References oasys::hex2str(), oasys::SerializeAction::log_, oasys::LOG_DEBUG, oasys::logf(), next_field(), sql_impl_, and oasys::SQLImplementation::unescape_binary().

void oasys::SQLExtract::process ( const char *  name,
u_char **  bp,
size_t *  lenp,
int  flags 
)

Definition at line 518 of file SQLSerialize.cc.

References NOTIMPLEMENTED.

void oasys::SQLExtract::process ( const char *  name,
std::string *  s 
) [virtual]

Process function for a c++ string.

Implements oasys::SerializeAction.

Definition at line 483 of file SQLSerialize.cc.

References oasys::SerializeAction::log_, oasys::LOG_DEBUG, oasys::logf(), and next_field().


Member Data Documentation

int oasys::SQLExtract::field_ [protected]

counter over the fields in the returned tuple

Definition at line 193 of file SQLSerialize.h.

Referenced by next_field(), and SQLExtract().

SQLImplementation* oasys::SQLExtract::sql_impl_ [private]

Definition at line 196 of file SQLSerialize.h.

Referenced by next_field(), process(), and SQLExtract().


The documentation for this class was generated from the following files:
Generated on Thu Jun 7 12:54:36 2007 for DTN Reference Implementation by  doxygen 1.5.1