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

SctData::IO::NPtGainTestResultStreamer Class Reference

This class allows publishing and refreshing of NPtGainTestResult objects to and from IS. More...

#include <NPtGainTestResultStreamer.h>

Inheritance diagram for SctData::IO::NPtGainTestResultStreamer:

SctData::IO::TestResultStreamer Sct::Streamer

Public Member Functions

virtual void write (OStream &out, const Streamable &ob, const IOManager &manager) const throw (LogicError, IoError)
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

void writeData (OStream &out, const NPtGainTestResultData &ob, const IOManager &manager) const throw (Sct::LogicError, Sct::IoError)
void readData (IStream &in, NPtGainTestResult &mytest, NPtGainTestResultData &ob, const IOManager &manager) const throw (Sct::LogicError, Sct::IoError)
 NPtGainTestResultStreamer () throw ()
 Constructor is private.


Static Private Attributes

bool inMap
 The static dummy variable for the IOManager map.


Detailed Description

This class allows publishing and refreshing of NPtGainTestResult objects to and from IS.

The published and refreshed elements are:

Definition at line 22 of file NPtGainTestResultStreamer.h.


Constructor & Destructor Documentation

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

Constructor is private.

Definition at line 15 of file NPtGainTestResultStreamer.cpp.


Member Function Documentation

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

Should always succeed!

Should always succeed!

Reimplemented from SctData::IO::TestResultStreamer.

Definition at line 50 of file NPtGainTestResultStreamer.cpp.

References SctData::NPtGainTestResult::getChannelData(), SctData::NPtGainTestResult::getChipData(), Sct::IoError, SctData::NPtGainTestResult::setChannelDataSize(), and SctData::NPtGainTestResult::setChipDataSize().

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

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

void SctData::IO::NPtGainTestResultStreamer::readData IStream &    in,
NPtGainTestResult   mytest,
NPtGainTestResultData   ob,
const IOManager &    manager
const throw (Sct::LogicError, Sct::IoError) [private]
 

Definition at line 70 of file NPtGainTestResultStreamer.cpp.

References Sct::IoError.

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

This is because ISostream operator<<(string&) isnt const

Reimplemented from SctData::IO::TestResultStreamer.

Definition at line 26 of file NPtGainTestResultStreamer.cpp.

References SctData::NPtGainTestResult::getChannelData(), SctData::NPtGainTestResult::getChipData(), SctData::NPtGainTestResult::getNChannelData(), SctData::NPtGainTestResult::getNChipData(), and Sct::IoError.

void SctData::IO::NPtGainTestResultStreamer::writeData OStream &    out,
const NPtGainTestResultData   ob,
const IOManager &    manager
const throw (Sct::LogicError, Sct::IoError) [private]
 

Definition at line 44 of file NPtGainTestResultStreamer.cpp.

References Sct::IoError.


Field Documentation

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

The static dummy variable for the IOManager map.

Definition at line 17 of file NPtGainTestResultStreamer.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