SctData::IO::TestResultStreamer_v1 Class Reference

Implimentation of the IS publish and refresh methods for the abstract class TestResult. More...

#include <TestResultStreamer_v1.h>

Inheritance diagram for SctData::IO::TestResultStreamer_v1:

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

Collaboration graph
[legend]

Public Member Functions

virtual unsigned getVersion () const throw ()

Protected Member Functions

 TestResultStreamer_v1 () throw ()
virtual void write (OStream &out, const Streamable &ob, const IOManager &manager) const throw (LogicError, IoError)
 Publishes ob to out.
virtual void read (IStream &in, Streamable &ob, const IOManager &manager) const throw (LogicError, IoError)
virtual shared_ptr< Streamableread (IStream &, const IOManager &) const throw (LogicError, IoError)
 Create a new Streamable object of the appropriate type from IS.

Static Protected Attributes

static unsigned s_version
static bool inMap

Detailed Description

Implimentation of the IS publish and refresh methods for the abstract class TestResult.

The published and refreshed elements are: -> run number -> module name -> the `special' point. -> a list of the scan numbers and the scan `test point' values. -> the defect list.

Doesn't implement createObject.

Definition at line 22 of file TestResultStreamer_v1.h.


Member Function Documentation

shared_ptr< Streamable > SctData::IO::TestResultStreamer_v1::read IStream ,
const IOManager
const throw (LogicError, IoError) [protected, 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 TestResultStreamer_v1.cpp.

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

Should always succeed!

Implements Sct::Streamer.

Definition at line 46 of file TestResultStreamer_v1.cpp.

References SctData::TestResult::addScan(), SctData::TestResult::getHeader(), and SctData::TestResult::setTestVariable().

Here is the call graph for this function:

void SctData::IO::TestResultStreamer_v1::write OStream out,
const Streamable ob,
const IOManager manager
const throw (LogicError, IoError) [protected, 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 TestResultStreamer_v1.cpp.

References SctData::TestResult::getHeader(), SctData::TestResult::getNScans(), SctData::TestResult::getScanNumberAt(), SctData::TestResult::getTestPointAt(), SctData::TestResult::getTestVariable(), and SctData::ob.

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Mon Feb 6 14:08:53 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6