working on metrics editor

This commit is contained in:
Chris Danford
2003-03-29 23:15:59 +00:00
parent 9082e86695
commit 3ceec51ef3
12 changed files with 403 additions and 414 deletions
+20
View File
@@ -150,6 +150,26 @@ int IniFile::GetNumValues(CString keyname)
return keys[keynum].GetCount();
}
//gets value of [keyname] valuename =
//overloaded to return CString, int, and double
BOOL IniFile::GetValue(CString keyname, CString valuename, CString value_out)
{
int keynum = FindKey(keyname);//, valuenum = FindValue(keynum,valuename);
if( keynum == -1 )
{
error = "Unable to locate specified key.";
return FALSE;
}
CMapStringToString &map = keys[keynum];
if( !map.Lookup(valuename, value_out) )
{
error = "Unable to locate specified value.";
return FALSE;
}
return TRUE;
}
//gets value of [keyname] valuename =
//overloaded to return CString, int, and double
CString IniFile::GetValue(CString keyname, CString valuename)