diff --git a/core/config.cpp b/core/config.cpp index 9ae92e6..e838a33 100755 --- a/core/config.cpp +++ b/core/config.cpp @@ -434,6 +434,28 @@ bool Config::ListText(const std::wstring & name, std::vector & lis } + +bool Config::HasValue(const wchar_t * name, const wchar_t * value) +{ + return space.HasValue(name, value); +} + +bool Config::HasValue(const wchar_t * name, const std::wstring & value) +{ + return space.HasValue(name, value); +} + +bool Config::HasValue(const std::wstring & name, const wchar_t * value) +{ + return space.HasValue(name, value); +} + +bool Config::HasValue(const std::wstring & name, const std::wstring & value) +{ + return space.HasValue(name, value); +} + + void Config::Print(std::wostream & out) { space.Serialize(out); diff --git a/core/config.h b/core/config.h index 0d53424..9b69fd1 100755 --- a/core/config.h +++ b/core/config.h @@ -616,6 +616,11 @@ public: bool ListText(const wchar_t * name, std::vector & list); bool ListText(const std::wstring & name, std::vector & list); + bool HasValue(const wchar_t * name, const wchar_t * value); + bool HasValue(const wchar_t * name, const std::wstring & value); + bool HasValue(const std::wstring & name, const wchar_t * value); + bool HasValue(const std::wstring & name, const std::wstring & value); + // for debug void Print(std::wostream & out);