kopia lustrzana https://gitlab.com/tomaszg/geostat
Move constants around
rodzic
d33957af6c
commit
637a637626
|
@ -11,6 +11,9 @@
|
||||||
|
|
||||||
using json = nlohmann::json;
|
using json = nlohmann::json;
|
||||||
|
|
||||||
|
static const std::string url = "https://opencaching.pl/powerTrail.php?ptAction=showSerie&ptrail=";
|
||||||
|
static const std::string url2 = "https://opencaching.pl/powerTrail/ajaxGetPowerTrailCaches.php?ptAction=showSerie&ptrail=";
|
||||||
|
|
||||||
static const std::regex regex_name("<span id=\"powerTrailName\">(.*?)</span>");
|
static const std::regex regex_name("<span id=\"powerTrailName\">(.*?)</span>");
|
||||||
static const std::regex regex_date("<span id=\"powerTrailDateCreated\">(.*?)</span>");
|
static const std::regex regex_date("<span id=\"powerTrailDateCreated\">(.*?)</span>");
|
||||||
static const std::regex regex_perc("<span id=\"powerTrailpercent\">(.*?)</span>");
|
static const std::regex regex_perc("<span id=\"powerTrailpercent\">(.*?)</span>");
|
||||||
|
|
|
@ -34,7 +34,7 @@ public:
|
||||||
void get_trail(uint n);
|
void get_trail(uint n);
|
||||||
|
|
||||||
CURL* curl;
|
CURL* curl;
|
||||||
mutable std::string curl_output;
|
std::string curl_output;
|
||||||
|
|
||||||
PowertrailDB();
|
PowertrailDB();
|
||||||
~PowertrailDB();
|
~PowertrailDB();
|
||||||
|
@ -43,9 +43,6 @@ public:
|
||||||
void save_to_json(std::string file);
|
void save_to_json(std::string file);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
inline const static std::string url = "https://opencaching.pl/powerTrail.php?ptAction=showSerie&ptrail=";
|
|
||||||
inline const static std::string url2 = "https://opencaching.pl/powerTrail/ajaxGetPowerTrailCaches.php?ptAction=showSerie&ptrail=";
|
|
||||||
|
|
||||||
static size_t write_cb(char* ptr, size_t size, size_t nmemb, void* userdata);
|
static size_t write_cb(char* ptr, size_t size, size_t nmemb, void* userdata);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue