CFEL - ASG Software Suite  2.5.0
CASS
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
cass::TCPStreamer Class Referenceabstract

base class for all tcp streamers More...

#include <tcp_streamer.h>

+ Inheritance diagram for cass::TCPStreamer:

Public Types

typedef std::tr1::shared_ptr< TCPStreamershared_pointer
 typedef the shared pointer of this More...
 

Public Member Functions

virtual ~TCPStreamer ()
 virtual destructor More...
 
virtual size_t operator() (QDataStream &stream, CASSEvent &evt)=0
 deserialize stream More...
 
virtual size_t operator() (QDataStream &)
 deserialize the file header More...
 

Static Public Member Functions

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

 TCPStreamer ()
 only inheritants can create this More...
 

Static Protected Attributes

static shared_pointer _instance
 a sigleton instance More...
 

Detailed Description

base class for all tcp streamers

Author
Lutz Foucar

Definition at line 25 of file tcp_streamer.h.

Member Typedef Documentation

typedef std::tr1::shared_ptr<TCPStreamer> cass::TCPStreamer::shared_pointer

typedef the shared pointer of this

Definition at line 29 of file tcp_streamer.h.

Constructor & Destructor Documentation

virtual cass::TCPStreamer::~TCPStreamer ( )
inlinevirtual

virtual destructor

Definition at line 32 of file tcp_streamer.h.

cass::TCPStreamer::TCPStreamer ( )
inlineprotected

only inheritants can create this

Definition at line 64 of file tcp_streamer.h.

Member Function Documentation

TCPStreamer & TCPStreamer::instance ( const std::string &  type)
static

create an instance of the requested type and return a reference

Returns
a refrerence to the object contained in the shared pointer
Parameters
typethe reqested type

Definition at line 29 of file tcp_streamer.cpp.

TCPStreamer & TCPStreamer::instance ( )
static

return a reference to the derefenced instance

Returns
a refrerence to the object contained in the shared pointer

Definition at line 22 of file tcp_streamer.cpp.

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

virtual size_t cass::TCPStreamer::operator() ( QDataStream stream,
CASSEvent evt 
)
pure virtual

deserialize stream

Returns
the nbr of bytes read of from stream
Parameters
streamThe stream that contains the serialized data
evtThe CASS Event that the data should be deserialized to.

Implemented in cass::pixeldetector::SHMStreamer, and cass::ACQIRIS::AGATStreamer.

virtual size_t cass::TCPStreamer::operator() ( QDataStream )
inlinevirtual

deserialize the file header

Returns
the nbr of bytes read of from stream
Parameters
streamthe datastream containing the header information

Reimplemented in cass::pixeldetector::SHMStreamer.

Definition at line 60 of file tcp_streamer.h.

Member Data Documentation

TCPStreamer::shared_pointer TCPStreamer::_instance
staticprotected

a sigleton instance

Definition at line 67 of file tcp_streamer.h.


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