aboutsummaryrefslogtreecommitdiff
path: root/src/old/configmanagerbase.h
blob: 381cc1f3795932b9b1cab6bacbc6249c37c2dc77 (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();
	virtual ~ConfigManagerBase();
	
public:
	void addSearchPath( const std::string &sPath );
	void loadConfig( const std::string &sFileName, 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