Lines Matching refs:valueName
93 string valueName = line.substr(0, pLeft); in readFile() local
95 addValue(keyName, valueName, value); in readFile()
160 int Configurator::findValue(unsigned int keyID, string valueName) const in findValue()
169 if(sections[keyID].names[valueID] == valueName) in findValue()
185 void Configurator::addValue(string const keyName, string const valueName, string const value) in addValue() argument
194 int valueID = findValue(keyID, valueName); in addValue()
198 sections[keyID].names.resize(sections[keyID].names.size() + 1, valueName); in addValue()
207 string Configurator::getValue(string keyName, string valueName, string defaultValue) const in getValue() argument
211 int valueID = findValue((unsigned int)keyID, valueName); in getValue()
217 int Configurator::getInteger(string keyName, string valueName, int defaultValue) const in getInteger() argument
223 return atoi(getValue(keyName, valueName, svalue).c_str()); in getInteger()
226 bool Configurator::getBoolean(string keyName, string valueName, bool defaultValue) const in getBoolean() argument
228 return getInteger(keyName, valueName, (int)defaultValue) != 0; in getBoolean()
231 double Configurator::getFloat(string keyName, string valueName, double defaultValue) const in getFloat() argument
237 return atof(getValue(keyName, valueName, svalue).c_str()); in getFloat()
240 unsigned int Configurator::getFormatted(string keyName, string valueName, char *format, in getFormatted() argument
246 string value = getValue(keyName, valueName); in getFormatted()