X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffeature.h;h=2ab2081ec213e4a9658fa4852de2d87017c71db5;hb=aa053d637e8259755af7d2e4b510a242f4d29c7b;hp=274f8e91bc7eade318fcaa3e4c355e1d62e89619;hpb=242c55b17e6608b29a77ca17a5b677e202a3ca90;p=builder.git diff --git a/source/feature.h b/source/feature.h index 274f8e9..2ab2081 100644 --- a/source/feature.h +++ b/source/feature.h @@ -1,21 +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 + 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; + std::vector choices; + bool exported; - Feature(const std::string &n, const std::string &d): name(n), descr(d) { } + Feature(const std::string &); }; -typedef std::list FeatureList; - #endif