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

SctData::IO::TGraphStreamer Class Reference

Allows serialization of root TGraph object to IS. More...

#include <TGraphStreamer.h>

Inheritance diagram for SctData::IO::TGraphStreamer:

Sct::Streamer SctData::IO::TGraphAsymmErrorsStreamer

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.


Protected Member Functions

 TGraphStreamer () throw ()
 Protected constructor.


Static Private Attributes

bool inMap

Detailed Description

Allows serialization of root TGraph object to IS.

Definition at line 18 of file TGraphStreamer.h.


Constructor & Destructor Documentation

SctData::IO::TGraphStreamer::TGraphStreamer   throw () [protected]
 

Protected constructor.

Definition at line 12 of file TGraphStreamer.cpp.


Member Function Documentation

void SctData::IO::TGraphStreamer::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.

Reimplemented in SctData::IO::TGraphAsymmErrorsStreamer.

Definition at line 28 of file TGraphStreamer.cpp.

References SctData::RootStreamableAdapter::getObject(), and Sct::IoError.

shared_ptr< Streamable > SctData::IO::TGraphStreamer::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.

Reimplemented in SctData::IO::TGraphAsymmErrorsStreamer.

Definition at line 22 of file TGraphStreamer.cpp.

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

void SctData::IO::TGraphStreamer::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.

Reimplemented in SctData::IO::TGraphAsymmErrorsStreamer.

Definition at line 14 of file TGraphStreamer.cpp.

References SctData::RootStreamableAdapter::getObject(), and Sct::IoError.


Field Documentation

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

Reimplemented in SctData::IO::TGraphAsymmErrorsStreamer.

Definition at line 10 of file TGraphStreamer.cpp.


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