+/* $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_
-#include <msp/datafile/loader.h>
+#include "vehicletype.h"
namespace Marklin {
-class LocoType
+class LocoType: public VehicleType
{
public:
- class Loader: public Msp::DataFile::Loader
+ class Loader: public VehicleType::Loader
{
- private:
- LocoType <ype;
-
public:
Loader(LocoType &);
- LocoType &get_object() const { return ltype; }
private:
void function(unsigned, const std::string &);
};
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<unsigned, std::string> &get_functions() const { return funcs; }
};