CMS 3D CMS Logo

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:
21  name_=name;
22  key_=key;
23  }
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 
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()
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)
unsigned int nVersionAliases()
void addVersionAlias(std::string path, std::string alias)