CFEL - ASG Software Suite  2.5.0
CASS
Classes | Functions
cass::MachineData Namespace Reference

Classes

class  Converter
 Converter for Beamline-, Cavity-, Epics- and EVR Data. More...
 
class  Device
 Container for all Machine related Data. More...
 
class  XTCDataKey
 Key for the xtc data lookup map. More...
 

Functions

template<int valtype>
void convertEpicsToDouble (const Pds::EpicsPvHeader &epicsData, Device::epicsDataMap_t::iterator first)
 convert epics variable to double More...
 
template<int valtype>
void epicsValToCassVal (const Pds::EpicsPvHeader &epicsData, Device::epicsDataMap_t::iterator storefirst, Device::epicsDataMap_t::iterator cassfirst)
 convert epics variable to double and fill store and cassevent More...
 
void epicsValToNothing (const Pds::EpicsPvHeader &, Device::epicsDataMap_t::iterator, Device::epicsDataMap_t::iterator)
 convert epics variable to nothing More...
 

Function Documentation

template<int valtype>
void cass::MachineData::convertEpicsToDouble ( const Pds::EpicsPvHeader &  epicsData,
Device::epicsDataMap_t::iterator  first 
)

convert epics variable to double

convert the value contained in the Epics variable to a double and fill it into the map. One has to define beforehand where to add it and pass the right iterator to the function

Template Parameters
valtypethe value type of the epics variable
Parameters
epicsDatathe object that contains the epics data
firstiterator to the first entry in the map that needs to be filled
Author
Lutz Foucar

Definition at line 68 of file machine_converter.cpp.

References value.

template<int valtype>
void cass::MachineData::epicsValToCassVal ( const Pds::EpicsPvHeader &  epicsData,
Device::epicsDataMap_t::iterator  storefirst,
Device::epicsDataMap_t::iterator  cassfirst 
)

convert epics variable to double and fill store and cassevent

convert the value contained in the Epics variable to a double and fill it into the map. One has to define beforehand where to add it and pass the right iterator to the function

Template Parameters
valtypethe value type of the epics variable
Parameters
epicsDatathe object that contains the epics data
storefirstiterator to the first entry in the epics part of store
cassfirstiterator to the first entry in the epics part of cassevent
Author
Lutz Foucar

Definition at line 92 of file machine_converter.cpp.

References value.

void cass::MachineData::epicsValToNothing ( const Pds::EpicsPvHeader &  ,
Device::epicsDataMap_t::iterator  ,
Device::epicsDataMap_t::iterator   
)

convert epics variable to nothing

don't do anything. This function is needed, because string types can't be converted, therefore this is used as dummy for epics string types.

Template Parameters
valtypethe value type of the epics variable
Parameters
epicsDatathe object that contains the epics data
storefirstiterator to the first entry in the epics part of store
cassfirstiterator to the first entry in the epics part of cassevent
Author
Lutz Foucar

Definition at line 119 of file machine_converter.cpp.

Referenced by cass::MachineData::Converter::Converter().