10 #ifndef _ACQIRIS_DEVICE_HPP_
11 #define _ACQIRIS_DEVICE_HPP_
76 size_t nChannels(in.
retrieve<
size_t>());
79 for(
size_t i(0); i < nChannels; ++i)
148 it->second.serialize(out);
161 size_t nInstr(in.
retrieve<
size_t>());
163 for(
size_t i(0); i < nInstr; ++i)
165 const instruments_t::key_type key(in.
retrieve<instruments_t::key_type>());
instruments_t _instruments
Container for all Instruments.
virtual bool deserialize(SerializerBackend &in)
will deserialize all channels from the Serializer
virtual bool deserialize(SerializerBackend &in)
will deserialize all channels from the Serializer
virtual void serialize(SerializerBackend &out) const
will serialize all channels to Serializer
virtual void writeVersion(SerializerBackend &out) const
write the version to the stream
uint64_t _eventID
the eventid that this detector belongs to (can be used for crosschecks
std::map< uint32_t, Instrument > instruments_t
a map of all instruments available
file contains the classes that describe an acqiris channel
channels_t _channels
Container for all Channels.
Instrument(SerializerBackend &in)
constuct class from stream
contains base class for all devices that are part of the cassevent.
const channels_t & channels() const
file contains base class all serializable classes
virtual void checkVersion(SerializerBackend &in) const
check the version
virtual void serialize(SerializerBackend &out) const
will serialize all channels to Serializer
A Channel of an Acqiris Instrument.
const instruments_t & instruments() const
instrument getter
std::vector< Channel > channels_t
a vector of Channels
Type retrieve()
read arbitrary value from stream
A Baseclass for all Devices in the CASSEvent.
void add(const Type &value)
add arbitrary value to the stream
instruments_t & instruments()
instrument setter