Mercurial > projects > ldc
diff gen/configfile.h @ 1484:7d3b47852a7a
Print the path to the configuration file being used if `-v` is passed.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sun, 07 Jun 2009 17:20:55 +0200 |
parents | b30fe7e1dbb9 |
children | a048f31bf9f6 |
line wrap: on
line diff
--- a/gen/configfile.h Sun Jun 07 16:00:13 2009 +0200 +++ b/gen/configfile.h Sun Jun 07 17:20:55 2009 +0200 @@ -2,6 +2,7 @@ #define LDC_CONF_CONFIGFILE_H #include <vector> +#include <string> namespace libconfig { @@ -23,8 +24,11 @@ s_iterator switches_begin() { return switches.begin(); } s_iterator switches_end() { return switches.end(); } + const std::string& path() { return pathstr; } + private: libconfig::Config* cfg; + std::string pathstr; s_vector switches; };