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
pos::PixelConfigAlias
Definition: PixelConfigAlias.h:17
mps_fire.i
i
Definition: mps_fire.py:428
pos::PixelConfigAlias::versionAliasesAlias
std::string versionAliasesAlias(unsigned int i)
Definition: PixelConfigAlias.h:34
pos::PixelConfigAlias::name
std::string name()
Definition: PixelConfigAlias.h:29
pos::PixelConfigAlias::versionAliasesPath
std::string versionAliasesPath(unsigned int i)
Definition: PixelConfigAlias.h:33
pos::PixelConfigAlias::key
unsigned int key()
Definition: PixelConfigAlias.h:30
pos
Definition: PixelAliasList.h:18
pos::PixelConfigAlias::versionAliases
std::vector< std::pair< std::string, std::string > > versionAliases()
Definition: PixelConfigAlias.h:38
pos::PixelConfigAlias::setKey
void setKey(unsigned int key)
Definition: PixelConfigAlias.h:36
pos::PixelConfigAlias::versionAliases_
std::vector< std::pair< std::string, std::string > > versionAliases_
Definition: PixelConfigAlias.h:47
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
pos::PixelConfigAlias::key_
unsigned int key_
Definition: PixelConfigAlias.h:46
pos::PixelConfigAlias::nVersionAliases
unsigned int nVersionAliases()
Definition: PixelConfigAlias.h:32
pos::PixelConfigAlias::addVersionAlias
void addVersionAlias(std::string path, std::string alias)
Definition: PixelConfigAlias.h:24
SiStripOfflineCRack_cfg.alias
alias
Definition: SiStripOfflineCRack_cfg.py:128
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
pos::PixelConfigAlias::name_
std::string name_
Definition: PixelConfigAlias.h:45
pos::PixelConfigAlias::PixelConfigAlias
PixelConfigAlias(std::string name, unsigned int key)
Definition: PixelConfigAlias.h:20