#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 |
Definition at line 30 of file RecordHelper.h.
|
inline |
Construct a new field handler with the C++ field name as its argument
Definition at line 32 of file RecordHelper.h.
|
inlinevirtual |
|
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 ASCIIBoolFieldHandler< TOutput, FalseCharacter >, FieldHandler< TOutput, TCField, TDBField >, and FieldHandler< TOutput, bool, char >.
|
inlinevirtual |
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().
|
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().
|
private |
Definition at line 50 of file RecordHelper.h.
Referenced by FieldHandlerBase< TOutput >::getColumnName(), and FieldHandlerBase< TOutput >::getName().