]> git.tdb.fi Git - builder.git/blobdiff - source/feature.cpp
Support default values for features
[builder.git] / source / feature.cpp
diff --git a/source/feature.cpp b/source/feature.cpp
new file mode 100644 (file)
index 0000000..7c19af5
--- /dev/null
@@ -0,0 +1,15 @@
+/* $Id$
+
+This file is part of builder
+Copyright © 2009  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
+#include "feature.h"
+
+Feature::Loader::Loader(Feature &f):
+       Msp::DataFile::BasicLoader<Feature>(f)
+{
+       add("description", &Feature::descr);
+       add("default",     &Feature::def_value);
+}