CMS 3D CMS Logo

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

◆ PixelConfigAlias()

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

Definition at line 20 of file PixelConfigAlias.h.

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

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

Member Function Documentation

◆ addVersionAlias()

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

Definition at line 24 of file PixelConfigAlias.h.

24  {
25  std::pair<std::string,std::string> apair(path,alias);
26  versionAliases_.push_back(apair);
27  }

References SiStripOfflineCRack_cfg::alias, castor_dqm_sourceclient_file_cfg::path, and versionAliases_.

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

◆ key()

unsigned int pos::PixelConfigAlias::key ( )
inline

Definition at line 30 of file PixelConfigAlias.h.

30 { return key_; }

References key_.

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

◆ name()

std::string pos::PixelConfigAlias::name ( )
inline

◆ nVersionAliases()

unsigned int pos::PixelConfigAlias::nVersionAliases ( )
inline

Definition at line 32 of file PixelConfigAlias.h.

32 { return versionAliases_.size(); }

References versionAliases_.

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

◆ setKey()

void pos::PixelConfigAlias::setKey ( unsigned int  key)
inline

Definition at line 36 of file PixelConfigAlias.h.

36 {key_=key;}

References key(), and key_.

◆ versionAliases()

std::vector<std::pair<std::string,std::string> > pos::PixelConfigAlias::versionAliases ( )
inline

Definition at line 38 of file PixelConfigAlias.h.

38  {
39  return versionAliases_;
40  }

References versionAliases_.

◆ versionAliasesAlias()

std::string pos::PixelConfigAlias::versionAliasesAlias ( unsigned int  i)
inline

Definition at line 34 of file PixelConfigAlias.h.

34 { return versionAliases_[i].second; }

References mps_fire::i, and versionAliases_.

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

◆ versionAliasesPath()

std::string pos::PixelConfigAlias::versionAliasesPath ( unsigned int  i)
inline

Definition at line 33 of file PixelConfigAlias.h.

33 { return versionAliases_[i].first; }

References mps_fire::i, and versionAliases_.

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

Member Data Documentation

◆ key_

unsigned int pos::PixelConfigAlias::key_
private

Definition at line 46 of file PixelConfigAlias.h.

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

◆ name_

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

Definition at line 45 of file PixelConfigAlias.h.

Referenced by name(), and PixelConfigAlias().

◆ versionAliases_

std::vector<std::pair<std::string,std::string> > pos::PixelConfigAlias::versionAliases_
private
mps_fire.i
i
Definition: mps_fire.py:428
pos::PixelConfigAlias::name
std::string name()
Definition: PixelConfigAlias.h:29
pos::PixelConfigAlias::key
unsigned int key()
Definition: PixelConfigAlias.h:30
pos::PixelConfigAlias::versionAliases_
std::vector< std::pair< std::string, std::string > > versionAliases_
Definition: PixelConfigAlias.h:47
pos::PixelConfigAlias::key_
unsigned int key_
Definition: PixelConfigAlias.h:46
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