#include <CalibTracker/SiStripRunSummary/interface/DQMFlagTxt.h>
Public Member Functions | |
DQMFlagTxt (const DQMFlagXML *poDQM_FLAGXML) | |
Construct Txt format flag from XML formatted one. | |
DQMFlagTxt () | |
Protected Member Functions | |
virtual Clonable * | clone () const |
Clone method is used in copying Tree. | |
virtual Clonable * | cloneXML () 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 |
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 35 of file DQMFlagTxt.h.
DQMFlagTxt::DQMFlagTxt | ( | ) | [inline] |
DQMFlagTxt::DQMFlagTxt | ( | const DQMFlagXML * | poDQM_FLAGXML | ) |
Construct Txt format flag from XML formatted one.
poDQM_FLAGXML | XML format flag to be used as source |
Definition at line 20 of file DQMFlagTxt.cc.
00021 : FlagTxt( *( dynamic_cast<const FlagXML *>( poDQM_FLAGXML) ) ) {}
Clone method is used in copying Tree.
Should be implemented by each flag individually. Flag should be created on a heap store.
Implements Clonable.
Definition at line 56 of file DQMFlagTxt.h.
References DQMFlagTxt().
00056 { 00057 return new DQMFlagTxt( *this); 00058 }
Clonable * DQMFlagTxt::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.
Reimplemented from Clonable.
Definition at line 24 of file DQMFlagTxt.cc.
00024 { 00025 return new DQMFlagXML( this); 00026 }
ClassIDBase::ID DQMFlagTxt::getID | ( | ) | const [protected, virtual] |
Used in (de)serialization process to get class ID.
Implements Identifiable.
Definition at line 28 of file DQMFlagTxt.cc.
References ClassID< T >::get().
00028 { 00029 return ClassID<DQMFlagTxt>::get(); 00030 }
Override current method in case flag may have any children.
poCHILD_CANDIDATE | Pointer to flag to be checked if it is allowed. |
Reimplemented from FlagTxt.
Definition at line 32 of file DQMFlagTxt.cc.
00032 { 00033 return dynamic_cast<const TECFlagTxt *>( poCHILD_CANDIDATE) || 00034 dynamic_cast<const TIBFlagTxt *>( poCHILD_CANDIDATE) || 00035 dynamic_cast<const TIDFlagTxt *>( poCHILD_CANDIDATE) || 00036 dynamic_cast<const TOBFlagTxt *>( poCHILD_CANDIDATE) ? 00037 1 : 00038 0; 00039 }
void DQMFlagTxt::serialize | ( | Archive & | roArchive, | |
const unsigned int & | rnVERSION | |||
) | [inline, private] |
friend class boost::serialization::access [friend] |
--[ BEGIN ]-- Serialization section: Text format
Reimplemented from FlagTxt.
Definition at line 96 of file DQMFlagTxt.h.