]> git.tdb.fi Git - builder.git/blobdiff - source/feature.h
Support default values for features
[builder.git] / source / feature.h
index 274f8e91bc7eade318fcaa3e4c355e1d62e89619..1d4bf51a90bf46348a0278640de00ccbdc9fbce8 100644 (file)
@@ -8,12 +8,21 @@ Distributed under the LGPL
 #ifndef FEATURE_H_
 #define FEATURE_H_
 
+#include <msp/datafile/loader.h>
+
 struct Feature
 {
+       class Loader: public Msp::DataFile::BasicLoader<Feature>
+       {
+       public:
+               Loader(Feature &);
+       };
+
        std::string name;
        std::string descr;
+       std::string def_value;
 
-       Feature(const std::string &n, const std::string &d): name(n), descr(d) { }
+       Feature(const std::string &n): name(n) { }
 };
 
 typedef std::list<Feature> FeatureList;