#include <RecordHelper.h>
Public Types | |
typedef coral::AttributeList | AttributeList |
typedef std::vector< FieldHandlerBase< TOutput > * > | FieldVector |
Public Member Functions | |
template<typename TField > | |
void | addField (const std::string &fieldName, void(TOutput::*setter)(const TField)) |
virtual void | extractRecord (const AttributeList &source, TOutput &dest) |
virtual std::vector< std::string > | getColumnList () |
virtual | ~RecordHelper () |
Protected Attributes | |
FieldVector | fields_ |
Description: A microframework to deal with the need to fill rather boring getter/setter classes from Coral classes.
Definition at line 151 of file RecordHelper.h.
typedef coral::AttributeList RecordHelper< TOutput >::AttributeList |
Definition at line 153 of file RecordHelper.h.
typedef std::vector<FieldHandlerBase<TOutput>*> RecordHelper< TOutput >::FieldVector |
A list of field handlers that determine how to handle a record.
Definition at line 155 of file RecordHelper.h.
|
inlinevirtual |
Destructor: Wipe out all the field handlers.
Definition at line 185 of file RecordHelper.h.
References RecordHelper< TOutput >::fields_, and ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it.
|
inline |
Definition at line 158 of file RecordHelper.h.
References gather_cfg::cout, RecordHelper< TOutput >::fields_, and Skims_PA_cff::name.
|
inlinevirtual |
Iterates over all known fields and extracts the fields of the record in source to the object in dest.
Definition at line 168 of file RecordHelper.h.
References mps_fire::dest, RecordHelper< TOutput >::fields_, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and source.
|
inlinevirtual |
Returns a list of database column names for the added fields.
Definition at line 175 of file RecordHelper.h.
References RecordHelper< TOutput >::fields_, and ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it.
|
protected |
List of known fields. TODO: Make private, add base type addField.
Definition at line 193 of file RecordHelper.h.
Referenced by RecordHelper< TOutput >::addField(), RecordHelper< TOutput >::extractRecord(), RecordHelper< TOutput >::getColumnList(), and RecordHelper< TOutput >::~RecordHelper().