Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Related Pages

SctData::IO::ResultHeaderStreamer_v1 Class Reference

This class is an ISSerializer for reading/writing ResultHeaders to/from IS. More...

#include <ResultHeaderStreamer_v1.h>

Inheritance diagram for SctData::IO::ResultHeaderStreamer_v1:

Inheritance graph
[legend]
Collaboration diagram for SctData::IO::ResultHeaderStreamer_v1:

Collaboration graph
[legend]

Public Member Functions

virtual void write (OStream &out, const Streamable &ob, const IOManager &manager) const throw (LogicError, IoError)
 Publishes ob to out.

virtual shared_ptr< Streamableread (IStream &in, const IOManager &manager) const throw (LogicError, IoError)
 Create a new Streamable object of the appropriate type from IS.

virtual void read (IStream &in, Streamable &ob, const IOManager &manager) const throw (LogicError, IoError)
virtual unsigned getVersion () const throw ()

Private Member Functions

 ResultHeaderStreamer_v1 () throw ()
 Constructor is private.


Static Private Attributes

unsigned s_version
bool inMap
 The static dummy variable for the IOManager map.


Detailed Description

This class is an ISSerializer for reading/writing ResultHeaders to/from IS.

Note that this class handles the reading and writing of ScanTypes itself

Definition at line 22 of file ResultHeaderStreamer_v1.h.


Constructor & Destructor Documentation

SctData::IO::ResultHeaderStreamer_v1::ResultHeaderStreamer_v1  )  throw () [private]
 

Constructor is private.

Definition at line 17 of file ResultHeaderStreamer_v1.cpp.


Member Function Documentation

void SctData::IO::ResultHeaderStreamer_v1::read IStream in,
Streamable ob,
const IOManager manager
const throw (LogicError, IoError) [virtual]
 

Should always succeed!

Implements Sct::Streamer.

Definition at line 36 of file ResultHeaderStreamer_v1.cpp.

References Sct::IoError, SctData::ResultHeader::setEndTimeString(), SctData::ResultHeader::setModuleName(), SctData::ResultHeader::setRunNumber(), SctData::ResultHeader::setScanNumber(), SctData::ResultHeader::setStartTimeString(), and SctData::ResultHeader::setVariable().

Here is the call graph for this function:

shared_ptr< Streamable > SctData::IO::ResultHeaderStreamer_v1::read IStream in,
const IOManager manager
const throw (LogicError, IoError) [virtual]
 

Create a new Streamable object of the appropriate type from IS.

Parameters:
in The IStream.
manager the IOManager to use
Returns:
a new Streamable object
Exceptions:
IoException if something bad happens

Implements Sct::Streamer.

Definition at line 21 of file ResultHeaderStreamer_v1.cpp.

References Sct::IoError.

void SctData::IO::ResultHeaderStreamer_v1::write OStream out,
const Streamable ob,
const IOManager manager
const throw (LogicError, IoError) [virtual]
 

Publishes ob to out.

Parameters:
out The OStream.
ob The Streamable object to stream.
manager the IOManager to use
Exceptions:
IoException if something bad happens

Implements Sct::Streamer.

Definition at line 27 of file ResultHeaderStreamer_v1.cpp.

References SctData::ResultHeader::getEndTimeString(), SctData::ResultHeader::getModuleName(), SctData::ResultHeader::getRunNumber(), SctData::ResultHeader::getScanNumber(), SctData::ResultHeader::getStartTimeString(), SctData::ResultHeader::getVariable(), and Sct::IoError.

Here is the call graph for this function:


Field Documentation

bool SctData::IO::ResultHeaderStreamer_v1::inMap [static, private]
 

The static dummy variable for the IOManager map.

Definition at line 19 of file ResultHeaderStreamer_v1.cpp.


The documentation for this class was generated from the following files:
Generated on Thu Jul 15 09:53:26 2004 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5