CFEL - ASG Software Suite  2.5.0
CASS
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
cass::ConversionBackend Class Reference

Base class for Converters. More...

#include <conversion_backend.h>

+ Inheritance diagram for cass::ConversionBackend:
+ Collaboration diagram for cass::ConversionBackend:

Public Types

typedef std::tr1::shared_ptr< ConversionBackendshared_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_tpdsTypeList () 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...
 

Detailed Description

Base class for Converters.

Inherit from this class if you would like to add a new Converter

Author
Lutz Foucar
Jochen Kuepper

Definition at line 38 of file conversion_backend.h.

Member Typedef Documentation

typedef std::list<Pds::TypeId::Type> cass::ConversionBackend::pdstypelist_t

typedef

Definition at line 45 of file conversion_backend.h.

typedef

Definition at line 42 of file conversion_backend.h.

Constructor & Destructor Documentation

virtual cass::ConversionBackend::~ConversionBackend ( )
inlinevirtual

virtual destructor to make clear this is a base class

Definition at line 49 of file conversion_backend.h.

Member Function Documentation

virtual void cass::ConversionBackend::finalize ( cass::CASSEvent )
inlinevirtual

finalize the event

Parameters
evtthe event that should be finalized

Reimplemented in cass::MachineData::Converter.

Definition at line 70 of file conversion_backend.h.

ConversionBackend::shared_pointer ConversionBackend::instance ( const std::string &  type)
static

return the requested converter type

Returns
shared pointer to the requested converter
Parameters
typethe type of the requested converter

Definition at line 28 of file conversion_backend.cpp.

Referenced by cass::FormatConverter::loadSettings().

void ConversionBackend::operator() ( const Pds::Xtc *  xtc,
cass::CASSEvent evt 
)
virtual

pure virtual operator.

call this to convert the xtc to the cass event

Parameters
xtcthe xtc that contains the data to convert
evtthe 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.

const pdstypelist_t& cass::ConversionBackend::pdsTypeList ( ) const
inline

return the list of pds type ids the converter is responsible for

Definition at line 73 of file conversion_backend.h.

virtual void cass::ConversionBackend::prepare ( cass::CASSEvent )
inlinevirtual

prepare the cassevent

Parameters
evtthe event shat shoul be prepared

Reimplemented in cass::MachineData::Converter.

Definition at line 55 of file conversion_backend.h.

Member Data Documentation

pdstypelist_t cass::ConversionBackend::_pdsTypeList
protected

the list of pds types that the converter is responsible for

Definition at line 84 of file conversion_backend.h.


The documentation for this class was generated from the following files: