CFEL - ASG Software Suite
2.5.0
CASS
|
deserialize the data stream of the regular agat program More...
#include <agat_deserializer.h>
Public Member Functions | |
size_t | operator() (QDataStream &stream, CASSEvent &evt) |
deserialize stream More... | |
![]() | |
virtual | ~TCPStreamer () |
virtual destructor More... | |
virtual size_t | operator() (QDataStream &) |
deserialize the file header More... | |
Additional Inherited Members | |
![]() | |
typedef std::tr1::shared_ptr< TCPStreamer > | shared_pointer |
typedef the shared pointer of this More... | |
![]() | |
static TCPStreamer & | instance (const std::string &type) |
create an instance of the requested type and return a reference More... | |
static TCPStreamer & | instance () |
return a reference to the derefenced instance More... | |
![]() | |
TCPStreamer () | |
only inheritants can create this More... | |
![]() | |
static shared_pointer | _instance |
a sigleton instance More... | |
deserialize the data stream of the regular agat program
see operator for details
Definition at line 29 of file agat_deserializer.h.
|
virtual |
deserialize stream
stream | The stream that contains the serialized data |
evt | The CASS Event that the data should be deserialized to. |
extract the right instrument from the cassevent
read the event header and copy the id
resize the channel container to fit the right number of channels
for each channel
check whether it is contained in the stream
if the channel is contained in the stream
read the channel header
copy channel parameters from the header to the cassevent
resize the wavefrom so that all the pulses will fit into it
set all value to the basevalue
for all pulses within that channel
read the puls header and determine the length of the puls form it
read the puls data into the wavefrom at the right position
Implements cass::TCPStreamer.
Definition at line 27 of file agat_deserializer.cpp.
References cass::CASSEvent::Acqiris, cass::ACQIRIS::Channel::channelNbr(), cass::CASSEvent::devices(), cass::CASSEvent::id(), cass::lmaHeader::Puls::length, and QDataStream::readRawData().