CMS 3D CMS Logo

Public Member Functions | Private Attributes

pos::PixelConfigAlias Class Reference

#include <interface/PixelConfigAlias.h>

List of all members.

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_.

                                                       { 
      name_=name;
      key_=key;
    }

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().

                                                          {
      std::pair<std::string,std::string> apair(path,alias);
      versionAliases_.push_back(apair);
    }
unsigned int pos::PixelConfigAlias::key ( ) [inline]
std::string pos::PixelConfigAlias::name ( ) [inline]

Definition at line 29 of file PixelConfigAlias.h.

References name_.

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

{ return name_; }
unsigned int pos::PixelConfigAlias::nVersionAliases ( ) [inline]

Definition at line 32 of file PixelConfigAlias.h.

References versionAliases_.

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

{ return versionAliases_.size(); }
void pos::PixelConfigAlias::setKey ( unsigned int  key) [inline]

Definition at line 36 of file PixelConfigAlias.h.

References key(), and key_.

{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().

                                                              {
      return 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().

{ return versionAliases_[i].second; }
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().

{ return versionAliases_[i].first; }

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]