CFEL - ASG Software Suite  2.5.0
CASS
agat_deserializer.h
Go to the documentation of this file.
1 // Copyright (C) 2011 Lutz Foucar
2 
3 /**
4  * @file agat_deserializer.h contains functions to deserialize the data stream
5  * sent by agat.
6  *
7  * @author Lutz Foucar
8  */
9 
10 #ifndef __AGATDESERIALIZE_H__
11 #define __AGATDESERIALIZE_H__
12 
13 class QDataStream;
14 
15 #include "tcp_streamer.h"
16 
17 namespace cass
18 {
19 class CASSEvent;
20 
21 namespace ACQIRIS
22 {
23 /** deserialize the data stream of the regular agat program
24  *
25  * see operator for details
26  *
27  * @author Lutz Foucar
28  */
29 class AGATStreamer : public TCPStreamer
30 {
31 public:
32  /** deserialize stream
33  *
34  * @return number of bytes read off the stream
35  * @param stream The stream that contains the serialized data
36  * @param evt The CASS Event that the data should be deserialized to.
37  */
38  size_t operator()(QDataStream& stream, CASSEvent& evt);
39 };
40 }//end namespace ACQIRIS
41 }//end namespace CASS
42 
43 #endif
Event to store all LCLS Data.
Definition: cass_event.h:32
deserialize the data stream of the regular agat program
size_t operator()(QDataStream &stream, CASSEvent &evt)
deserialize stream
contains base class for all tcp streamers
base class for all tcp streamers
Definition: tcp_streamer.h:25