CMS 3D CMS Logo

DCUTag.h
Go to the documentation of this file.
1 #ifndef DCUTAG_H
2 #define DCUTAG_H
3 
4 #include <string>
5 #include <stdexcept>
6 
13 class DCUTag : public ITag {
14  public:
15  friend class DCUIOV; // needs permission to write
16  friend class EcalCondDBInterface;
17 
18  DCUTag();
19  ~DCUTag() override;
20 
21  // Methods for user data
22  std::string getGeneralTag() const;
24 
26  void setLocationDef(const LocationDef& locDef);
27 
28  // Methods using ID
29  int fetchID() noexcept(false) override;
30  void setByID(int id) noexcept(false) override;
31 
32  // Operators
33  inline bool operator==(const DCUTag &t) const
34  {
35  return (m_genTag == t.m_genTag &&
36  m_locDef == t.m_locDef);
37  }
38 
39  inline bool operator!=(const DCUTag &t) const { return !(*this == t); }
40 
41  private:
42  // User data for this tag
45 
46 
47  // Methods from ITag
48  int writeDB() noexcept(false);
49  void fetchParentIDs(int* locId) noexcept(false);
50 
51  // Public access methods
52  void fetchAllTags( std::vector<DCUTag>* fillVec) noexcept(false);
53 
54 };
55 
56 #endif
void setLocationDef(const LocationDef &locDef)
Definition: DCUTag.cc:52
~DCUTag() override
Definition: DCUTag.cc:20
bool operator!=(const DCUTag &t) const
Definition: DCUTag.h:39
DCUTag()
Definition: DCUTag.cc:9
LocationDef getLocationDef() const
Definition: DCUTag.cc:45
Definition: ITag.h:11
Definition: DCUIOV.h:13
std::string m_genTag
Definition: DCUTag.h:43
void fetchParentIDs(int *locId) noexcept(false)
Definition: DCUTag.cc:197
void setGeneralTag(std::string tag)
Definition: DCUTag.cc:35
LocationDef m_locDef
Definition: DCUTag.h:44
int writeDB() noexcept(false)
Definition: DCUTag.cc:133
void fetchAllTags(std::vector< DCUTag > *fillVec) noexcept(false)
Definition: DCUTag.cc:174
#define noexcept
int fetchID() noexcept(false) override
Definition: DCUTag.cc:62
void setByID(int id) noexcept(false) override
Definition: DCUTag.cc:102
std::string getGeneralTag() const
Definition: DCUTag.cc:26
Definition: DCUTag.h:13