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

An Acqiris TDC Instrument. More...

#include <acqiristdc_device.hpp>

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

Public Types

enum  { NbrChannels =6 }
 there is a fixed size of channels in this instrument More...
 
typedef std::vector< Channelchannels_t
 a vector of Channels More...
 

Public Member Functions

 Instrument ()
 constructor More...
 
 Instrument (SerializerBackend &in)
 constuct class from stream More...
 
void serialize (SerializerBackend &out) const
 will serialize all channels to Serializer More...
 
bool deserialize (SerializerBackend &in)
 will deserialize all channels from the Serializer More...
 
const channels_tchannels () const
 
channels_tchannels ()
 
- 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

channels_t _channels
 Container for all Channels. More...
 

Additional Inherited Members

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

Detailed Description

An Acqiris TDC Instrument.

An Acqiris Instrument represents the actual Acqiris (Multi)-Instrument, which contains a lot of channels

Author
Lutz Foucar

Definition at line 104 of file acqiristdc_device.hpp.

Member Typedef Documentation

a vector of Channels

Definition at line 124 of file acqiristdc_device.hpp.

Member Enumeration Documentation

anonymous enum

there is a fixed size of channels in this instrument

Enumerator
NbrChannels 

Definition at line 127 of file acqiristdc_device.hpp.

Constructor & Destructor Documentation

cass::ACQIRISTDC::Instrument::Instrument ( )
inline

constructor

Definition at line 108 of file acqiristdc_device.hpp.

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

constuct class from stream

Parameters
inthe stream to construct this class from

Definition at line 116 of file acqiristdc_device.hpp.

References deserialize().

Member Function Documentation

const channels_t& cass::ACQIRISTDC::Instrument::channels ( ) const
inline
Returns
the channels of this instrument

Definition at line 164 of file acqiristdc_device.hpp.

References _channels.

channels_t& cass::ACQIRISTDC::Instrument::channels ( )
inline
Returns
a reference, so that one can edit the channels

Definition at line 167 of file acqiristdc_device.hpp.

References _channels.

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

will deserialize all channels from the Serializer

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

read how many channels

clear the channel container and read the channels from the stream

Implements cass::Serializable.

Definition at line 150 of file acqiristdc_device.hpp.

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

Referenced by Instrument().

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

will serialize all channels to Serializer

Parameters
outthe stream to serialze this class to

serialize the size of the channels and then all channels

Implements cass::Serializable.

Definition at line 134 of file acqiristdc_device.hpp.

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

Member Data Documentation

channels_t cass::ACQIRISTDC::Instrument::_channels
private

Container for all Channels.

Definition at line 171 of file acqiristdc_device.hpp.

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


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