]> git.tdb.fi Git - builder.git/blobdiff - source/feature.h
Add support for statically linking the C++ standard library
[builder.git] / source / feature.h
index a42e8259bb60199ab594a3fdb004362fb8162c0f..f0134db8dbdb712d9b276d57addd4203a96359db 100644 (file)
@@ -1,13 +1,26 @@
 #ifndef FEATURE_H_
 #define FEATURE_H_
 
+#include <msp/datafile/objectloader.h>
+
 struct Feature
 {
+       class Loader: public Msp::DataFile::ObjectLoader<Feature>
+       {
+       public:
+               Loader(Feature &);
+
+       private:
+               void choice(const std::string &);
+       };
+
        std::string name;
-       std::string descr;
+       std::string description;
+       std::string default_value;
+       std::list<std::string> choices;
+       bool exported;
 
-       Feature(const std::string &n, const std::string &d): name(n), descr(d) { }
+       Feature(const std::string &);
 };
-typedef std::list<Feature> FeatureList;
 
 #endif