]> git.tdb.fi Git - builder.git/blobdiff - source/feature.h
Eliminate all global typedefs, making misc.h finally unnecessary
[builder.git] / source / feature.h
index 36d85bf84029ae4cb56225d4ae896e82bdc2f7dd..8d496b33849e452cb71d7e0274d79eec1d166a73 100644 (file)
@@ -1,20 +1,21 @@
-/* $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 &);
+       };
+
        std::string name;
        std::string descr;
+       std::string def_value;
 
-       Feature(const std::string &n, const std::string &d): name(n), descr(d) { }
+       Feature(const std::string &n): name(n) { }
 };
-typedef std::list<Feature> FeatureList;
 
 #endif