CMS 3D CMS Logo

GlobalFlagTxt Class Reference

Txt format flag. More...

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

Inheritance diagram for GlobalFlagTxt:

FlagTxt Flag Clonable Identifiable

List of all members.

Public Member Functions

 GlobalFlagTxt (const GlobalFlagXML *poGLOBAL_FLAGXML)
 Construct Txt format flag from XML formatted one.
 GlobalFlagTxt ()

Protected Member Functions

virtual Clonableclone () const
 Clone method is used in copying Tree.
virtual ClonablecloneXML () const
 Convert Txt format flag to XML.
ClassIDBase::ID getID () const
 Used in (de)serialization process to get class ID.
virtual int isChildValid (const FlagTxt *poCHILD_CANDIDATE) const
 Override current method in case flag may have any children.

Private Member Functions

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

Friends

class boost::serialization::access
 --[ BEGIN ]-- Serialization section: Text format


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 36 of file GlobalFlagTxt.h.


Constructor & Destructor Documentation

GlobalFlagTxt::GlobalFlagTxt (  )  [inline]

Definition at line 38 of file GlobalFlagTxt.h.

Referenced by clone().

00038 {}

GlobalFlagTxt::GlobalFlagTxt ( const GlobalFlagXML poGLOBAL_FLAGXML  ) 

Construct Txt format flag from XML formatted one.

Parameters:
poGLOBAL_FLAGXML XML format flag to be used as source

Definition at line 20 of file GlobalFlagTxt.cc.

00021   : FlagTxt( *( dynamic_cast<const FlagXML *>( poGLOBAL_FLAGXML) ) ) {}


Member Function Documentation

virtual Clonable* GlobalFlagTxt::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 57 of file GlobalFlagTxt.h.

References GlobalFlagTxt().

00057                                            {
00058       return new GlobalFlagTxt( *this);
00059     }

Clonable * GlobalFlagTxt::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 24 of file GlobalFlagTxt.cc.

00024                                         {
00025   return new GlobalFlagXML( this);
00026 }

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

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

Returns:
ID of current class.

Implements Identifiable.

Definition at line 28 of file GlobalFlagTxt.cc.

References ClassID< T >::get().

00028                                          {
00029   return ClassID<GlobalFlagTxt>::get();
00030 }

int GlobalFlagTxt::isChildValid ( const FlagTxt poCHILD_CANDIDATE  )  const [protected, virtual]

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)

Reimplemented from FlagTxt.

Definition at line 32 of file GlobalFlagTxt.cc.

00032                                                                        {
00033   return dynamic_cast<const DAQFlagTxt     *>( poCHILD_CANDIDATE) ||
00034          dynamic_cast<const DCSFlagTxt     *>( poCHILD_CANDIDATE) ||
00035          dynamic_cast<const DQMFlagTxt     *>( poCHILD_CANDIDATE) ||
00036          dynamic_cast<const TriggerFlagTxt *>( poCHILD_CANDIDATE) ?
00037          1 :
00038          0;
00039 }

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

Definition at line 100 of file GlobalFlagTxt.h.

00100                                                                          {
00101         roArchive & boost::serialization::base_object<FlagTxt>( *this);
00102       }


Friends And Related Function Documentation

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

--[ BEGIN ]-- Serialization section: Text format

Reimplemented from FlagTxt.

Definition at line 97 of file GlobalFlagTxt.h.


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