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

SctData::IO::ScanHeaderStreamer Class Reference

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

#include <ScanHeaderStreamer.h>

Inheritance diagram for SctData::IO::ScanHeaderStreamer:

Sct::Streamer

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< Streamable > read (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)

Private Member Functions

 ScanHeaderStreamer () throw ()
 Constructor is private.


Private Attributes

ScanHeaderIOHelper headerHelper
 The ScanHeader IOHelper.


Static Private Attributes

bool inMap
 The static dummy variable for the IOManager map.


Detailed Description

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

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

Definition at line 23 of file ScanHeaderStreamer.h.


Constructor & Destructor Documentation

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

Constructor is private.

Definition at line 14 of file ScanHeaderStreamer.cpp.


Member Function Documentation

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

Should always succeed!

Implements Sct::Streamer.

Definition at line 32 of file ScanHeaderStreamer.cpp.

References Sct::IoError.

shared_ptr< Streamable > SctData::IO::ScanHeaderStreamer::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 18 of file ScanHeaderStreamer.cpp.

References Sct::IoError, and Sct::File::read().

void SctData::IO::ScanHeaderStreamer::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 24 of file ScanHeaderStreamer.cpp.

References SctData::ScanHeader::getModuleName(), SctData::ScanHeader::getRunNumber(), SctData::ScanHeader::getScanNumber(), SctData::ScanHeader::getVariable(), and Sct::IoError.


Field Documentation

ScanHeaderIOHelper SctData::IO::ScanHeaderStreamer::headerHelper [mutable, private]
 

The ScanHeader IOHelper.

Definition at line 31 of file ScanHeaderStreamer.h.

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

The static dummy variable for the IOManager map.

Definition at line 16 of file ScanHeaderStreamer.cpp.


The documentation for this class was generated from the following files:
Generated on Mon Dec 15 19:37:58 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3