#include <RecordHelper.h>
Public Types | |
typedef coral::AttributeList | AttributeList |
Public Member Functions | |
virtual void | extractValue (const AttributeList &src, TOutput &dest)=0 |
FieldHandlerBase (const std::string &name) | |
virtual const std::string | getColumnName () |
const std::string & | getName () |
virtual | ~FieldHandlerBase () |
Private Attributes | |
std::string | name_ |
A base class for all field handlers that create TOutput C++ objects.
Definition at line 28 of file RecordHelper.h.
typedef coral::AttributeList FieldHandlerBase< TOutput >::AttributeList |
Reimplemented in FieldHandler< TOutput, TCField, TDBField >, ASCIIBoolFieldHandler< TOutput, FalseCharacter >, and FieldHandler< TOutput, bool, char >.
Definition at line 30 of file RecordHelper.h.
FieldHandlerBase< TOutput >::FieldHandlerBase | ( | const std::string & | name | ) | [inline] |
Construct a new field handler with the C++ field name as its argument
Definition at line 32 of file RecordHelper.h.
virtual FieldHandlerBase< TOutput >::~FieldHandlerBase | ( | ) | [inline, virtual] |
virtual void FieldHandlerBase< TOutput >::extractValue | ( | const AttributeList & | src, |
TOutput & | dest | ||
) | [pure virtual] |
The actual extraction function. src contains a CORAL attribute list representing a query result row, dest is the output object to be filled.
Implemented in FieldHandler< TOutput, TCField, TDBField >, ASCIIBoolFieldHandler< TOutput, FalseCharacter >, and FieldHandler< TOutput, bool, char >.
virtual const std::string FieldHandlerBase< TOutput >::getColumnName | ( | ) | [inline, virtual] |
Return the name of the associated database field. For the GMT database, this simply corresponds to the uppercased field name.
Definition at line 39 of file RecordHelper.h.
References FieldHandlerBase< TOutput >::name_, and upcaseString().
Referenced by FieldHandler< TOutput, bool, char >::extractValue(), and ASCIIBoolFieldHandler< TOutput, FalseCharacter >::extractValue().
{ return upcaseString(name_); }
const std::string& FieldHandlerBase< TOutput >::getName | ( | void | ) | [inline] |
Return the name of the field handled by this object.
Definition at line 35 of file RecordHelper.h.
References FieldHandlerBase< TOutput >::name_.
Referenced by FieldHandler< TOutput, bool, char >::extractValue().
{ return name_ ; }
std::string FieldHandlerBase< TOutput >::name_ [private] |
Definition at line 50 of file RecordHelper.h.
Referenced by FieldHandlerBase< TOutput >::getColumnName(), and FieldHandlerBase< TOutput >::getName().