|
|
Go to the documentation of this file. 1 #ifndef PixelAliasList_h
2 #define PixelAliasList_h
39 out <<
"ConfigurationAliases" << std::endl;
42 out << theAlias.
name() <<
" " << theAlias.
key() <<
" ";
45 for (
unsigned int j = 0;
j <
n;
j++) {
50 out <<
";" << std::endl;
53 out <<
"VersionAliases" << std::endl;
57 out << theAlias.
path() <<
" " << theAlias.
version() <<
" " << theAlias.
alias() <<
" ;" << std::endl;
64 std::cout <<
"[PixelAliasList::readfile()]\t\tCould not open file:" <<
filename << std::endl;
78 while (
tag.substr(0, 1) ==
"#") {
79 in.ignore(4096,
'\n');
87 while (
tag !=
"VersionAliases") {
152 tmpVAPair.second =
alias;
168 std::cout <<
"[PixelAliasList::insertAlias()]\t\t\tReplacing existing alias:" << anAlias.
name() << std::endl;
188 std::cout <<
"[PixelAliasList::insertVersionAlias()]\t\tReplacing existing version alias:" << anAlias.
path()
189 <<
" " << anAlias.
alias() << std::endl;
214 std::vector<std::string>
tmp;
241 if ((*it).first.find(koc) != std::string::npos) {
242 result[(*it).first] = (*it).second;
249 std::vector<pathAliasPair> configAliasVector;
251 if ((*it).first ==
path) {
252 configAliasVector.push_back((*it).second);
255 return configAliasVector;
unsigned int version(unsigned int i)
std::pair< unsigned int, std::string > versionAliasPair
std::string versionAliasesAlias(unsigned int i)
std::string path(unsigned int i)
std::string versionAliasesPath(unsigned int i)
std::vector< PixelConfigAlias > pixelConfigAliases_
void updateConfigAlias(std::string path, unsigned int version, std::string alias, PixelConfigList &config)
This class implements the configuration key which actually just is an integer.
pathVersionAliasMmap getVersionData()
std::vector< versionAliasPair > vectorVAPairs
PixelConfigAlias operator[](unsigned int i)
void insertVersionAlias(PixelVersionAlias &anAlias)
PixelConfigAlias * versionAliases(std::string aliasName)
void readfile(std::string filename)
This class implements the steps that are used in a scan over Threshold and CalDelay.
pathVersionAliasMmap getVersionData(std::string koc)
std::vector< PixelVersionAlias > pixelVersionAliases_
unsigned int getVersion(std::string path, std::string alias)
std::vector< pathAliasPair > getConfigAliases(std::string path)
unsigned int nVersionAliases()
std::map< std::string, pathAliasPair > pathAliasMmap
std::string alias(unsigned int i)
std::map< std::string, vectorVAPairs > pathVersionAliasMmap
pathVersionAliasMmap versionMmap
std::map< std::string, std::string > pathAliasPair
std::string name(unsigned int i)
std::vector< std::string > getVersionAliases(std::string path)
unsigned int nVersionAliases()
void addVersionAlias(std::string path, std::string alias)
void insertAlias(PixelConfigAlias &anAlias)
unsigned int key(unsigned int i)