X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffeature.h;h=2ab2081ec213e4a9658fa4852de2d87017c71db5;hb=aa053d637e8259755af7d2e4b510a242f4d29c7b;hp=1d4bf51a90bf46348a0278640de00ccbdc9fbce8;hpb=55a110c49b85482c4079745211cc599f4508945f;p=builder.git diff --git a/source/feature.h b/source/feature.h index 1d4bf51..2ab2081 100644 --- a/source/feature.h +++ b/source/feature.h @@ -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 +#include struct Feature { - class Loader: public Msp::DataFile::BasicLoader + class Loader: public Msp::DataFile::ObjectLoader { 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; + std::vector choices; + bool exported; - Feature(const std::string &n): name(n) { } + Feature(const std::string &); }; -typedef std::list FeatureList; - #endif