X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffeature.h;h=0dca1f524ed315cf681df464abd278a2da384879;hb=40ab4f61eaf7fc14fc6d1c2ea5eecee21882893a;hp=a42e8259bb60199ab594a3fdb004362fb8162c0f;hpb=445edbc3c42bbd7880cc414cf153ddfd196bfc1c;p=builder.git diff --git a/source/feature.h b/source/feature.h index a42e825..0dca1f5 100644 --- a/source/feature.h +++ b/source/feature.h @@ -1,13 +1,26 @@ #ifndef FEATURE_H_ #define FEATURE_H_ +#include + struct Feature { + class Loader: public Msp::DataFile::ObjectLoader + { + public: + Loader(Feature &); + + private: + void choice(const std::string &); + }; + std::string name; - std::string descr; + std::string description; + std::string default_value = "no"; + std::vector choices; + bool exported = false; - Feature(const std::string &n, const std::string &d): name(n), descr(d) { } + Feature(const std::string &n): name(n) { } }; -typedef std::list FeatureList; #endif