summaryrefslogtreecommitdiff
path: root/src/configmanagerbase.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-08-09 07:50:49 +0000
committerMike Buland <eichlan@xagasoft.com>2006-08-09 07:50:49 +0000
commit39e77f7d7f8a2c9148fb1c064c2e1437ad378ccb (patch)
tree7864a810ee7eed2520376e47f26d9b9ec8a12130 /src/configmanagerbase.h
parent3b036371ae3edebb53fd878ddc8c916e78ee1279 (diff)
downloadlibbu++-39e77f7d7f8a2c9148fb1c064c2e1437ad378ccb.tar.gz
libbu++-39e77f7d7f8a2c9148fb1c064c2e1437ad378ccb.tar.bz2
libbu++-39e77f7d7f8a2c9148fb1c064c2e1437ad378ccb.tar.xz
libbu++-39e77f7d7f8a2c9148fb1c064c2e1437ad378ccb.zip
Renamed it, it also is no longer a singleton, although your child class could
be.
Diffstat (limited to 'src/configmanagerbase.h')
-rw-r--r--src/configmanagerbase.h24
1 files changed, 24 insertions, 0 deletions
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 @@
1#ifndef CONFIG_MANAGER_BASE_H
2#define CONFIG_MANAGER_BASE_H
3
4#include <string>
5#include <list>
6
7class ConfigManagerBase
8{
9public:
10 ConfigManagerBase();
11 ~ConfigManagerBase();
12
13public:
14 void addSearchPath( const std::string &sPath );
15 void loadConfig( const char *lpProfile="default" );
16
17private:
18 bool parseConfig( const char *lpFileName, const char *lpProfile );
19 virtual bool processProfile( class XmlNode *pBase )=0;
20
21 std::list<std::string> lSearchPath;
22};
23
24#endif