CFEL - ASG Software Suite  2.5.0
CASS
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
cass::ACQIRISTDC::Converter Class Reference

Acqiris Converter. More...

#include <acqiristdc_converter.h>

+ Inheritance diagram for cass::ACQIRISTDC::Converter:
+ Collaboration diagram for cass::ACQIRISTDC::Converter:

Public Member Functions

void operator() (const Pds::Xtc *, CASSEvent *)
 takes the xtc and copies the data to cassevent More...
 
- Public Member Functions inherited from cass::ConversionBackend
virtual ~ConversionBackend ()
 virtual destructor to make clear this is a base class More...
 
virtual void prepare (cass::CASSEvent *)
 prepare the cassevent 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 ConversionBackend::shared_pointer instance ()
 create singleton if doesnt exist already More...
 
- Static Public Member Functions inherited from cass::ConversionBackend
static shared_pointer instance (const std::string &type)
 return the requested converter type More...
 

Private Member Functions

 Converter ()
 constructor More...
 
 Converter (const Converter &)
 prevent copy construction More...
 
Converteroperator= (const Converter &)
 prevent assignment More...
 

Static Private Attributes

static ConversionBackend::shared_pointer _instance
 the singleton container More...
 
static QMutex _mutex
 singleton locker for mutithreaded requests More...
 

Additional Inherited Members

- Public Types inherited from cass::ConversionBackend
typedef std::tr1::shared_ptr< ConversionBackendshared_pointer
 typedef More...
 
typedef std::list< Pds::TypeId::Type > pdstypelist_t
 typedef More...
 
- Protected Attributes inherited from cass::ConversionBackend
pdstypelist_t _pdsTypeList
 the list of pds types that the converter is responsible for More...
 

Detailed Description

Acqiris Converter.

this class takes a xtc of type Id_AcqTDC and extracts the acqiris tdc channels for all instruments

Author
Lutz Foucar

Definition at line 29 of file acqiristdc_converter.h.

Constructor & Destructor Documentation

Converter::Converter ( )
private

constructor

sets up the pds type ids that it is responsible for

Definition at line 45 of file acqiristdc_converter.cpp.

cass::ACQIRISTDC::Converter::Converter ( const Converter )
private

prevent copy construction

Member Function Documentation

cass::ConversionBackend::shared_pointer Converter::instance ( )
static

create singleton if doesnt exist already

Definition at line 33 of file acqiristdc_converter.cpp.

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

takes the xtc and copies the data to cassevent

Reimplemented from cass::ConversionBackend.

Definition at line 51 of file acqiristdc_converter.cpp.

References cass::CASSEvent::AcqirisTDC, data, cass::CASSEvent::devices(), info, and cass::ACQIRISTDC::Instrument::NbrChannels.

Converter& cass::ACQIRISTDC::Converter::operator= ( const Converter )
private

prevent assignment

Member Data Documentation

cass::ConversionBackend::shared_pointer Converter::_instance
staticprivate

the singleton container

Definition at line 52 of file acqiristdc_converter.h.

QMutex Converter::_mutex
staticprivate

singleton locker for mutithreaded requests

Definition at line 55 of file acqiristdc_converter.h.


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