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

SctData::IO::TF1Streamer Class Reference

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

#include <TF1Streamer.h>

Inheritance diagram for SctData::IO::TF1Streamer:

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 void read (IStream &in, Streamable &ob, const IOManager &manager) const throw (LogicError, IoError)
 Refreshes ob from in.

virtual shared_ptr< Streamable > read (IStream &in, const IOManager &manager) const throw (LogicError, IoError)
 Can't do this because we can't create a TF1 with the correct constructor!


Private Member Functions

 TF1Streamer () throw ()

Static Private Attributes

bool inMap

Detailed Description

Allows serialization of root TF1 object to IS.

One can only make a TF1IS from a TF1. NB cannot make the correct TF1, so no function refreshGuts(ISistream& in) const; elements transfered are: -> number of parameters -> chisquared and number of degrees of freedom -> parameter values, errors, and names -> x-axis minimum and maximum NB there is no mechanism to make the correct TF1 from just the stream at present.

Definition at line 22 of file TF1Streamer.h.


Constructor & Destructor Documentation

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

Definition at line 18 of file TF1Streamer.cpp.


Member Function Documentation

shared_ptr< Streamable > SctData::IO::TF1Streamer::read IStream &    in,
const IOManager &    manager
const throw (LogicError, IoError) [virtual]
 

Can't do this because we can't create a TF1 with the correct constructor!

Implements Sct::Streamer.

Definition at line 65 of file TF1Streamer.cpp.

References Sct::IoError.

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

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

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

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


Field Documentation

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

Definition at line 16 of file TF1Streamer.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