-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#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;
- Feature(const std::string &n, const std::string &d): name(n), descr(d) { }
+ Feature(const std::string &);
};
-typedef std::list<Feature> FeatureList;
#endif