CFEL - ASG Software Suite  2.5.0
CASS
Public Types | Public Member Functions | Private Attributes | List of all members
cass::MachineData::Device Class Reference

Container for all Machine related Data. More...

#include <machine_device.hpp>

+ Inheritance diagram for cass::MachineData::Device:
+ Collaboration diagram for cass::MachineData::Device:

Public Types

typedef std::map< std::string, double > epicsDataMap_t
 define the epics container More...
 
typedef std::map< std::string, double > bldMap_t
 define the beamline data container More...
 
typedef std::vector< bool > evrStatus_t
 define the evr status container More...
 
typedef std::map< std::string, std::vector< uint32_t > > spectrometer_t
 define the spectrometer data More...
 
- Public Types inherited from cass::DeviceBackend
typedef std::tr1::shared_ptr< DeviceBackendshared_pointer
 a shared pointer of this type More...
 

Public Member Functions

 Device ()
 constructor initializing values to meaningful data More...
 
void serialize (SerializerBackend &out) const
 serialize the device to the serializer More...
 
bool deserialize (SerializerBackend &in)
 deserialize the device from the stream More...
 
const epicsDataMap_tEpicsData () const
 getter More...
 
const bldMap_tBeamlineData () const
 getter More...
 
const evrStatus_tEvrData () const
 getter More...
 
const spectrometer_tspectrometers () const
 getter More...
 
bool epicsFilled () const
 getter More...
 
bldMap_tBeamlineData ()
 setter More...
 
epicsDataMap_tEpicsData ()
 setter More...
 
evrStatus_tEvrData ()
 setter More...
 
spectrometer_tspectrometers ()
 setter More...
 
bool & epicsFilled ()
 setter More...
 
- Public Member Functions inherited from cass::DeviceBackend
 DeviceBackend (uint16_t version)
 constructor already initializing the serialization version More...
 
virtual ~DeviceBackend ()
 virtual desctructor More...
 
- Public Member Functions inherited from cass::Serializable
 Serializable (uint16_t version)
 constructor initializing the version More...
 
virtual ~Serializable ()
 virtual destructor to avoid warning with gcc 4.1.2 More...
 
uint16_t ver () const
 retrieve the version of the serializer More...
 
virtual void writeVersion (SerializerBackend &out) const
 write the version to the stream More...
 
virtual void checkVersion (SerializerBackend &in) const
 check the version More...
 

Private Attributes

bldMap_t _blddata
 map containing the beamlinedata More...
 
epicsDataMap_t _epicsdata
 a map containing all epics data in the xtc stream More...
 
evrStatus_t _evrdata
 a vector of bools describing the evr status More...
 
spectrometer_t _spectrometers
 container for beamline spectrometer data More...
 
bool _epicsFilled
 status flag to tell whether the epics variables have been filled during conversion More...
 

Additional Inherited Members

- Protected Attributes inherited from cass::Serializable
uint16_t _version
 the version for de/serializing More...
 

Detailed Description

Container for all Machine related Data.

This device contains all data that is machine related

Author
Lutz Foucar

Definition at line 33 of file machine_device.hpp.

Member Typedef Documentation

typedef std::map<std::string,double> cass::MachineData::Device::bldMap_t

define the beamline data container

Definition at line 50 of file machine_device.hpp.

define the epics container

Note
instead of double as second one could make it a QVariant to be able to also store strings.

Definition at line 47 of file machine_device.hpp.

typedef std::vector<bool> cass::MachineData::Device::evrStatus_t

define the evr status container

Definition at line 53 of file machine_device.hpp.

typedef std::map<std::string,std::vector<uint32_t> > cass::MachineData::Device::spectrometer_t

define the spectrometer data

Definition at line 56 of file machine_device.hpp.

Constructor & Destructor Documentation

cass::MachineData::Device::Device ( )
inline

constructor initializing values to meaningful data

Definition at line 37 of file machine_device.hpp.

Member Function Documentation

const bldMap_t& cass::MachineData::Device::BeamlineData ( ) const
inline
bldMap_t& cass::MachineData::Device::BeamlineData ( )
inline

setter

Definition at line 129 of file machine_device.hpp.

References _blddata.

bool cass::MachineData::Device::deserialize ( SerializerBackend in)
inlinevirtual

deserialize the device from the stream

Returns
true when this class was deserialized from the stream sucessfully
Parameters
inthe stream to serialize this class from

check whether the version is correct

read the beamlinedata, first clear the existing map

then read the size of the map

now retrieve every entry of the map and add it to the map

read the epics data, first clear the existing map

read the size of the map

now retrieve every entry of the map and add it to the map

Implements cass::DeviceBackend.

Definition at line 90 of file machine_device.hpp.

References _blddata, _epicsdata, cass::Serializable::checkVersion(), and cass::SerializerBackend::retrieve().

const epicsDataMap_t& cass::MachineData::Device::EpicsData ( ) const
inline

getter

Definition at line 120 of file machine_device.hpp.

References _epicsdata.

epicsDataMap_t& cass::MachineData::Device::EpicsData ( )
inline

setter

Definition at line 130 of file machine_device.hpp.

References _epicsdata.

bool cass::MachineData::Device::epicsFilled ( ) const
inline

getter

Definition at line 124 of file machine_device.hpp.

References _epicsFilled.

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

bool& cass::MachineData::Device::epicsFilled ( )
inline

setter

Definition at line 133 of file machine_device.hpp.

References _epicsFilled.

const evrStatus_t& cass::MachineData::Device::EvrData ( ) const
inline

getter

Definition at line 122 of file machine_device.hpp.

References _evrdata.

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

evrStatus_t& cass::MachineData::Device::EvrData ( )
inline

setter

Definition at line 131 of file machine_device.hpp.

References _evrdata.

void cass::MachineData::Device::serialize ( SerializerBackend out) const
inlinevirtual

serialize the device to the serializer

Parameters
outthe stream to serialze this class to

write the version

write the size of the beamlinedata

for each beamline entry in the map write the name and then the value

write the epics data size

for each epics entry in the map write the name and then the value

Implements cass::DeviceBackend.

Definition at line 63 of file machine_device.hpp.

References _blddata, _epicsdata, cass::SerializerBackend::add(), and cass::Serializable::writeVersion().

const spectrometer_t& cass::MachineData::Device::spectrometers ( ) const
inline

getter

Definition at line 123 of file machine_device.hpp.

References _spectrometers.

spectrometer_t& cass::MachineData::Device::spectrometers ( )
inline

setter

Definition at line 132 of file machine_device.hpp.

References _spectrometers.

Member Data Documentation

bldMap_t cass::MachineData::Device::_blddata
private

map containing the beamlinedata

Definition at line 138 of file machine_device.hpp.

Referenced by BeamlineData(), deserialize(), and serialize().

epicsDataMap_t cass::MachineData::Device::_epicsdata
private

a map containing all epics data in the xtc stream

Definition at line 139 of file machine_device.hpp.

Referenced by deserialize(), EpicsData(), and serialize().

bool cass::MachineData::Device::_epicsFilled
private

status flag to tell whether the epics variables have been filled during conversion

Definition at line 146 of file machine_device.hpp.

Referenced by epicsFilled().

evrStatus_t cass::MachineData::Device::_evrdata
private

a vector of bools describing the evr status

Definition at line 140 of file machine_device.hpp.

Referenced by EvrData().

spectrometer_t cass::MachineData::Device::_spectrometers
private

container for beamline spectrometer data

Definition at line 143 of file machine_device.hpp.

Referenced by spectrometers().


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