From 39e77f7d7f8a2c9148fb1c064c2e1437ad378ccb Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 9 Aug 2006 07:50:49 +0000 Subject: Renamed it, it also is no longer a singleton, although your child class could be. --- src/configmanagerbase.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/configmanagerbase.h (limited to 'src/configmanagerbase.h') diff --git a/src/configmanagerbase.h b/src/configmanagerbase.h new file mode 100644 index 0000000..b60c73a --- /dev/null +++ b/src/configmanagerbase.h @@ -0,0 +1,24 @@ +#ifndef CONFIG_MANAGER_BASE_H +#define CONFIG_MANAGER_BASE_H + +#include +#include + +class ConfigManagerBase +{ +public: + ConfigManagerBase(); + ~ConfigManagerBase(); + +public: + void addSearchPath( const std::string &sPath ); + void loadConfig( const char *lpProfile="default" ); + +private: + bool parseConfig( const char *lpFileName, const char *lpProfile ); + virtual bool processProfile( class XmlNode *pBase )=0; + + std::list lSearchPath; +}; + +#endif -- cgit v1.2.3