CMS 3D CMS Logo

TECFlagTxt Class Reference

Txt format flag. More...

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

Inheritance diagram for TECFlagTxt:

FlagTxt Flag Clonable Identifiable

List of all members.

Public Member Functions

 TECFlagTxt (const TECFlagXML *poTEC_FLAGXML)
 Construct Txt format flag from XML formatted one.
 TECFlagTxt ()

Protected Member Functions

virtual Clonableclone () const
 Clone method is used in copying Tree.
virtual ClonablecloneXML () const
 Convert Txt format flag to XML.
virtual ClassIDBase::ID getID () const
 Used in (de)serialization process to get class ID.

Private Member Functions

template<class Archive>
void serialize (Archive &roArchive, const unsigned int &rnVERSION)

Friends

class boost::serialization::access
 Override current method in case flag may have any children.


Detailed Description

Txt format flag.

Tasks: 1. Define cloning 2. Implement identification (get class ID) 3. Specify allowed children 4. Serialization part: a) (de)serialization through base class b) register class in boost/serialization 5. flag output in ostream (print, display).

Definition at line 33 of file TECFlagTxt.h.


Constructor & Destructor Documentation

TECFlagTxt::TECFlagTxt (  )  [inline]

Definition at line 35 of file TECFlagTxt.h.

Referenced by clone().

00035 {}

TECFlagTxt::TECFlagTxt ( const TECFlagXML poTEC_FLAGXML  ) 

Construct Txt format flag from XML formatted one.

Parameters:
poTEC_FLAGXML XML format flag to be used as source

Definition at line 12 of file TECFlagTxt.cc.

00013   : FlagTxt( *( dynamic_cast<const FlagXML *>( poTEC_FLAGXML) ) ) {}


Member Function Documentation

virtual Clonable* TECFlagTxt::clone ( void   )  const [inline, protected, virtual]

Clone method is used in copying Tree.

Should be implemented by each flag individually. Flag should be created on a heap store.

Returns:
Pointer to newly created flag.

Implements Clonable.

Definition at line 54 of file TECFlagTxt.h.

References TECFlagTxt().

00054                                            {
00055       return new TECFlagTxt( *this);
00056     }

Clonable * TECFlagTxt::cloneXML (  )  const [protected, virtual]

Convert Txt format flag to XML.

XML flag should be created on a heap store and constructed out of Txt formatted one.

Returns:
Pointer to newly created flag.

Reimplemented from Clonable.

Definition at line 16 of file TECFlagTxt.cc.

00016                                      {
00017   return new TECFlagXML( this);
00018 }

ClassIDBase::ID TECFlagTxt::getID (  )  const [protected, virtual]

Used in (de)serialization process to get class ID.

Returns:
ID of current class.

Implements Identifiable.

Definition at line 20 of file TECFlagTxt.cc.

References ClassID< T >::get().

00020                                       {
00021   return ClassID<TECFlagTxt>::get();
00022 }

template<class Archive>
void TECFlagTxt::serialize ( Archive &  roArchive,
const unsigned int rnVERSION 
) [inline, private]

Definition at line 97 of file TECFlagTxt.h.

00097                                                                          {
00098         roArchive & boost::serialization::base_object<FlagTxt>( *this);
00099       }


Friends And Related Function Documentation

friend class boost::serialization::access [friend]

Override current method in case flag may have any children.

Parameters:
poCHILD_CANDIDATE Pointer to flag to be checked if it is allowed.
Returns:
Number of children allowed (refer to base class for details)
--[ BEGIN ]-- Serialization section: Text format

Reimplemented from FlagTxt.

Definition at line 94 of file TECFlagTxt.h.


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