CFEL - ASG Software Suite
2.5.0
CASS
|
the device containing pixel detector data More...
#include <pixeldetector.hpp>
Public Types | |
typedef std::map< int32_t, Detector > | detectors_t |
define the detector container More... | |
![]() | |
typedef std::tr1::shared_ptr< DeviceBackend > | shared_pointer |
a shared pointer of this type More... | |
Public Member Functions | |
Device () | |
constructor. More... | |
detectors_t & | dets () |
instrument setter More... | |
const detectors_t & | dets () 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... | |
![]() | |
DeviceBackend (uint16_t version) | |
constructor already initializing the serialization version More... | |
virtual | ~DeviceBackend () |
virtual desctructor More... | |
![]() | |
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 | |
![]() | |
uint16_t | _version |
the version for de/serializing More... | |
the device containing pixel detector data
Definition at line 157 of file pixeldetector.hpp.
typedef std::map<int32_t,Detector> cass::pixeldetector::Device::detectors_t |
define the detector container
Definition at line 161 of file pixeldetector.hpp.
|
inline |
constructor.
Definition at line 164 of file pixeldetector.hpp.
|
inlinevirtual |
deserialize the data from the Serializer
reads the frame the the key and then the detctor from the serializer
in | the 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().
|
inline |
instrument setter
Definition at line 170 of file pixeldetector.hpp.
References _detectors.
Referenced by cass::pixeldetector::AdvancedDetector::associate(), cass::OctalDetector::copyData(), cass::pixeldetector::SHMStreamer::operator()(), cass::pixeldetector::RAWSSSReader::operator()(), cass::pixeldetector::Frms6Reader::operator()(), cass::SACLAConverter::operator()(), cass::pixeldetector::retrieveDet(), cass::ZMQInput::runthis(), cass::XFELOnlineInput::runthis(), cass::XFELHDF5FileInput::runthis(), and cass::HDF5FileInput::runthis().
|
inline |
|
inlinevirtual |
serialize the data to the Serializer
serializes the key within the map and then the detector to the serializer.
out | the 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().
|
private |
Container for all pixel detectors.
Definition at line 218 of file pixeldetector.hpp.
Referenced by deserialize(), dets(), and serialize().