Packet header fixes

This commit is contained in:
Dan Paulat 2022-08-16 23:33:55 -05:00
parent 12d8aaf8a6
commit b0baa4f336
17 changed files with 20 additions and 17 deletions

View file

@ -26,7 +26,7 @@ public:
CellTrendDataPacket(CellTrendDataPacket&&) noexcept; CellTrendDataPacket(CellTrendDataPacket&&) noexcept;
CellTrendDataPacket& operator=(CellTrendDataPacket&&) noexcept; CellTrendDataPacket& operator=(CellTrendDataPacket&&) noexcept;
uint16_t packet_code() const; uint16_t packet_code() const override;
uint16_t length_of_block() const; uint16_t length_of_block() const;
std::string cell_id() const; std::string cell_id() const;
int16_t i_position() const; int16_t i_position() const;

View file

@ -27,7 +27,7 @@ public:
CellTrendVolumeScanTimes(CellTrendVolumeScanTimes&&) noexcept; CellTrendVolumeScanTimes(CellTrendVolumeScanTimes&&) noexcept;
CellTrendVolumeScanTimes& operator=(CellTrendVolumeScanTimes&&) noexcept; CellTrendVolumeScanTimes& operator=(CellTrendVolumeScanTimes&&) noexcept;
uint16_t packet_code() const; uint16_t packet_code() const override;
uint16_t length_of_block() const; uint16_t length_of_block() const;
uint16_t number_of_volumes() const; uint16_t number_of_volumes() const;
uint16_t latest_volume_pointer() const; uint16_t latest_volume_pointer() const;

View file

@ -30,7 +30,7 @@ public:
DigitalPrecipitationDataArrayPacket& DigitalPrecipitationDataArrayPacket&
operator=(DigitalPrecipitationDataArrayPacket&&) noexcept; operator=(DigitalPrecipitationDataArrayPacket&&) noexcept;
uint16_t packet_code() const; uint16_t packet_code() const override;
uint16_t number_of_lfm_boxes_in_row() const; uint16_t number_of_lfm_boxes_in_row() const;
uint16_t number_of_rows() const; uint16_t number_of_rows() const;

View file

@ -28,7 +28,7 @@ public:
DigitalRadialDataArrayPacket& DigitalRadialDataArrayPacket&
operator=(DigitalRadialDataArrayPacket&&) noexcept; operator=(DigitalRadialDataArrayPacket&&) noexcept;
uint16_t packet_code() const; uint16_t packet_code() const override;
uint16_t index_of_first_range_bin() const; uint16_t index_of_first_range_bin() const;
uint16_t number_of_range_bins() const; uint16_t number_of_range_bins() const;
int16_t i_center_of_sweep() const; int16_t i_center_of_sweep() const;

View file

@ -26,7 +26,7 @@ public:
GenericDataPacket(GenericDataPacket&&) noexcept; GenericDataPacket(GenericDataPacket&&) noexcept;
GenericDataPacket& operator=(GenericDataPacket&&) noexcept; GenericDataPacket& operator=(GenericDataPacket&&) noexcept;
uint16_t packet_code() const; uint16_t packet_code() const override;
uint32_t length_of_block() const; uint32_t length_of_block() const;
size_t data_size() const override; size_t data_size() const override;

View file

@ -27,7 +27,7 @@ public:
LinkedContourVectorPacket(LinkedContourVectorPacket&&) noexcept; LinkedContourVectorPacket(LinkedContourVectorPacket&&) noexcept;
LinkedContourVectorPacket& operator=(LinkedContourVectorPacket&&) noexcept; LinkedContourVectorPacket& operator=(LinkedContourVectorPacket&&) noexcept;
uint16_t packet_code() const; uint16_t packet_code() const override;
uint16_t initial_point_indicator() const; uint16_t initial_point_indicator() const;
uint16_t length_of_vectors() const; uint16_t length_of_vectors() const;

View file

