mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
34 lines
856 B
C++
34 lines
856 B
C++
#ifndef ROUTEDATA_H
|
|
#define ROUTEDATA_H
|
|
|
|
#include <QVector>
|
|
#include <QString>
|
|
#include "waypoint.h"
|
|
#include "link.h"
|
|
#include "style.h"
|
|
|
|
class RouteData : public QVector<Waypoint>
|
|
{
|
|
public:
|
|
const QString &name() const {return _name;}
|
|
const QString &description() const {return _desc;}
|
|
const QString &comment() const {return _comment;}
|
|
const QVector<Link> &links() const {return _links;}
|
|
const LineStyle &style() const {return _style;}
|
|
|
|
void setName(const QString &name) {_name = name;}
|
|
void setDescription(const QString &desc) {_desc = desc;}
|
|
void setComment(const QString &comment) {_comment = comment;}
|
|
void addLink(const Link &link) {_links.append(link);}
|
|
void setStyle(const LineStyle &style) {_style = style;}
|
|
|
|
private:
|
|
QString _name;
|
|
QString _desc;
|
|
QString _comment;
|
|
QVector<Link> _links;
|
|
LineStyle _style;
|
|
};
|
|
|
|
#endif // ROUTEDATA_H
|