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

The Acqiris TDC device. More...

#include <acqiristdc_device.hpp>

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

Public Types

typedef std::map< uint32_t, Instrumentinstruments_t
 define the instruments 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...
 
instruments_tinstruments ()
 instrument setter More...
 
const instruments_tinstruments () const
 instrument getter 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...
 
- 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

instruments_t _instruments
 Container for all Instruments. More...
 

Additional Inherited Members

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

Detailed Description

The Acqiris TDC device.

The Acqiris TDC device contains all availabe Acqiris TDC instruments

Author
Lutz Foucar

Definition at line 183 of file acqiristdc_device.hpp.

Member Typedef Documentation

define the instruments container

Definition at line 193 of file acqiristdc_device.hpp.

Constructor & Destructor Documentation

cass::ACQIRISTDC::Device::Device ( )
inline

constructor

Definition at line 187 of file acqiristdc_device.hpp.

Member Function Documentation

bool cass::ACQIRISTDC::Device::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 the number of instruments

read the key of the instrument and add the deserialized instrument

Implements cass::DeviceBackend.

Definition at line 226 of file acqiristdc_device.hpp.

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

instruments_t& cass::ACQIRISTDC::Device::instruments ( )
inline

instrument setter

Definition at line 197 of file acqiristdc_device.hpp.

References _instruments.

const instruments_t& cass::ACQIRISTDC::Device::instruments ( ) const
inline

instrument getter

Definition at line 200 of file acqiristdc_device.hpp.

References _instruments.

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

will serialize all channels to Serializer

Parameters
outthe stream to serialze this class to

write the size of the instruments container

now write each instrument but first the key of the instrument

Implements cass::DeviceBackend.

Definition at line 207 of file acqiristdc_device.hpp.

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

Member Data Documentation

instruments_t cass::ACQIRISTDC::Device::_instruments
private

Container for all Instruments.

Definition at line 242 of file acqiristdc_device.hpp.

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


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