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
188 if(keyID == -1) in addValue()
190 keyID = addKeyName(keyName); in addValue()
193 int valueID = findValue(keyID, valueName); in addValue()
197 sections[keyID].names.resize(sections[keyID].names.size() + 1, valueName); in addValue()
198 sections[keyID].values.resize(sections[keyID].values.size() + 1, value); in addValue()
202 sections[keyID].values[valueID] = value; in addValue()
208 int keyID = findKey(keyName); in getValue() local
209 if(keyID == -1) return defaultValue; in getValue()
210 int valueID = findValue((unsigned int)keyID, valueName); in getValue()
213 return sections[keyID].values[valueID]; in getValue()