3 This file is part of the MSP Märklin suite
4 Copyright © 2010 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
8 #ifndef LIBMARKLIN_TIMETABLE_H_
9 #define LIBMARKLIN_TIMETABLE_H_
13 #include <msp/datafile/objectloader.h>
14 #include <msp/time/timestamp.h>
24 class Loader: public Msp::DataFile::ObjectLoader<Timetable>
29 void go_to(const std::string &);
30 void route(const std::string &);
32 void travel(const std::string &);
52 Row(RowType, const std::string &);
57 std::vector<Row> rows;
61 Msp::Time::TimeStamp wait_timeout;
66 void tick(const Msp::Time::TimeStamp &);
67 void save(std::list<Msp::DataFile::Statement> &) const;
69 Block &parse_location(const std::string &);
70 void sensor_event(unsigned, bool);
74 } // namespace Marklin