1
0

Added cIniFile::HasValue() function.

This commit is contained in:
madmaxoft
2014-09-03 23:00:16 +02:00
parent b4c6ad0036
commit fac89d0c43
2 changed files with 23 additions and 0 deletions

View File

@@ -668,6 +668,24 @@ void cIniFile::Clear(void)
bool cIniFile::HasValue(const AString & a_KeyName, const AString & a_ValueName)
{
// Find the key:
int keyID = FindKey(a_KeyName);
if (keyID == noID)
{
return false;
}
// Find the value:
int valueID = FindValue(keyID, a_ValueName);
return (valueID != noID);
}
void cIniFile::AddHeaderComment(const AString & comment)
{
comments.push_back(comment);