mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 23:10:05 +00:00
45 lines
941 B
C++
45 lines
941 B
C++
#pragma once
|
|
|
|
#include <scwx/awips/message.hpp>
|
|
|
|
#include <cstdint>
|
|
#include <memory>
|
|
|
|
namespace scwx
|
|
{
|
|
namespace wsr88d
|
|
{
|
|
namespace rpg
|
|
{
|
|
|
|
class TabularAlphanumericBlockImpl;
|
|
|
|
class TabularAlphanumericBlock : public awips::Message
|
|
{
|
|
public:
|
|
explicit TabularAlphanumericBlock();
|
|
~TabularAlphanumericBlock();
|
|
|
|
TabularAlphanumericBlock(const TabularAlphanumericBlock&) = delete;
|
|
TabularAlphanumericBlock&
|
|
operator=(const TabularAlphanumericBlock&) = delete;
|
|
|
|
TabularAlphanumericBlock(TabularAlphanumericBlock&&) noexcept;
|
|
TabularAlphanumericBlock& operator=(TabularAlphanumericBlock&&) noexcept;
|
|
|
|
int16_t block_divider() const;
|
|
|
|
size_t data_size() const override;
|
|
|
|
bool Parse(std::istream& is);
|
|
bool Parse(std::istream& is, bool skipHeader);
|
|
|
|
static constexpr size_t SIZE = 102u;
|
|
|
|
private:
|
|
std::unique_ptr<TabularAlphanumericBlockImpl> p;
|
|
};
|
|
|
|
} // namespace rpg
|
|
} // namespace wsr88d
|
|
} // namespace scwx
|