2019-09-08 16:42:10 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "api.h"
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <list>
|
|
|
|
|
|
|
|
namespace gpx {
|
|
|
|
class WPT;
|
|
|
|
class GPX;
|
|
|
|
} // namespace gpx
|
|
|
|
|
2019-10-03 22:43:39 +00:00
|
|
|
class GPX : public Api {
|
2019-09-08 16:42:10 +00:00
|
|
|
private:
|
|
|
|
std::list<gpx::WPT*> items;
|
|
|
|
gpx::GPX* root;
|
|
|
|
|
|
|
|
public:
|
2020-02-11 16:34:23 +00:00
|
|
|
explicit GPX(const std::string& path);
|
2019-09-08 16:42:10 +00:00
|
|
|
~GPX();
|
|
|
|
|
2020-02-11 16:34:23 +00:00
|
|
|
Cache get_cache(const std::string& code) const;
|
2020-02-11 16:37:01 +00:00
|
|
|
Caches get_user_caches(const std::string& uuid = "", int count = 0) const override;
|
2019-09-08 16:42:10 +00:00
|
|
|
};
|