]> git.tdb.fi Git - builder.git/blobdiff - source/feature.h
Inline simple constructors
[builder.git] / source / feature.h
index 1d4bf51a90bf46348a0278640de00ccbdc9fbce8..0dca1f524ed315cf681df464abd278a2da384879 100644 (file)
@@ -1,30 +1,26 @@
-/* $Id$
-
-This file is part of builder
-Copyright © 2007, 2009  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef FEATURE_H_
 #define FEATURE_H_
 
-#include <msp/datafile/loader.h>
+#include <msp/datafile/objectloader.h>
 
 struct Feature
 {
-       class Loader: public Msp::DataFile::BasicLoader<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 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) { }
 };
 
-typedef std::list<Feature> FeatureList;
-
 #endif