CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/CalibFormats/SiPixelObjects/interface/PixelConfigAlias.h

Go to the documentation of this file.
00001 #ifndef PixelConfigAlias_h
00002 #define PixelConfigAlias_h
00003 
00009 #include <string>
00010 #include <vector>
00011 
00012 namespace pos{
00017   class PixelConfigAlias {
00018 
00019   public:
00020     PixelConfigAlias(std::string name, unsigned int key) { 
00021       name_=name;
00022       key_=key;
00023     }
00024     void addVersionAlias(std::string path, std::string alias) {
00025       std::pair<std::string,std::string> apair(path,alias);
00026       versionAliases_.push_back(apair);
00027     }
00028 
00029     std::string name() { return name_; }
00030     unsigned int key() { return key_; }
00031 
00032     unsigned int nVersionAliases() { return versionAliases_.size(); }
00033     std::string versionAliasesPath(unsigned int i) { return versionAliases_[i].first; }
00034     std::string versionAliasesAlias(unsigned int i) { return versionAliases_[i].second; }
00035   
00036     void setKey(unsigned int key) {key_=key;}
00037 
00038     std::vector<std::pair<std::string,std::string> > versionAliases() {
00039       return versionAliases_;
00040     }
00041 
00042 
00043   private:
00044 
00045     std::string name_;
00046     unsigned int key_;
00047     std::vector<std::pair<std::string,std::string> > versionAliases_;
00048 
00049   };
00050 }
00051 #endif