00001 #ifndef TrigConf_TrigConfData
00002 #define TrigConf_TrigConfData
00003
00004 #include <iosfwd>
00005 #include <string>
00006
00007 namespace TrigConf {
00008
00009 class TrigConfData {
00010 public:
00011 TrigConfData(const std::string& name = "");
00012 TrigConfData(const TrigConfData& o);
00013 virtual ~TrigConfData(){}
00014
00015
00016 int superMasterTableId() const {return (int)m_smk;}
00017 unsigned int smk() const {return m_smk;}
00018 unsigned int id() const {return m_id;}
00019 const std::string& name() const {return m_name;}
00020 const std::string& comment() const {return m_comment;}
00021 unsigned int version() const {return m_version;}
00022
00023
00024 void setSuperMasterTableId(int id) {m_smk=id;}
00025 void setSMK(int id) {m_smk=id;}
00026 void setId(unsigned int id) { m_id=id; }
00027 void setName( const std::string& name ){ m_name = name;}
00028 void setVersion( unsigned int version ){ m_version = version;}
00029 void setComment( const std::string& c ){ m_comment = c;}
00030
00031 virtual void print(const std::string& indent="", unsigned int detail=1) const = 0;
00032
00033 void printNameIdV(const std::string& indent="") const;
00034
00035 virtual std::string __str__() const;
00036
00037 protected:
00038 std::ostream & indent(std::ostream& o, int lvl, int size) const;
00039
00040 private:
00041 unsigned int m_smk;
00042 unsigned int m_id;
00043 std::string m_name;
00044 unsigned int m_version;
00045 std::string m_comment;
00046
00047 };
00048
00049 std::ostream & operator<<(std::ostream &, const TrigConfData &);
00050 }
00051
00052 #endif