CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixelConfigAlias.h
Go to the documentation of this file.
1 #ifndef PixelConfigAlias_h
2 #define PixelConfigAlias_h
3 
9 #include <string>
10 #include <vector>
11 
12 namespace pos{
18 
19  public:
20  PixelConfigAlias(std::string name, unsigned int key) {
21  name_=name;
22  key_=key;
23  }
24  void addVersionAlias(std::string path, std::string alias) {
25  std::pair<std::string,std::string> apair(path,alias);
26  versionAliases_.push_back(apair);
27  }
28 
29  std::string name() { return name_; }
30  unsigned int key() { return key_; }
31 
32  unsigned int nVersionAliases() { return versionAliases_.size(); }
33  std::string versionAliasesPath(unsigned int i) { return versionAliases_[i].first; }
34  std::string versionAliasesAlias(unsigned int i) { return versionAliases_[i].second; }
35 
36  void setKey(unsigned int key) {key_=key;}
37 
38  std::vector<std::pair<std::string,std::string> > versionAliases() {
39  return versionAliases_;
40  }
41 
42 
43  private:
44 
45  std::string name_;
46  unsigned int key_;
47  std::vector<std::pair<std::string,std::string> > versionAliases_;
48 
49  };
50 }
51 #endif
PixelConfigAlias(std::string name, unsigned int key)
std::vector< std::pair< std::string, std::string > > versionAliases()
int i
Definition: DBlmapReader.cc:9
void setKey(unsigned int key)
std::vector< std::pair< std::string, std::string > > versionAliases_
std::string versionAliasesAlias(unsigned int i)
std::string versionAliasesPath(unsigned int i)
list path
Definition: scaleCards.py:51
unsigned int nVersionAliases()
void addVersionAlias(std::string path, std::string alias)