CFEL - ASG Software Suite
2.5.0
CASS
|
Base class for Converters. More...
#include <conversion_backend.h>
Public Types | |
typedef std::tr1::shared_ptr< ConversionBackend > | shared_pointer |
typedef More... | |
typedef std::list< Pds::TypeId::Type > | pdstypelist_t |
typedef More... | |
Public Member Functions | |
virtual | ~ConversionBackend () |
virtual destructor to make clear this is a base class More... | |
virtual void | prepare (cass::CASSEvent *) |
prepare the cassevent More... | |
virtual void | operator() (const Pds::Xtc *xtc, cass::CASSEvent *evt) |
pure virtual operator. More... | |
virtual void | finalize (cass::CASSEvent *) |
finalize the event More... | |
const pdstypelist_t & | pdsTypeList () const |
return the list of pds type ids the converter is responsible for More... | |
Static Public Member Functions | |
static shared_pointer | instance (const std::string &type) |
return the requested converter type More... | |
Protected Attributes | |
pdstypelist_t | _pdsTypeList |
the list of pds types that the converter is responsible for More... | |
Base class for Converters.
Inherit from this class if you would like to add a new Converter
Definition at line 38 of file conversion_backend.h.
typedef std::list<Pds::TypeId::Type> cass::ConversionBackend::pdstypelist_t |
typedef
Definition at line 45 of file conversion_backend.h.
typedef std::tr1::shared_ptr<ConversionBackend> cass::ConversionBackend::shared_pointer |
typedef
Definition at line 42 of file conversion_backend.h.
|
inlinevirtual |
virtual destructor to make clear this is a base class
Definition at line 49 of file conversion_backend.h.
|
inlinevirtual |
finalize the event
evt | the event that should be finalized |
Reimplemented in cass::MachineData::Converter.
Definition at line 70 of file conversion_backend.h.
|
static |
return the requested converter type
type | the type of the requested converter |
Definition at line 28 of file conversion_backend.cpp.
Referenced by cass::FormatConverter::loadSettings().
|
virtual |
pure virtual operator.
call this to convert the xtc to the cass event
xtc | the xtc that contains the data to convert |
evt | the event where the converted data should be stored |
Reimplemented in cass::pixeldetector::Converter, cass::ACQIRIS::Converter, cass::MachineData::Converter, and cass::ACQIRISTDC::Converter.
Definition at line 47 of file conversion_backend.cpp.
|
inline |
return the list of pds type ids the converter is responsible for
Definition at line 73 of file conversion_backend.h.
|
inlinevirtual |
prepare the cassevent
evt | the event shat shoul be prepared |
Reimplemented in cass::MachineData::Converter.
Definition at line 55 of file conversion_backend.h.
|
protected |
the list of pds types that the converter is responsible for
Definition at line 84 of file conversion_backend.h.