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

The Acqiris device. More...

#include <acqiris_device.hpp>

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

Public Types

typedef std::map< uint32_t, Instrumentinstruments_t
 a map of all instruments available 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...
 
virtual void serialize (SerializerBackend &out) const
 will serialize all channels to Serializer More...
 
virtual 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 device.

The Acqiris device contains all availabe Acqiris instruments All availabe instruments will be added when they are detected

Author
Lutz Foucar

Definition at line 115 of file acqiris_device.hpp.

Member Typedef Documentation

a map of all instruments available

Definition at line 125 of file acqiris_device.hpp.

Constructor & Destructor Documentation

cass::ACQIRIS::Device::Device ( )
inline

constructor

Definition at line 119 of file acqiris_device.hpp.

Member Function Documentation

virtual bool cass::ACQIRIS::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 157 of file acqiris_device.hpp.

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

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

instrument setter

Definition at line 129 of file acqiris_device.hpp.

References _instruments.

Referenced by cass::HDF5FileInput::runthis().

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

instrument getter

Definition at line 132 of file acqiris_device.hpp.

References _instruments.

virtual void cass::ACQIRIS::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 container

for each instrument in the map write the key and then the Instrument

Implements cass::DeviceBackend.

Definition at line 139 of file acqiris_device.hpp.

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

Member Data Documentation

instruments_t cass::ACQIRIS::Device::_instruments
private

Container for all Instruments.

Definition at line 173 of file acqiris_device.hpp.

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


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