add SetValue
This commit is contained in:
@@ -271,6 +271,11 @@ const IniFile::key *IniFile::GetKey(const CString &keyname) const
|
||||
return &i->second;
|
||||
}
|
||||
|
||||
void IniFile::SetValue(const CString &keyname, const key &key)
|
||||
{
|
||||
keys[keyname]=key;
|
||||
}
|
||||
|
||||
void IniFile::RenameKey(const CString &from, const CString &to)
|
||||
{
|
||||
if(keys.find(from) == keys.end())
|
||||
|
||||
@@ -92,6 +92,7 @@ public:
|
||||
bool DeleteKey(const CString &keyname);
|
||||
|
||||
const key *GetKey(const CString &keyname) const;
|
||||
void SetValue(const CString &keyname, const key &key);
|
||||
|
||||
/* Rename a key. For example, call RenameKey("foo", "main") after
|
||||
* reading an INI where [foo] is an alias to [main]. If to already
|
||||
|
||||
Reference in New Issue
Block a user