CMS 3D CMS Logo

SerializeTxt Class Reference

Generic Manager class that saves/reads any FlagTxt anchestor in/from output/input stream in form of Text Characters Sequence. More...

#include <CalibTracker/SiStripRunSummary/interface/SerializeTxt.h>

Inheritance diagram for SerializeTxt:

SerializeBase

List of all members.

Public Member Functions

 SerializeTxt ()

Private Member Functions

virtual void readFlag (FlagTxt *poFlagTxt, std::istream &roIn)
 Perform actual flag read.
virtual void writeFlag (std::ostream &roOut, const FlagTxt &roFLAGTXT) const
 Perform actual flag wtore operation.


Detailed Description

Generic Manager class that saves/reads any FlagTxt anchestor in/from output/input stream in form of Text Characters Sequence.

Definition at line 24 of file SerializeTxt.h.


Constructor & Destructor Documentation

SerializeTxt::SerializeTxt (  )  [inline]

Definition at line 26 of file SerializeTxt.h.

00026 : SerializeBase() {}


Member Function Documentation

void SerializeTxt::readFlag ( FlagTxt poFlagTxt,
std::istream &  roIn 
) [private, virtual]

Perform actual flag read.

Used by template read method to overcome compilation problems with include of boost/archive/text_i(o)archive.hpp from header [should be included only once from cpp]. Should be implemented by anchestors.

Parameters:
poFlagTxt Pointer to FlagTxt anchestor to be saved in output stream
roIn Output stream where flag will be saved

Implements SerializeBase.

Definition at line 31 of file SerializeTxt.cc.

00031                                                                  {
00032   boost::archive::text_iarchive oAIn( roIn);
00033 
00034   oAIn >> ( *poFlagTxt);
00035 }

void SerializeTxt::writeFlag ( std::ostream &  roOut,
const FlagTxt roFLAGTXT 
) const [private, virtual]

Perform actual flag wtore operation.

Method should be implemented by anchestor.

Parameters:
roOut Output stream where flags tree will be saved
roFLAGTXT Reference to flag to be stored

Implements SerializeBase.

Definition at line 23 of file SerializeTxt.cc.

00025 {
00026   boost::archive::text_oarchive oAOut( roOut);
00027 
00028   oAOut << roFLAGTXT;
00029 }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:31:32 2009 for CMSSW by  doxygen 1.5.4