mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:00:04 +00:00
Parse coded information from text product content
This commit is contained in:
parent
8f3baaa7c3
commit
56cda08b0d
5 changed files with 115 additions and 9 deletions
|
|
@ -3,6 +3,7 @@
|
|||
#include <scwx/common/geographic.hpp>
|
||||
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
|
@ -32,7 +33,10 @@ public:
|
|||
|
||||
std::vector<common::Coordinate> coordinates() const;
|
||||
|
||||
bool Parse(const StringRange& lines, const std::string& wfo = "");
|
||||
bool Parse(const StringRange& lines, const std::string& wfo = {});
|
||||
|
||||
static std::optional<CodedLocation> Create(const StringRange& lines,
|
||||
const std::string& wfo = {});
|
||||
|
||||
private:
|
||||
std::unique_ptr<CodedLocationImpl> p;
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include <chrono>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
|
@ -36,7 +37,10 @@ public:
|
|||
uint8_t speed() const;
|
||||
std::vector<common::Coordinate> coordinates() const;
|
||||
|
||||
bool Parse(const StringRange& lines, const std::string& wfo = "");
|
||||
bool Parse(const StringRange& lines, const std::string& wfo = {});
|
||||
|
||||
static std::optional<CodedTimeMotionLocation>
|
||||
Create(const StringRange& lines, const std::string& wfo = {});
|
||||
|
||||
private:
|
||||
std::unique_ptr<CodedTimeMotionLocationImpl> p;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue