+/* $Id$
+
+This file is part of the MSP Märklin suite
+Copyright © 2006-2009 Mikkosoft Productions, Mikko Rasa
+Distributed under the GPL
+*/
+
#include "locotype.h"
using namespace std;
LocoType::Loader::Loader(LocoType <):
- ltype(lt)
+ Msp::DataFile::BasicLoader<LocoType>(lt)
{
add("function", &Loader::function);
add("name", &LocoType::name);
void LocoType::Loader::function(unsigned i, const string &f)
{
- ltype.funcs[i]=f;
+ obj.funcs[i]=f;
}
} // namespace Marklin