-/* $Id$
-
-This file is part of the MSP Märklin suite
-Copyright © 2009 Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
-#ifndef MARKLINNET_TRAIN_H_
-#define MARKLINNET_TRAIN_H_
+#ifndef R2C2_NET_TRAIN_H_
+#define R2C2_NET_TRAIN_H_
#include <sigc++/signal.h>
-#include "libmarklin/locotype.h"
+#include "libr2c2/vehicletype.h"
#include "packets.h"
-namespace Marklin {
+namespace R2C2 {
class Client;
private:
Client &client;
- const LocoType &loco_type;
+ const VehicleType &loco_type;
unsigned address;
std::string name;
std::map<std::string, float> controls;
public:
NetTrain(Client &, const TrainInfoPacket &);
- const LocoType &get_loco_type() const { return loco_type; }
+ const VehicleType &get_loco_type() const { return loco_type; }
unsigned get_address() const { return address; }
const std::string &get_name() const { return name; }
void set_control(const std::string &, float);
void process_packet(const TrainStatusPacket &);
};
-} // namespace Marklin
+} // namespace R2C2
#endif