added to Config:

bool Config::HasValue(const wchar_t * name, const wchar_t * value)
This commit is contained in:
Tomasz Sowa 2021-04-12 18:55:04 +02:00
parent a8a9db53be
commit 4b71530f4c
2 changed files with 14 additions and 0 deletions

View File

@ -481,6 +481,17 @@ bool Config::ListText(const std::wstring & name, std::vector<std::wstring> & lis
return space.to_list(name, list);
}
bool Config::HasValue(const wchar_t * name, const wchar_t * value)
{
return space.has_value(name, value);
}
bool Config::HasValue(const std::wstring & name, const std::wstring & value)
{
return space.has_value(name.c_str(), value.c_str());
}

View File

@ -809,6 +809,9 @@ public:
bool ListText(const wchar_t * name, std::vector<std::wstring> & list);
bool ListText(const std::wstring & name, std::vector<std::wstring> & list);
bool HasValue(const wchar_t * name, const wchar_t * value);
bool HasValue(const std::wstring & name, const std::wstring & value);
// for debug
//void Print(std::wostream & out);