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

deserialize the data stream of the regular agat program More...

#include <agat_deserializer.h>

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

Public Member Functions

size_t operator() (QDataStream &stream, CASSEvent &evt)
 deserialize stream More...
 
- Public Member Functions inherited from cass::TCPStreamer
virtual ~TCPStreamer ()
 virtual destructor More...
 
virtual size_t operator() (QDataStream &)
 deserialize the file header More...
 

Additional Inherited Members

- Public Types inherited from cass::TCPStreamer
typedef std::tr1::shared_ptr< TCPStreamershared_pointer
 typedef the shared pointer of this More...
 
- Static Public Member Functions inherited from cass::TCPStreamer
static TCPStreamerinstance (const std::string &type)
 create an instance of the requested type and return a reference More...
 
static TCPStreamerinstance ()
 return a reference to the derefenced instance More...
 
- Protected Member Functions inherited from cass::TCPStreamer
 TCPStreamer ()
 only inheritants can create this More...
 
- Static Protected Attributes inherited from cass::TCPStreamer
static shared_pointer _instance
 a sigleton instance More...
 

Detailed Description

deserialize the data stream of the regular agat program

see operator for details

Author
Lutz Foucar

Definition at line 29 of file agat_deserializer.h.

Member Function Documentation

size_t AGATStreamer::operator() ( QDataStream stream,
CASSEvent evt 
)
virtual

deserialize stream

Returns
number of bytes read off the stream
Parameters
streamThe stream that contains the serialized data
evtThe 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().


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