summaryrefslogtreecommitdiffstats
path: root/raul/Configuration.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'raul/Configuration.hpp')
-rw-r--r--raul/Configuration.hpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/raul/Configuration.hpp b/raul/Configuration.hpp
index 655696a..9efca42 100644
--- a/raul/Configuration.hpp
+++ b/raul/Configuration.hpp
@@ -34,18 +34,20 @@ namespace Raul {
*/
class Configuration {
public:
- Configuration(const std::string& shortdesc, const std::string& desc)
- : _shortdesc(shortdesc)
+ Configuration(Forge* forge,
+ const std::string& shortdesc,
+ const std::string& desc)
+ : _forge(forge)
+ , _shortdesc(shortdesc)
, _desc(desc)
, _max_name_length(0)
{}
- Configuration& add(
- const std::string& name,
- char letter,
- const std::string& desc,
- const Atom::Type type,
- const Atom& value);
+ Configuration& add(const std::string& name,
+ char letter,
+ const std::string& desc,
+ const Atom::Type type,
+ const Atom& value);
void print_usage(const std::string& program, std::ostream& os);
@@ -92,6 +94,7 @@ private:
int set_value_from_string(Configuration::Option& option, const std::string& value)
throw (Configuration::CommandLineError);
+ Forge* _forge;
const std::string _shortdesc;
const std::string _desc;
Options _options;