mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 16:00:08 +00:00
Digital radial data array packet
This commit is contained in:
parent
1fbb5e5387
commit
f1472275bc
4 changed files with 290 additions and 0 deletions
|
|
@ -0,0 +1,52 @@
|
|||
#pragma once
|
||||
|
||||
#include <scwx/wsr88d/rpg/packet.hpp>
|
||||
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace wsr88d
|
||||
{
|
||||
namespace rpg
|
||||
{
|
||||
|
||||
class DigitalRadialDataArrayPacketImpl;
|
||||
|
||||
class DigitalRadialDataArrayPacket : public Packet
|
||||
{
|
||||
public:
|
||||
explicit DigitalRadialDataArrayPacket();
|
||||
~DigitalRadialDataArrayPacket();
|
||||
|
||||
DigitalRadialDataArrayPacket(const DigitalRadialDataArrayPacket&) = delete;
|
||||
DigitalRadialDataArrayPacket&
|
||||
operator=(const DigitalRadialDataArrayPacket&) = delete;
|
||||
|
||||
DigitalRadialDataArrayPacket(DigitalRadialDataArrayPacket&&) noexcept;
|
||||
DigitalRadialDataArrayPacket&
|
||||
operator=(DigitalRadialDataArrayPacket&&) noexcept;
|
||||
|
||||
uint16_t packet_code() const;
|
||||
uint16_t index_of_first_range_bin() const;
|
||||
uint16_t number_of_range_bins() const;
|
||||
int16_t i_center_of_sweep() const;
|
||||
int16_t j_center_of_sweep() const;
|
||||
float range_scale_factor() const;
|
||||
uint16_t number_of_radials() const;
|
||||
|
||||
size_t data_size() const override;
|
||||
|
||||
bool Parse(std::istream& is) override;
|
||||
|
||||
static std::shared_ptr<DigitalRadialDataArrayPacket>
|
||||
Create(std::istream& is);
|
||||
|
||||
private:
|
||||
std::unique_ptr<DigitalRadialDataArrayPacketImpl> p;
|
||||
};
|
||||
|
||||
} // namespace rpg
|
||||
} // namespace wsr88d
|
||||
} // namespace scwx
|
||||
Loading…
Add table
Add a link
Reference in a new issue