]> git.tdb.fi Git - builder.git/blob - source/option.h
Code reorganizing and cleanup
[builder.git] / source / option.h
1 #ifndef OPTION_H_
2 #define OPTION_H_
3
4 #include <string>
5
6 class Option
7 {
8 public:
9         Option(const std::string &, const std::string &, const std::string &);
10         void set_value(const std::string &v) { value=v; }
11         const std::string &get_value() const { return value; }
12         const std::string &get_name() const { return name; }
13         const std::string &get_default_value() const { return defv; }
14         const std::string &get_description() const { return descr; }
15 private:
16         std::string name;
17         std::string defv;
18         std::string descr;
19         std::string value;
20 };
21
22 #endif