X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Flocotype.h;h=5fd34d8c32f20d56d043075e7fa5dfd9d72ed985;hb=02c9a9779954d993cb73fe5f7a72b0847e87f633;hp=bce5c57249ff8f8601e5e78289f8672203240f15;hpb=447d621e93e71b710fed0920b473350122426b97;p=r2c2.git diff --git a/source/libmarklin/locotype.h b/source/libmarklin/locotype.h index bce5c57..5fd34d8 100644 --- a/source/libmarklin/locotype.h +++ b/source/libmarklin/locotype.h @@ -1,3 +1,10 @@ +/* $Id$ + +This file is part of the MSP Märklin suite +Copyright © 2006-2009 Mikkosoft Productions, Mikko Rasa +Distributed under the GPL +*/ + #ifndef LIBMARKLIN_LOCOTYPE_H_ #define LIBMARKLIN_LOCOTYPE_H_ @@ -8,14 +15,10 @@ namespace Marklin { class LocoType { public: - class Loader: public Msp::DataFile::Loader + class Loader: public Msp::DataFile::BasicLoader { - private: - LocoType <ype; - public: Loader(LocoType &); - LocoType &get_object() const { return ltype; } private: void function(unsigned, const std::string &); }; @@ -29,6 +32,7 @@ public: LocoType(unsigned); unsigned get_article_number() const { return art_nr; } const std::string &get_name() const { return name; } + unsigned get_max_function() const; const std::map &get_functions() const { return funcs; } };