#ifndef ROUTE_H #define ROUTE_H #include #include "routedata.h" #include "graph.h" #include "path.h" class Route { public: Route(const RouteData &data); Path path() const; const RouteData &data() const {return _data;} Graph elevation() const; qreal distance() const; const QString &name() const {return _data.name();} const QString &description() const {return _data.description();} const QString &comment() const {return _data.comment();} const QVector &links() const {return _data.links();} bool isValid() const {return _data.size() >= 2;} private: RouteData _data; QVector _distance; }; #endif // ROUTE_H