aboutsummaryrefslogtreecommitdiff
path: root/src/configmanager.h
blob: b60c73ab8ae7566f53cfcde45f384767d10731f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef CONFIG_MANAGER_BASE_H
#define CONFIG_MANAGER_BASE_H

#include <string>
#include <list>

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<std::string> lSearchPath;
};

#endif