Go to the documentation of this file. 1 #ifndef PixelConfigList_h
2 #define PixelConfigList_h
34 for (
unsigned int i = 0;
i <
configs.size();
i++) {
36 out <<
"key " <<
i << std::endl;
49 while (
tag.substr(0, 1) ==
"#") {
50 in.ignore(4096,
'\n');
61 unsigned int tmp_version;
64 std::cout <<
"PixelConfigDB: read version: " << tmp_version <<
" while expected " <<
version << std::endl;
69 while (
tag.substr(0, 1) ==
"#") {
70 in.ignore(4096,
'\n');
75 while (
tag !=
"key" &&
in.good()) {
81 while (
tag.substr(0, 1) ==
"#") {
82 in.ignore(4096,
'\n');
98 unsigned int oldversion;
101 std::cout <<
"Old version not found for path=" <<
path <<
" in config " << oldkey << std::endl;
PixelConfig & operator[](unsigned int i)
void add(std::string dir, unsigned int version)
void readfile(std::string filename)
unsigned int add(PixelConfig &aConfig)
int update(std::string dir, unsigned int &version, unsigned int newversion)
unsigned int numberOfConfigs()
std::vector< PixelConfig > configs
void reload(std::string filename)
unsigned int clone(unsigned int oldkey, std::string path, unsigned int version)