From 55947fb319edfac1563152968b97a24295f95248 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 23 Apr 2005 17:33:28 +0000 Subject: Make StringMap class (with case insensitive keys) global svn-id: r17779 --- common/config-manager.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'common') diff --git a/common/config-manager.h b/common/config-manager.h index 67962239cb..c8e6045056 100644 --- a/common/config-manager.h +++ b/common/config-manager.h @@ -20,31 +20,34 @@ * */ -#ifndef COMMON_CONFIG_H -#define COMMON_CONFIG_H +#ifndef COMMON_CONFIG_MANAGER_H +#define COMMON_CONFIG_MANAGER_H #include "common/array.h" +//#include "common/config-file.h" #include "common/map.h" #include "common/singleton.h" #include "common/str.h" namespace Common { +struct IgnoreCaseComparator { + int operator()(const String& x, const String& y) const { return scumm_stricmp(x.c_str(), y.c_str()); } +}; + +typedef Map StringMap; + /** * The (singleton) configuration manager, used to query & set configuration * values using string keys. * - * @todo Implement the callback based notification system (outline below) + * @todo Implement the callback based notification system (outlined below) * which sends out notifications to interested parties whenever the value * of some specific (or any) configuration key changes. */ class ConfigManager : public Singleton { - struct IgnoreCaseComparator { - int operator()(const String& x, const String& y) const { return scumm_stricmp(x.c_str(), y.c_str()); } - }; public: - typedef Map StringMap; class Domain : public StringMap { private: -- cgit v1.2.3