CFEL - ASG Software Suite
2.5.0
CASS
|
A Channel of an Acqiris TDC Instrument. More...
#include <acqiristdc_device.hpp>
Public Types | |
typedef std::vector< double > | hits_t |
define the hits More... | |
Public Member Functions | |
Channel () | |
constructor that will set the serialize version More... | |
Channel (SerializerBackend &in) | |
construct this from the stream More... | |
void | serialize (SerializerBackend &out) const |
will serialize this channel to the serializer More... | |
bool | deserialize (SerializerBackend &in) |
deserialize this channel from the stream More... | |
const hits_t & | hits () const |
retireve hits More... | |
hits_t & | hits () |
retrieve hits 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 | |
hits_t | _hits |
the hits of the channel More... | |
Additional Inherited Members | |
![]() | |
uint16_t | _version |
the version for de/serializing More... | |
A Channel of an Acqiris TDC Instrument.
contains all information that an Acqiris TDC instrument will provide about a channel and the recorded hits of that channel
Definition at line 30 of file acqiristdc_device.hpp.
typedef std::vector<double> cass::ACQIRISTDC::Channel::hits_t |
define the hits
Definition at line 34 of file acqiristdc_device.hpp.
|
inline |
constructor that will set the serialize version
Definition at line 37 of file acqiristdc_device.hpp.
|
inline |
construct this from the stream
in | the input stream to read this class from |
Definition at line 45 of file acqiristdc_device.hpp.
References deserialize().
|
inlinevirtual |
deserialize this channel from the stream
in | the stream to serialize this class from |
read the number of hits
clear the hit container and read the hits
Implements cass::Serializable.
Definition at line 72 of file acqiristdc_device.hpp.
References _hits, cass::Serializable::checkVersion(), and cass::SerializerBackend::retrieve().
Referenced by Channel().
|
inline |
|
inline |
|
inlinevirtual |
will serialize this channel to the serializer
out | the stream to serialze this class to |
write the number of hits
write the hits
Implements cass::Serializable.
Definition at line 56 of file acqiristdc_device.hpp.
References _hits, cass::SerializerBackend::add(), and cass::Serializable::writeVersion().
|
private |
the hits of the channel
Definition at line 92 of file acqiristdc_device.hpp.
Referenced by deserialize(), hits(), and serialize().