CFEL - ASG Software Suite  2.5.0
CASS
Functions
cass::Streaming Namespace Reference

Functions

template<typename T >
retrieve (std::ifstream &file)
 retrieve a variable from a file stream More...
 
template<typename T >
peek (std::ifstream &file)
 retrieve a variable from a file stream without extracting it More...
 
template<typename T >
QDataStreamoperator>> (QDataStream &stream, T &evt)
 reading a type from the QDataStream More...
 
template<typename T >
std::ifstream & operator>> (std::ifstream &stream, T &evt)
 reading a type from the filestream More...
 

Function Documentation

template<typename T >
QDataStream& cass::Streaming::operator>> ( QDataStream stream,
T &  evt 
)

reading a type from the QDataStream

Template Parameters
Tthe type that should be read from the stream
Returns
reference to the stream
Parameters
streamthe stream to read from
evtthe header to read to
Author
Lutz Foucar

Definition at line 244 of file cass.h.

References QDataStream::readRawData().

template<typename T >
std::ifstream& cass::Streaming::operator>> ( std::ifstream &  stream,
T &  evt 
)

reading a type from the filestream

Template Parameters
Tthe type that should be read from the stream
Returns
reference to the stream
Parameters
streamthe stream to read from
evtthe header to read to
Author
Lutz Foucar

Definition at line 261 of file cass.h.

template<typename T >
T cass::Streaming::peek ( std::ifstream &  file)

retrieve a variable from a file stream without extracting it

leaves the file stream at the same position it was before

Returns
the variable
Template Parameters
thetype of the variable to retrieve
Parameters
fileThe file stream to retrieve the vairable from

Definition at line 225 of file cass.h.

template<typename T >
T cass::Streaming::retrieve ( std::ifstream &  file)

retrieve a variable from a file stream

Returns
the variable
Template Parameters
thetype of the variable to retrieve
Parameters
fileThe file stream to retrieve the vairable from
Examples:
SACLA-offline.ini, SACLA-online.ini, and singleParticle.ini.

Definition at line 209 of file cass.h.