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

SctData::IO::ModuleConfigurationStreamer Class Reference

This class is an Streamer for reading/writing ModuleConfigurations to/from IS. More...

#include <ModuleConfigurationStreamer.h>

Inheritance diagram for SctData::IO::ModuleConfigurationStreamer:

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)
 Refreshes ob from in.


Private Member Functions

void readChipConfig (IStream &in, ABCDChip &data) const throw (Sct::LogicError, Sct::IoError)
void writeChipConfig (OStream &out, const ABCDChip &data) const throw (Sct::LogicError, Sct::IoError)
 ModuleConfigurationStreamer () throw ()
 The private constructor.


Static Private Attributes

bool inMap
 The static dummy variable for the IOManager map.


Detailed Description

This class is an Streamer for reading/writing ModuleConfigurations to/from IS.

Definition at line 19 of file ModuleConfigurationStreamer.h.


Constructor & Destructor Documentation

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

The private constructor.

Definition at line 8 of file ModuleConfigurationStreamer.cpp.


Member Function Documentation

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

Refreshes ob from in.

Parameters:
in The IStream
ob The Streamable object to be refreshed.
manager the IOManager to use
Exceptions:
IoException if something bad happens

Implements Sct::Streamer.

Definition at line 31 of file ModuleConfigurationStreamer.cpp.

References ABCDModule::active, ABCDModule::chip, ABCDModule::groupId, Sct::IoError, ABCDModule::present, ABCDModule::pTTC, ABCDModule::rTTC, ABCDModule::rx, and ABCDModule::select.

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

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

void SctData::IO::ModuleConfigurationStreamer::readChipConfig IStream &    in,
ABCDChip   data
const throw (Sct::LogicError, Sct::IoError) [private]
 

Definition at line 66 of file ModuleConfigurationStreamer.cpp.

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

References ABCDModule::active, ABCDModule::chip, ABCDModule::groupId, Sct::IoError, ABCDModule::present, ABCDModule::pTTC, ABCDModule::rTTC, ABCDModule::rx, and ABCDModule::select.

void SctData::IO::ModuleConfigurationStreamer::writeChipConfig OStream &    out,
const ABCDChip   data
const throw (Sct::LogicError, Sct::IoError) [private]
 

Definition at line 44 of file ModuleConfigurationStreamer.cpp.


Field Documentation

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

The static dummy variable for the IOManager map.

Definition at line 10 of file ModuleConfigurationStreamer.cpp.


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