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

the device containing pixel detector data More...

#include <pixeldetector.hpp>

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

Public Types

typedef std::map< int32_t, Detectordetectors_t
 define the detector container 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. More...
 
detectors_tdets ()
 instrument setter More...
 
const detectors_tdets () const
 instrument getter More...
 
void serialize (SerializerBackend &out) const
 serialize the data to the Serializer More...
 
bool deserialize (SerializerBackend &in)
 deserialize the data from the Serializer 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

detectors_t _detectors
 Container for all pixel detectors. More...
 

Additional Inherited Members

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

Detailed Description

the device containing pixel detector data

Author
Lutz Foucar

Definition at line 157 of file pixeldetector.hpp.

Member Typedef Documentation

define the detector container

Definition at line 161 of file pixeldetector.hpp.

Constructor & Destructor Documentation

cass::pixeldetector::Device::Device ( )
inline

constructor.

Definition at line 164 of file pixeldetector.hpp.

Member Function Documentation

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

deserialize the data from the Serializer

reads the frame the the key and then the detctor from the serializer

Returns
true when de serialization was successfull
Parameters
inthe serializer object to read the data from

read the number of detectors

read the key of the detector and then deserialze the detector

Implements cass::DeviceBackend.

Definition at line 202 of file pixeldetector.hpp.

References _detectors, cass::Serializable::checkVersion(), Detector, and cass::SerializerBackend::retrieve().

detectors_t& cass::pixeldetector::Device::dets ( )
inline
const detectors_t& cass::pixeldetector::Device::dets ( ) const
inline

instrument getter

Definition at line 173 of file pixeldetector.hpp.

References _detectors.

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

serialize the data to the Serializer

serializes the key within the map and then the detector to the serializer.

Parameters
outthe serializer object that the data will be serialzed to

write how many items in the container there are

write the keys of the detector and the detector itself

Implements cass::DeviceBackend.

Definition at line 181 of file pixeldetector.hpp.

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

Member Data Documentation

detectors_t cass::pixeldetector::Device::_detectors
private

Container for all pixel detectors.

Definition at line 218 of file pixeldetector.hpp.

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


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