Lines Matching refs:keyID
131 for(unsigned int keyID = 0; keyID < sections.size(); keyID++) in writeFile() local
133 file << "[" << names[keyID] << "]" << endl; in writeFile()
135 for(unsigned int valueID = 0; valueID < sections[keyID].names.size(); valueID++) in writeFile()
137 file << sections[keyID].names[valueID] << "=" << sections[keyID].values[valueID] << endl; in writeFile()
148 for(unsigned int keyID = 0; keyID < names.size(); keyID++) in findKey() local
150 if(names[keyID] == keyName) in findKey()
152 return keyID; in findKey()
159 int Configurator::findValue(unsigned int keyID, string valueName) const in findValue() argument
161 if(!sections.size() || keyID >= sections.size()) in findValue()
166 for(unsigned int valueID = 0; valueID < sections[keyID].names.size(); ++valueID) in findValue()
168 if(sections[keyID].names[valueID] == valueName) in findValue()
186 int keyID = findKey(keyName); in addValue() local
189 if(keyID == -1) in addValue()
191 keyID = addKeyName(keyName); in addValue()
194 int valueID = findValue(keyID, valueName); in addValue()
198 sections[keyID].names.resize(sections[keyID].names.size() + 1, valueName); in addValue()
199 sections[keyID].values.resize(sections[keyID].values.size() + 1, value); in addValue()
203 sections[keyID].values[valueID] = value; in addValue()
209 int keyID = findKey(keyName); in getValue() local
210 if(keyID == -1) return defaultValue; in getValue()
211 int valueID = findValue((unsigned int)keyID, valueName); in getValue()
214 return sections[keyID].values[valueID]; in getValue()