Mercurial > projects > ldc
comparison gen/configfile.h @ 1103:b30fe7e1dbb9
- Updated to DMD frontend 1.041.
- Removed dmd/inifile.c , it's not under a free license, replaced with libconfig based config file.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Thu, 12 Mar 2009 20:37:27 +0100 |
parents | |
children | 7d3b47852a7a |
comparison
equal
deleted
inserted
replaced
1102:ae950bd712d3 | 1103:b30fe7e1dbb9 |
---|---|
1 #ifndef LDC_CONF_CONFIGFILE_H | |
2 #define LDC_CONF_CONFIGFILE_H | |
3 | |
4 #include <vector> | |
5 | |
6 namespace libconfig | |
7 { | |
8 class Config; | |
9 } | |
10 | |
11 class ConfigFile | |
12 { | |
13 public: | |
14 typedef std::vector<const char*> s_vector; | |
15 typedef s_vector::iterator s_iterator; | |
16 | |
17 public: | |
18 ConfigFile(); | |
19 ~ConfigFile(); | |
20 | |
21 bool read(const char* argv0, void* mainAddr, const char* filename); | |
22 | |
23 s_iterator switches_begin() { return switches.begin(); } | |
24 s_iterator switches_end() { return switches.end(); } | |
25 | |
26 private: | |
27 libconfig::Config* cfg; | |
28 | |
29 s_vector switches; | |
30 }; | |
31 | |
32 #endif // LDC_CONF_CONFIGFILE_H |