]> git.tdb.fi Git - builder.git/blobdiff - source/feature.h
Use default member initializers and constructor delegation
[builder.git] / source / feature.h
index 8d496b33849e452cb71d7e0274d79eec1d166a73..f8ec33471de5995e255e68c048a203e8ade78be2 100644 (file)
@@ -9,13 +9,18 @@ struct Feature
        {
        public:
                Loader(Feature &);
+
+       private:
+               void choice(const std::string &);
        };
 
        std::string name;
-       std::string descr;
-       std::string def_value;
+       std::string description;
+       std::string default_value = "no";
+       std::vector<std::string> choices;
+       bool exported = false;
 
-       Feature(const std::string &n): name(n) { }
+       Feature(const std::string &);
 };
 
 #endif