mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:40:05 +00:00
Zero initialize level 3 data fields
This commit is contained in:
parent
62429bdea7
commit
1fbb5e5387
14 changed files with 97 additions and 64 deletions
|
|
@ -32,7 +32,9 @@ public:
|
||||||
numberOfLfmBoxesInRow_ {0},
|
numberOfLfmBoxesInRow_ {0},
|
||||||
numberOfRows_ {0},
|
numberOfRows_ {0},
|
||||||
row_ {},
|
row_ {},
|
||||||
dataSize_ {0} {};
|
dataSize_ {0}
|
||||||
|
{
|
||||||
|
}
|
||||||
~DigitalPrecipitationDataArrayPacketImpl() = default;
|
~DigitalPrecipitationDataArrayPacketImpl() = default;
|
||||||
|
|
||||||
uint16_t packetCode_;
|
uint16_t packetCode_;
|
||||||
|
|
|
||||||
|
|
@ -25,13 +25,15 @@ class Level3MessageHeaderImpl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit Level3MessageHeaderImpl() :
|
explicit Level3MessageHeaderImpl() :
|
||||||
messageCode_ {},
|
messageCode_ {0},
|
||||||
dateOfMessage_ {},
|
dateOfMessage_ {0},
|
||||||
timeOfMessage_ {},
|
timeOfMessage_ {0},
|
||||||
lengthOfMessage_ {},
|
lengthOfMessage_ {0},
|
||||||
sourceId_ {},
|
sourceId_ {0},
|
||||||
destinationId_ {},
|
destinationId_ {0},
|
||||||
numberBlocks_ {} {};
|
numberBlocks_ {0}
|
||||||
|
{
|
||||||
|
}
|
||||||
~Level3MessageHeaderImpl() = default;
|
~Level3MessageHeaderImpl() = default;
|
||||||
|
|
||||||
int16_t messageCode_;
|
int16_t messageCode_;
|
||||||
|
|
|
||||||
|
|
@ -19,13 +19,15 @@ class LinkedContourVectorPacketImpl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit LinkedContourVectorPacketImpl() :
|
explicit LinkedContourVectorPacketImpl() :
|
||||||
packetCode_ {},
|
packetCode_ {0},
|
||||||
initialPointIndicator_ {},
|
initialPointIndicator_ {0},
|
||||||
lengthOfVectors_ {},
|
lengthOfVectors_ {0},
|
||||||
startI_ {},
|
startI_ {0},
|
||||||
startJ_ {},
|
startJ_ {0},
|
||||||
endI_ {},
|
endI_ {},
|
||||||
endJ_ {} {};
|
endJ_ {}
|
||||||
|
{
|
||||||
|
}
|
||||||
~LinkedContourVectorPacketImpl() = default;
|
~LinkedContourVectorPacketImpl() = default;
|
||||||
|
|
||||||
uint16_t packetCode_;
|
uint16_t packetCode_;
|
||||||
|
|
|
||||||
|
|
@ -19,13 +19,15 @@ class LinkedVectorPacketImpl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit LinkedVectorPacketImpl() :
|
explicit LinkedVectorPacketImpl() :
|
||||||
packetCode_ {},
|
packetCode_ {0},
|
||||||
lengthOfBlock_ {},
|
lengthOfBlock_ {0},
|
||||||
valueOfVector_ {},
|
valueOfVector_ {0},
|
||||||
startI_ {},
|
startI_ {0},
|
||||||
startJ_ {},
|
startJ_ {0},
|
||||||
endI_ {},
|
endI_ {},
|
||||||
endJ_ {} {};
|
endJ_ {}
|
||||||
|
{
|
||||||
|
}
|
||||||
~LinkedVectorPacketImpl() = default;
|
~LinkedVectorPacketImpl() = default;
|
||||||
|
|
||||||
uint16_t packetCode_;
|
uint16_t packetCode_;
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,9 @@ public:
|
||||||
numberOfLfmBoxesInRow_ {0},
|
numberOfLfmBoxesInRow_ {0},
|
||||||
numberOfRows_ {0},
|
numberOfRows_ {0},
|
||||||
row_ {},
|
row_ {},
|
||||||
dataSize_ {0} {};
|
dataSize_ {0}
|
||||||
|
{
|
||||||
|
}
|
||||||
~PrecipitationRateDataArrayPacketImpl() = default;
|
~PrecipitationRateDataArrayPacketImpl() = default;
|
||||||
|
|
||||||
uint16_t packetCode_;
|
uint16_t packetCode_;
|
||||||
|
|
|
||||||
|
|
@ -25,31 +25,33 @@ class ProductDescriptionBlockImpl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit ProductDescriptionBlockImpl() :
|
explicit ProductDescriptionBlockImpl() :
|
||||||
blockDivider_ {},
|
blockDivider_ {0},
|
||||||
latitudeOfRadar_ {},
|
latitudeOfRadar_ {0},
|
||||||
longitudeOfRadar_ {},
|
longitudeOfRadar_ {0},
|
||||||
heightOfRadar_ {},
|
heightOfRadar_ {0},
|
||||||
productCode_ {},
|
productCode_ {0},
|
||||||
operationalMode_ {},
|
operationalMode_ {0},
|
||||||
volumeCoveragePattern_ {},
|
volumeCoveragePattern_ {0},
|
||||||
sequenceNumber_ {},
|
sequenceNumber_ {0},
|
||||||
volumeScanNumber_ {},
|
volumeScanNumber_ {0},
|
||||||
volumeScanDate_ {},
|
volumeScanDate_ {0},
|
||||||
volumeScanStartTime_ {},
|
volumeScanStartTime_ {0},
|
||||||
generationDateOfProduct_ {},
|
generationDateOfProduct_ {0},
|
||||||
generationTimeOfProduct_ {},
|
generationTimeOfProduct_ {0},
|
||||||
elevationNumber_ {},
|
elevationNumber_ {0},
|
||||||
halfword31_ {},
|
halfword31_ {0},
|
||||||
halfword32_ {},
|
halfword32_ {0},
|
||||||
halfword33_ {},
|
halfword33_ {0},
|
||||||
halfword34_ {},
|
halfword34_ {0},
|
||||||
halfword35_ {},
|
halfword35_ {0},
|
||||||
version_ {},
|
version_ {0},
|
||||||
spotBlank_ {},
|
spotBlank_ {0},
|
||||||
offsetToSymbology_ {},
|
offsetToSymbology_ {0},
|
||||||
offsetToGraphic_ {},
|
offsetToGraphic_ {0},
|
||||||
offsetToTabular_ {},
|
offsetToTabular_ {0},
|
||||||
parameters_ {} {};
|
parameters_ {0}
|
||||||
|
{
|
||||||
|
}
|
||||||
~ProductDescriptionBlockImpl() = default;
|
~ProductDescriptionBlockImpl() = default;
|
||||||
|
|
||||||
int16_t blockDivider_;
|
int16_t blockDivider_;
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,13 @@ class ProductSymbologyBlockImpl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit ProductSymbologyBlockImpl() :
|
explicit ProductSymbologyBlockImpl() :
|
||||||
blockDivider_ {}, blockId_ {}, lengthOfBlock_ {}, numberOfLayers_ {} {};
|
blockDivider_ {0},
|
||||||
|
blockId_ {0},
|
||||||
|
lengthOfBlock_ {0},
|
||||||
|
numberOfLayers_ {0},
|
||||||
|
layerList_ {}
|
||||||
|
{
|
||||||
|
}
|
||||||
~ProductSymbologyBlockImpl() = default;
|
~ProductSymbologyBlockImpl() = default;
|
||||||
|
|
||||||
int16_t blockDivider_;
|
int16_t blockDivider_;
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,10 @@ public:
|
||||||
iCenterOfSweep_ {0},
|
iCenterOfSweep_ {0},
|
||||||
jCenterOfSweep_ {0},
|
jCenterOfSweep_ {0},
|
||||||
scaleFactor_ {0},
|
scaleFactor_ {0},
|
||||||
dataSize_ {0} {};
|
radial_ {},
|
||||||
|
dataSize_ {0}
|
||||||
|
{
|
||||||
|
}
|
||||||
~RadialDataPacketImpl() = default;
|
~RadialDataPacketImpl() = default;
|
||||||
|
|
||||||
uint16_t packetCode_;
|
uint16_t packetCode_;
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,9 @@ public:
|
||||||
numberOfRows_ {0},
|
numberOfRows_ {0},
|
||||||
packagingDescriptor_ {0},
|
packagingDescriptor_ {0},
|
||||||
row_ {},
|
row_ {},
|
||||||
dataSize_ {0} {};
|
dataSize_ {0}
|
||||||
|
{
|
||||||
|
}
|
||||||
~RasterDataPacketImpl() = default;
|
~RasterDataPacketImpl() = default;
|
||||||
|
|
||||||
uint16_t packetCode_;
|
uint16_t packetCode_;
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,9 @@ class SetColorLevelPacketImpl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit SetColorLevelPacketImpl() :
|
explicit SetColorLevelPacketImpl() :
|
||||||
packetCode_ {}, colorValueIndicator_ {}, valueOfContour_ {} {};
|
packetCode_ {0}, colorValueIndicator_ {0}, valueOfContour_ {0}
|
||||||
|
{
|
||||||
|
}
|
||||||
~SetColorLevelPacketImpl() = default;
|
~SetColorLevelPacketImpl() = default;
|
||||||
|
|
||||||
uint16_t packetCode_;
|
uint16_t packetCode_;
|
||||||
|
|
|
||||||
|
|
@ -19,12 +19,14 @@ class TextAndSpecialSymbolPacketImpl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit TextAndSpecialSymbolPacketImpl() :
|
explicit TextAndSpecialSymbolPacketImpl() :
|
||||||
packetCode_ {},
|
packetCode_ {0},
|
||||||
lengthOfBlock_ {},
|
lengthOfBlock_ {0},
|
||||||
valueOfText_ {},
|
valueOfText_ {0},
|
||||||
startI_ {},
|
startI_ {0},
|
||||||
startJ_ {},
|
startJ_ {0},
|
||||||
characters_ {} {};
|
characters_ {}
|
||||||
|
{
|
||||||
|
}
|
||||||
~TextAndSpecialSymbolPacketImpl() = default;
|
~TextAndSpecialSymbolPacketImpl() = default;
|
||||||
|
|
||||||
uint16_t packetCode_;
|
uint16_t packetCode_;
|
||||||
|
|
|
||||||
|
|
@ -19,12 +19,14 @@ class UnlinkedContourVectorPacketImpl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit UnlinkedContourVectorPacketImpl() :
|
explicit UnlinkedContourVectorPacketImpl() :
|
||||||
packetCode_ {},
|
packetCode_ {0},
|
||||||
lengthOfVectors_ {},
|
lengthOfVectors_ {0},
|
||||||
beginI_ {},
|
beginI_ {},
|
||||||
beginJ_ {},
|
beginJ_ {},
|
||||||
endI_ {},
|
endI_ {},
|
||||||
endJ_ {} {};
|
endJ_ {}
|
||||||
|
{
|
||||||
|
}
|
||||||
~UnlinkedContourVectorPacketImpl() = default;
|
~UnlinkedContourVectorPacketImpl() = default;
|
||||||
|
|
||||||
uint16_t packetCode_;
|
uint16_t packetCode_;
|
||||||
|
|
|
||||||
|
|
@ -19,13 +19,15 @@ class UnlinkedVectorPacketImpl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit UnlinkedVectorPacketImpl() :
|
explicit UnlinkedVectorPacketImpl() :
|
||||||
packetCode_ {},
|
packetCode_ {0},
|
||||||
lengthOfBlock_ {},
|
lengthOfBlock_ {0},
|
||||||
valueOfVector_ {},
|
valueOfVector_ {0},
|
||||||
beginI_ {},
|
beginI_ {},
|
||||||
beginJ_ {},
|
beginJ_ {},
|
||||||
endI_ {},
|
endI_ {},
|
||||||
endJ_ {} {};
|
endJ_ {}
|
||||||
|
{
|
||||||
|
}
|
||||||
~UnlinkedVectorPacketImpl() = default;
|
~UnlinkedVectorPacketImpl() = default;
|
||||||
|
|
||||||
uint16_t packetCode_;
|
uint16_t packetCode_;
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,9 @@ public:
|
||||||
dateTime_ {},
|
dateTime_ {},
|
||||||
bbbIndicator_ {},
|
bbbIndicator_ {},
|
||||||
productCategory_ {},
|
productCategory_ {},
|
||||||
productDesignator_ {} {};
|
productDesignator_ {}
|
||||||
|
{
|
||||||
|
}
|
||||||
~WmoHeaderImpl() = default;
|
~WmoHeaderImpl() = default;
|
||||||
|
|
||||||
std::string sequenceNumber_;
|
std::string sequenceNumber_;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue