]> git.tdb.fi Git - builder.git/blob - source/feature.h
Inline simple constructors
[builder.git] / source / feature.h
1 #ifndef FEATURE_H_
2 #define FEATURE_H_
3
4 #include <msp/datafile/objectloader.h>
5
6 struct Feature
7 {
8         class Loader: public Msp::DataFile::ObjectLoader<Feature>
9         {
10         public:
11                 Loader(Feature &);
12
13         private:
14                 void choice(const std::string &);
15         };
16
17         std::string name;
18         std::string description;
19         std::string default_value = "no";
20         std::vector<std::string> choices;
21         bool exported = false;
22
23         Feature(const std::string &n): name(n) { }
24 };
25
26 #endif