CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
pos::PixelConfigAlias Class Reference

#include "interface/PixelConfigAlias.h"

Public Member Functions

void addVersionAlias (std::string path, std::string alias)
 
unsigned int key ()
 
std::string name ()
 
unsigned int nVersionAliases ()
 
 PixelConfigAlias (std::string name, unsigned int key)
 
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)
 

Private Attributes

unsigned int key_
 
std::string name_
 
std::vector< std::pair
< std::string, std::string > > 
versionAliases_
 

Detailed Description

A longer explanation will be placed here later

Definition at line 17 of file PixelConfigAlias.h.

Constructor & Destructor Documentation

pos::PixelConfigAlias::PixelConfigAlias ( std::string  name,
unsigned int  key 
)
inline

Definition at line 20 of file PixelConfigAlias.h.

References key(), key_, name(), and name_.

20  {
21  name_=name;
22  key_=key;
23  }

Member Function Documentation

void pos::PixelConfigAlias::addVersionAlias ( std::string  path,
std::string  alias 
)
inline

Definition at line 24 of file PixelConfigAlias.h.

References versionAliases_.

Referenced by pos::PixelConfigFile::addAlias(), and pos::PixelAliasList::readfile().

24  {
25  std::pair<std::string,std::string> apair(path,alias);
26  versionAliases_.push_back(apair);
27  }
std::vector< std::pair< std::string, std::string > > versionAliases_
list path
Definition: scaleCards.py:51
unsigned int pos::PixelConfigAlias::key ( )
inline

Definition at line 30 of file PixelConfigAlias.h.

References key_.

Referenced by pos::PixelConfigFile::getVersionAliases(), PixelConfigAlias(), setKey(), and pos::PixelAliasList::writefile().

30 { return key_; }
std::string pos::PixelConfigAlias::name ( )
inline
unsigned int pos::PixelConfigAlias::nVersionAliases ( )
inline

Definition at line 32 of file PixelConfigAlias.h.

References versionAliases_.

Referenced by pos::PixelAliasList::writefile().

32 { return versionAliases_.size(); }
std::vector< std::pair< std::string, std::string > > versionAliases_
void pos::PixelConfigAlias::setKey ( unsigned int  key)
inline

Definition at line 36 of file PixelConfigAlias.h.

References key(), and key_.

36 {key_=key;}
std::vector<std::pair<std::string,std::string> > pos::PixelConfigAlias::versionAliases ( )
inline

Definition at line 38 of file PixelConfigAlias.h.

References versionAliases_.

Referenced by pos::PixelConfigFile::getVersionAliases().

38  {
39  return versionAliases_;
40  }
std::vector< std::pair< std::string, std::string > > versionAliases_
std::string pos::PixelConfigAlias::versionAliasesAlias ( unsigned int  i)
inline

Definition at line 34 of file PixelConfigAlias.h.

References i, and versionAliases_.

Referenced by pos::PixelAliasList::writefile().

34 { return versionAliases_[i].second; }
int i
Definition: DBlmapReader.cc:9
std::vector< std::pair< std::string, std::string > > versionAliases_
std::string pos::PixelConfigAlias::versionAliasesPath ( unsigned int  i)
inline

Definition at line 33 of file PixelConfigAlias.h.

References i, and versionAliases_.

Referenced by pos::PixelAliasList::writefile().

33 { return versionAliases_[i].first; }
int i
Definition: DBlmapReader.cc:9
std::vector< std::pair< std::string, std::string > > versionAliases_

Member Data Documentation

unsigned int pos::PixelConfigAlias::key_
private

Definition at line 46 of file PixelConfigAlias.h.

Referenced by key(), PixelConfigAlias(), and setKey().

std::string pos::PixelConfigAlias::name_
private

Definition at line 45 of file PixelConfigAlias.h.

Referenced by name(), and PixelConfigAlias().

std::vector<std::pair<std::string,std::string> > pos::PixelConfigAlias::versionAliases_
private