sigc::signal<void, const std::string &> signal_error;
private:
- const Catalogue &catalogue;
+ Catalogue &catalogue;
Protocol proto;
Msp::Net::StreamSocket *socket;
Msp::Net::Communicator *comm;
std::map<unsigned, NetTrain *> trains;
public:
- Client(const Catalogue &);
+ Client(Catalogue &);
~Client();
void use_event_dispatcher(Msp::IO::EventDispatcher &);
void send(const P &pkt)
{ if(comm) comm->send(pkt); }
- const Catalogue &get_catalogue() const { return catalogue; }
+ Catalogue &get_catalogue() const { return catalogue; }
const std::list<std::string> &get_routes() const { return routes; }
void set_power(bool);
void set_halt(bool);