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

A Channel of an Acqiris TDC Instrument. More...

#include <acqiristdc_device.hpp>

+ Inheritance diagram for cass::ACQIRISTDC::Channel:
+ Collaboration diagram for cass::ACQIRISTDC::Channel:

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_thits () const
 retireve hits More...
 
hits_thits ()
 retrieve hits 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

hits_t _hits
 the hits of the channel More...
 

Additional Inherited Members

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

Detailed Description

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

Author
Lutz Foucar

Definition at line 30 of file acqiristdc_device.hpp.

Member Typedef Documentation

typedef std::vector<double> cass::ACQIRISTDC::Channel::hits_t

define the hits

Definition at line 34 of file acqiristdc_device.hpp.

Constructor & Destructor Documentation

cass::ACQIRISTDC::Channel::Channel ( )
inline

constructor that will set the serialize version

Definition at line 37 of file acqiristdc_device.hpp.

cass::ACQIRISTDC::Channel::Channel ( SerializerBackend in)
inline

construct this from the stream

Parameters
inthe input stream to read this class from

Definition at line 45 of file acqiristdc_device.hpp.

References deserialize().

Member Function Documentation

bool cass::ACQIRISTDC::Channel::deserialize ( SerializerBackend in)
inlinevirtual

deserialize this channel from the stream

Returns
true when this class was deserialized from the stream sucessfully
Parameters
inthe 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().

const hits_t& cass::ACQIRISTDC::Channel::hits ( ) const
inline

retireve hits

Definition at line 85 of file acqiristdc_device.hpp.

References _hits.

hits_t& cass::ACQIRISTDC::Channel::hits ( )
inline

retrieve hits

Definition at line 88 of file acqiristdc_device.hpp.

References _hits.

void cass::ACQIRISTDC::Channel::serialize ( SerializerBackend out) const
inlinevirtual

will serialize this channel to the serializer

Parameters
outthe 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().

Member Data Documentation

hits_t cass::ACQIRISTDC::Channel::_hits
private

the hits of the channel

Definition at line 92 of file acqiristdc_device.hpp.

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


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