1 #ifndef PixelAliasList_h 2 #define PixelAliasList_h 40 std::ofstream
out(filename.c_str());
42 out <<
"ConfigurationAliases" <<std::endl;
46 << theAlias.
key() <<
" ";
49 for (
unsigned int j=0;j<
n;j++){
54 out <<
";" << std::endl;
58 out <<
"VersionAliases" <<std::endl;
64 << theAlias.
alias() <<
" ;"<<std::endl;
71 std::ifstream
in(filename.c_str());
73 std::cout <<
"[PixelAliasList::readfile()]\t\tCould not open file:"<<filename<<std::endl;
87 while(tag.substr(0,1) ==
"#") {
88 in.ignore(4096,
'\n');
92 assert(tag==
"ConfigurationAliases");
96 while(tag!=
"VersionAliases"){
111 pathAliasPair tmpPAPair ;
114 tmpPAPair[
""] =
" " ;
141 assert(tag==
"VersionAliases");
156 versionAliasPair tmpVAPair ;
165 tmpVAPair.second =
alias ;
182 std::cout <<
"[PixelAliasList::insertAlias()]\t\t\tReplacing existing alias:" << anAlias.
name()<<std::endl;
203 std::cout <<
"[PixelAliasList::insertVersionAlias()]\t\tReplacing existing version alias:" 204 <<anAlias.
path()<<
" " << anAlias.
alias() << std::endl;
231 std::vector<std::string>
tmp;
261 pathVersionAliasMmap
result ;
264 if((*it).first.find(koc) != std::string::npos)
266 result[(*it).first] = (*it).second ;
273 std::vector<pathAliasPair> configAliasVector ;
275 if( (*it).first == path ){
276 configAliasVector.push_back((*it).second) ;
279 return configAliasVector ;
unsigned int getVersion(std::string path, std::string alias)
void readfile(std::string filename)
std::string alias(unsigned int i)
unsigned int version(unsigned int i)
pathVersionAliasMmap getVersionData()
void updateConfigAlias(std::string path, unsigned int version, std::string alias, PixelConfigList &config)
std::map< std::string, vectorVAPairs > pathVersionAliasMmap
std::string versionAliasesAlias(unsigned int i)
std::string versionAliasesPath(unsigned int i)
std::vector< pathAliasPair > getConfigAliases(std::string path)
unsigned int key(unsigned int i)
std::string path(unsigned int i)
PixelConfigAlias operator[](unsigned int i)
This class implements the configuration key which actually just is an integer.
std::map< std::string, std::string > pathAliasPair
std::string name(unsigned int i)
void insertVersionAlias(PixelVersionAlias &anAlias)
unsigned int nVersionAliases()
void addVersionAlias(std::string path, std::string alias)
void insertAlias(PixelConfigAlias &anAlias)
std::vector< std::string > getVersionAliases(std::string path)
pathVersionAliasMmap versionMmap
std::pair< unsigned int, std::string > versionAliasPair
std::vector< std::vector< double > > tmp
PixelConfigAlias * versionAliases(std::string aliasName)
std::map< std::string, pathAliasPair > pathAliasMmap
pathVersionAliasMmap getVersionData(std::string koc)
std::vector< PixelVersionAlias > pixelVersionAliases_
std::vector< PixelConfigAlias > pixelConfigAliases_
This class implements the steps that are used in a scan over Threshold and CalDelay.
std::vector< versionAliasPair > vectorVAPairs
unsigned int clone(unsigned int oldkey, std::string path, unsigned int version)
unsigned int nVersionAliases()