00001 // Author : Samvel Khalatian (samvel at fnal dot gov) 00002 // Created: 06/01/07 00003 // License: GPL 00004 00005 #ifndef TIB_FLAG_TXT_H 00006 #define TIB_FLAG_TXT_H 00007 00008 #include <boost/serialization/nvp.hpp> 00009 #include <boost/serialization/export.hpp> 00010 #include <boost/serialization/version.hpp> 00011 00012 #include "CalibTracker/SiStripRunSummary/interface/FlagTxt.h" 00013 #include "CalibTracker/SiStripRunSummary/interface/ClassIDBase.h" 00014 00020 class TIBFlagXML; 00021 00033 class TIBFlagTxt: public FlagTxt { 00034 public: 00035 TIBFlagTxt() {} 00036 00043 TIBFlagTxt( const TIBFlagXML *poTIB_FLAGXML); 00044 00045 protected: 00054 inline virtual Clonable *clone() const { 00055 return new TIBFlagTxt( *this); 00056 } 00057 00066 virtual Clonable *cloneXML() const; 00067 00075 virtual ClassIDBase::ID getID() const; 00076 00086 // virtual int isChildValid( const FlagTxt *poCHILD_CANDIDATE) const; 00087 00088 private: 00094 friend class boost::serialization::access; 00095 00096 template<class Archive> 00097 void serialize( Archive &roArchive, const unsigned int &rnVERSION) { 00098 roArchive & boost::serialization::base_object<FlagTxt>( *this); 00099 } 00104 }; 00105 00112 BOOST_CLASS_EXPORT_GUID( TIBFlagTxt, "TIBFlagTxt") 00113 00114 00123 BOOST_CLASS_VERSION( TIBFlagTxt, 0) 00124 00125 #endif // TIB_FLAG_TXT_H