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