mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:50:05 +00:00
Coded time motion location
This commit is contained in:
parent
b96455190f
commit
db4f37a37d
5 changed files with 322 additions and 0 deletions
46
wxdata/include/scwx/awips/coded_time_motion_location.hpp
Normal file
46
wxdata/include/scwx/awips/coded_time_motion_location.hpp
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
#pragma once
|
||||
|
||||
#include <scwx/common/geographic.hpp>
|
||||
|
||||
#include <chrono>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <boost/range/any_range.hpp>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace awips
|
||||
{
|
||||
|
||||
class CodedTimeMotionLocationImpl;
|
||||
|
||||
class CodedTimeMotionLocation
|
||||
{
|
||||
public:
|
||||
typedef boost::any_range<std::string, boost::forward_traversal_tag>
|
||||
StringRange;
|
||||
|
||||
explicit CodedTimeMotionLocation();
|
||||
~CodedTimeMotionLocation();
|
||||
|
||||
CodedTimeMotionLocation(const CodedTimeMotionLocation&) = delete;
|
||||
CodedTimeMotionLocation& operator=(const CodedTimeMotionLocation&) = delete;
|
||||
|
||||
CodedTimeMotionLocation(CodedTimeMotionLocation&&) noexcept;
|
||||
CodedTimeMotionLocation& operator=(CodedTimeMotionLocation&&) noexcept;
|
||||
|
||||
std::chrono::hh_mm_ss<std::chrono::minutes> time() const;
|
||||
uint16_t direction() const;
|
||||
uint8_t speed() const;
|
||||
std::vector<common::Coordinate> coordinates() const;
|
||||
|
||||
bool Parse(const StringRange& lines, const std::string& wfo = "");
|
||||
|
||||
private:
|
||||
std::unique_ptr<CodedTimeMotionLocationImpl> p;
|
||||
};
|
||||
|
||||
} // namespace awips
|
||||
} // namespace scwx
|
||||
Loading…
Add table
Add a link
Reference in a new issue