#include <RecordHelper.h>
Public Types | |
typedef coral::AttributeList | AttributeList |
Public Types inherited from FieldHandler< TOutput, bool, char > | |
typedef coral::AttributeList | AttributeList |
typedef void(TOutput::* | TSetMethod )(const bool) |
Public Types inherited from FieldHandlerBase< TOutput > | |
typedef coral::AttributeList | AttributeList |
Public Member Functions | |
ASCIIBoolFieldHandler (const std::string &fieldName, typename FieldHandler< TOutput, bool, char >::TSetMethod setter) | |
virtual void | extractValue (const AttributeList &src, TOutput &dest) |
Public Member Functions inherited from FieldHandler< TOutput, bool, char > | |
FieldHandler (const std::string &fieldName, TSetMethod setter) | |
Public Member Functions inherited from FieldHandlerBase< TOutput > | |
FieldHandlerBase (const std::string &name) | |
virtual const std::string | getColumnName () |
const std::string & | getName () |
virtual | ~FieldHandlerBase () |
Additional Inherited Members | |
Protected Attributes inherited from FieldHandler< TOutput, bool, char > | |
TSetMethod | setter_ |
A special handler for bool fields in the GT/GMT DBs. These can't be imported in the generic way because bool values are returned as char '0' for false and '1' for true from the database. Basically, all values that are != FalseCharacter are treated as true (in adherence to the venerable C tradition).
Definition at line 93 of file RecordHelper.h.
typedef coral::AttributeList ASCIIBoolFieldHandler< TOutput, FalseCharacter >::AttributeList |
Definition at line 96 of file RecordHelper.h.
|
inline |
Definition at line 97 of file RecordHelper.h.
|
inlinevirtual |
Extract value as char, then see compare it to '0' to get its truth value.
Reimplemented from FieldHandler< TOutput, bool, char >.
Definition at line 103 of file RecordHelper.h.
References gather_cfg::cout, alignCSCRings::dest, FieldHandlerBase< TOutput >::getColumnName(), FieldHandler< TOutput, bool, char >::setter_, and relativeConstraints::value.