#include <CalibTracker/SiStripRunSummary/interface/TriggerFlagXML.h>
Public Member Functions | |
TriggerFlagXML (const TriggerFlagTxt *poTRIGGER_FLAGTXT) | |
Construct XML format flag from Txt formatted one. | |
TriggerFlagXML () | |
Protected Member Functions | |
virtual Clonable * | clone () const |
Clone method is used in copying Tree. | |
virtual Clonable * | cloneTxt () const |
Convert XML format flag to Txt. | |
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 34 of file TriggerFlagXML.h.
TriggerFlagXML::TriggerFlagXML | ( | ) | [inline] |
TriggerFlagXML::TriggerFlagXML | ( | const TriggerFlagTxt * | poTRIGGER_FLAGTXT | ) |
Construct XML format flag from Txt formatted one.
poTRIGGER_FLAGTXT | Txt format flag to be used as source |
Definition at line 12 of file TriggerFlagXML.cc.
00013 : FlagXML( *( dynamic_cast<const FlagTxt *>( poTRIGGER_FLAGTXT) ) ) {}
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 55 of file TriggerFlagXML.h.
References TriggerFlagXML().
00055 { 00056 return new TriggerFlagXML( *this); 00057 }
Clonable * TriggerFlagXML::cloneTxt | ( | ) | const [protected, virtual] |
Convert XML format flag to Txt.
Txt flag should be created on a heap store and constructed out of XML formatted one.
Reimplemented from Clonable.
Definition at line 16 of file TriggerFlagXML.cc.
00016 { 00017 return new TriggerFlagTxt( this); 00018 }
ClassIDBase::ID TriggerFlagXML::getID | ( | ) | const [protected, virtual] |
Used in (de)serialization process to get class ID.
Implements Identifiable.
Definition at line 20 of file TriggerFlagXML.cc.
References ClassID< T >::get().
00020 { 00021 return ClassID<TriggerFlagXML>::get(); 00022 }
void TriggerFlagXML::serialize | ( | Archive & | roArchive, | |
const unsigned int & | rnVERSION | |||
) | [inline, private] |
Definition at line 98 of file TriggerFlagXML.h.
00098 { 00099 roArchive & BOOST_SERIALIZATION_BASE_OBJECT_NVP( FlagXML); 00100 }
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 FlagXML.
Definition at line 95 of file TriggerFlagXML.h.