6 Feature::Feature(const string &n):
12 Feature::Loader::Loader(Feature &f):
13 Msp::DataFile::ObjectLoader<Feature>(f)
15 add("choice", &Loader::choice);
16 add("description", &Feature::description);
17 add("default", &Feature::default_value);
20 void Feature::Loader::choice(const string &c)
22 if(obj.choices.empty())
23 obj.default_value = c;
24 obj.choices.push_back(c);