#include <CalibTracker/SiStripRunSummary/interface/TIBFlagTxt.h>
Public Member Functions | |
TIBFlagTxt (const TIBFlagXML *poTIB_FLAGXML) | |
Construct Txt format flag from XML formatted one. | |
TIBFlagTxt () | |
Protected Member Functions | |
virtual Clonable * | clone () const |
Clone method is used in copying Tree. | |
virtual Clonable * | cloneXML () 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. |
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 TIBFlagTxt.h.
TIBFlagTxt::TIBFlagTxt | ( | ) | [inline] |
TIBFlagTxt::TIBFlagTxt | ( | const TIBFlagXML * | poTIB_FLAGXML | ) |
Construct Txt format flag from XML formatted one.
poTIB_FLAGXML | XML format flag to be used as source |
Definition at line 12 of file TIBFlagTxt.cc.
00013 : FlagTxt( *( dynamic_cast<const FlagXML *>( poTIB_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 54 of file TIBFlagTxt.h.
References TIBFlagTxt().
00054 { 00055 return new TIBFlagTxt( *this); 00056 }
Clonable * TIBFlagTxt::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 16 of file TIBFlagTxt.cc.
00016 { 00017 return new TIBFlagXML( this); 00018 }
ClassIDBase::ID TIBFlagTxt::getID | ( | ) | const [protected, virtual] |
Used in (de)serialization process to get class ID.
Implements Identifiable.
Definition at line 20 of file TIBFlagTxt.cc.
References ClassID< T >::get().
00020 { 00021 return ClassID<TIBFlagTxt>::get(); 00022 }
void TIBFlagTxt::serialize | ( | Archive & | roArchive, | |
const unsigned int & | rnVERSION | |||
) | [inline, private] |
friend class boost::serialization::access [friend] |
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 94 of file TIBFlagTxt.h.