@ -4,6 +4,7 @@
#include <cstdint> #include <cstdint>
#include <memory> #include <memory>
#include <optional>
namespace scwx namespace scwx
{ {
@ -26,7 +27,7 @@ public:
LinkedVectorPacket(LinkedVectorPacket&&) noexcept; LinkedVectorPacket(LinkedVectorPacket&&) noexcept;
LinkedVectorPacket& operator=(LinkedVectorPacket&&) noexcept; LinkedVectorPacket& operator=(LinkedVectorPacket&&) noexcept;
uint16_t packet_code() const; uint16_t packet_code() const override;
uint16_t length_of_block() const; uint16_t length_of_block() const;
std::optional<uint16_t> value_of_vector() const; std::optional<uint16_t> value_of_vector() const;

View file

@ -30,7 +30,7 @@ public:
PrecipitationRateDataArrayPacket& PrecipitationRateDataArrayPacket&
operator=(PrecipitationRateDataArrayPacket&&) noexcept; operator=(PrecipitationRateDataArrayPacket&&) noexcept;
uint16_t packet_code() const; uint16_t packet_code() const override;
uint16_t number_of_lfm_boxes_in_row() const; uint16_t number_of_lfm_boxes_in_row() const;
uint16_t number_of_rows() const; uint16_t number_of_rows() const;

View file

@ -26,7 +26,7 @@ public:
RadialDataPacket(RadialDataPacket&&) noexcept; RadialDataPacket(RadialDataPacket&&) noexcept;
RadialDataPacket& operator=(RadialDataPacket&&) noexcept; RadialDataPacket& operator=(RadialDataPacket&&) noexcept;
uint16_t packet_code() const; uint16_t packet_code() const override;
uint16_t index_of_first_range_bin() const; uint16_t index_of_first_range_bin() const;
uint16_t number_of_range_bins() const; uint16_t number_of_range_bins() const;
int16_t i_center_of_sweep() const; int16_t i_center_of_sweep() const;

View file

@ -26,7 +26,7 @@ public:
RasterDataPacket(RasterDataPacket&&) noexcept; RasterDataPacket(RasterDataPacket&&) noexcept;
RasterDataPacket& operator=(RasterDataPacket&&) noexcept; RasterDataPacket& operator=(RasterDataPacket&&) noexcept;
uint16_t packet_code() const; uint16_t packet_code() const override;
uint16_t op_flag(size_t i) const; uint16_t op_flag(size_t i) const;
int16_t i_coordinate_start() const; int16_t i_coordinate_start() const;
int16_t j_coordinate_start() const; int16_t j_coordinate_start() const;

View file

@ -26,7 +26,7 @@ public:
SetColorLevelPacket(SetColorLevelPacket&&) noexcept; SetColorLevelPacket(SetColorLevelPacket&&) noexcept;
SetColorLevelPacket& operator=(SetColorLevelPacket&&) noexcept; SetColorLevelPacket& operator=(SetColorLevelPacket&&) noexcept;
uint16_t packet_code() const; uint16_t packet_code() const override;
uint16_t color_value_indicator() const; uint16_t color_value_indicator() const;
uint16_t value_of_contour() const; uint16_t value_of_contour() const;

View file

@ -27,7 +27,7 @@ public:
SpecialGraphicSymbolPacket(SpecialGraphicSymbolPacket&&) noexcept; SpecialGraphicSymbolPacket(SpecialGraphicSymbolPacket&&) noexcept;
SpecialGraphicSymbolPacket& operator=(SpecialGraphicSymbolPacket&&) noexcept; SpecialGraphicSymbolPacket& operator=(SpecialGraphicSymbolPacket&&) noexcept;
uint16_t packet_code() const; uint16_t packet_code() const override;
uint16_t length_of_block() const; uint16_t length_of_block() const;
size_t data_size() const override; size_t data_size() const override;

View file

@ -4,6 +4,7 @@
#include <cstdint> #include <cstdint>
#include <memory> #include <memory>
#include <optional>
#include <string> #include <string>
namespace scwx namespace scwx
@ -28,7 +29,7 @@ public:
TextAndSpecialSymbolPacket(TextAndSpecialSymbolPacket&&) noexcept; TextAndSpecialSymbolPacket(TextAndSpecialSymbolPacket&&) noexcept;
TextAndSpecialSymbolPacket& operator=(TextAndSpecialSymbolPacket&&) noexcept; TextAndSpecialSymbolPacket& operator=(TextAndSpecialSymbolPacket&&) noexcept;
uint16_t packet_code() const; uint16_t packet_code() const override;
uint16_t length_of_block() const; uint16_t length_of_block() const;
std::optional<uint16_t> value_of_text() const; std::optional<uint16_t> value_of_text() const;
int16_t start_i() const; int16_t start_i() const;

View file

@ -28,7 +28,7 @@ public:
UnlinkedContourVectorPacket& UnlinkedContourVectorPacket&
operator=(UnlinkedContourVectorPacket&&) noexcept; operator=(UnlinkedContourVectorPacket&&) noexcept;
uint16_t packet_code() const; uint16_t packet_code() const override;
uint16_t length_of_vectors() const; uint16_t length_of_vectors() const;
size_t data_size() const override; size_t data_size() const override;

View file

@ -4,6 +4,7 @@
#include <cstdint> #include <cstdint>
#include <memory> #include <memory>
#include <optional>
namespace scwx namespace scwx
{ {
@ -26,7 +27,7 @@ public:
UnlinkedVectorPacket(UnlinkedVectorPacket&&) noexcept; UnlinkedVectorPacket(UnlinkedVectorPacket&&) noexcept;
UnlinkedVectorPacket& operator=(UnlinkedVectorPacket&&) noexcept; UnlinkedVectorPacket& operator=(UnlinkedVectorPacket&&) noexcept;
uint16_t packet_code() const; uint16_t packet_code() const override;
uint16_t length_of_block() const; uint16_t length_of_block() const;
std::optional<uint16_t> value_of_vector() const; std::optional<uint16_t> value_of_vector() const;

View file

@ -26,7 +26,7 @@ public:
VectorArrowDataPacket(VectorArrowDataPacket&&) noexcept; VectorArrowDataPacket(VectorArrowDataPacket&&) noexcept;
VectorArrowDataPacket& operator=(VectorArrowDataPacket&&) noexcept; VectorArrowDataPacket& operator=(VectorArrowDataPacket&&) noexcept;
uint16_t packet_code() const; uint16_t packet_code() const override;
uint16_t length_of_block() const; uint16_t length_of_block() const;
size_t data_size() const override; size_t data_size() const override;

View file

@ -26,7 +26,7 @@ public:
WindBarbDataPacket(WindBarbDataPacket&&) noexcept; WindBarbDataPacket(WindBarbDataPacket&&) noexcept;
WindBarbDataPacket& operator=(WindBarbDataPacket&&) noexcept; WindBarbDataPacket& operator=(WindBarbDataPacket&&) noexcept;
uint16_t packet_code() const; uint16_t packet_code() const override;
uint16_t length_of_block() const; uint16_t length_of_block() const;
size_t data_size() const override; size_t data_size() const override;