]> git.tdb.fi Git - r2c2.git/blob - source/libmarklin/locotype.cpp
Code reformatting: add spaces around assignment operators
[r2c2.git] / source / libmarklin / locotype.cpp
1 /* $Id$
2
3 This file is part of the MSP Märklin suite
4 Copyright © 2006-2009  Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
6 */
7
8 #include "locotype.h"
9
10 using namespace std;
11
12 namespace Marklin {
13
14 LocoType::LocoType(unsigned an):
15         art_nr(an)
16 { }
17
18
19 LocoType::Loader::Loader(LocoType &lt):
20         Msp::DataFile::BasicLoader<LocoType>(lt)
21 {
22         add("function", &Loader::function);
23         add("name",     &LocoType::name);
24 }
25
26 void LocoType::Loader::function(unsigned i, const string &f)
27 {
28         obj.funcs[i] = f;
29 }
30
31 } // namespace Marklin