Zero initialize level 3 data fields

This commit is contained in:
Dan Paulat 2022-01-08 15:16:54 -06:00
parent 62429bdea7
commit 1fbb5e5387
14 changed files with 97 additions and 64 deletions

View file

@ -32,7 +32,9 @@ public:
numberOfLfmBoxesInRow_ {0},
numberOfRows_ {0},
row_ {},
dataSize_ {0} {};
dataSize_ {0}
{
}
~DigitalPrecipitationDataArrayPacketImpl() = default;
uint16_t packetCode_;

View file

@ -25,13 +25,15 @@ class Level3MessageHeaderImpl
{
public:
explicit Level3MessageHeaderImpl() :
messageCode_ {},
dateOfMessage_ {},
timeOfMessage_ {},
lengthOfMessage_ {},
sourceId_ {},
destinationId_ {},
numberBlocks_ {} {};
messageCode_ {0},
dateOfMessage_ {0},
timeOfMessage_ {0},
lengthOfMessage_ {0},
sourceId_ {0},
destinationId_ {0},
numberBlocks_ {0}
{
}
~Level3MessageHeaderImpl() = default;
int16_t messageCode_;

View file

@ -19,13 +19,15 @@ class LinkedContourVectorPacketImpl
{
public:
explicit LinkedContourVectorPacketImpl() :
packetCode_ {},
initialPointIndicator_ {},
lengthOfVectors_ {},
startI_ {},
startJ_ {},
packetCode_ {0},
initialPointIndicator_ {0},
lengthOfVectors_ {0},
startI_ {0},
startJ_ {0},
endI_ {},
endJ_ {} {};
endJ_ {}
{
}
~LinkedContourVectorPacketImpl() = default;
uint16_t packetCode_;

View file

@ -19,13 +19,15 @@ class LinkedVectorPacketImpl
{
public:
explicit LinkedVectorPacketImpl() :
packetCode_ {},
lengthOfBlock_ {},
valueOfVector_ {},
startI_ {},
startJ_ {},
packetCode_ {0},
lengthOfBlock_ {0},
valueOfVector_ {0},
startI_ {0},
startJ_ {0},
endI_ {},
endJ_ {} {};
endJ_ {}
{
}
~LinkedVectorPacketImpl() = default;
uint16_t packetCode_;

View file

@ -31,7 +31,9 @@ public:
numberOfLfmBoxesInRow_ {0},
numberOfRows_ {0},
row_ {},
dataSize_ {0} {};
dataSize_ {0}
{
}
~PrecipitationRateDataArrayPacketImpl() = default;
uint16_t packetCode_;

View file

@ -25,31 +25,33 @@ class ProductDescriptionBlockImpl
{
public:
explicit ProductDescriptionBlockImpl() :
blockDivider_ {},
latitudeOfRadar_ {},
longitudeOfRadar_ {},
heightOfRadar_ {},
productCode_ {},
operationalMode_ {},
volumeCoveragePattern_ {},
sequenceNumber_ {},
volumeScanNumber_ {},
volumeScanDate_ {},
volumeScanStartTime_ {},
generationDateOfProduct_ {},
generationTimeOfProduct_ {},
elevationNumber_ {},
halfword31_ {},
halfword32_ {},
halfword33_ {},
halfword34_ {},
halfword35_ {},
version_ {},
spotBlank_ {},
offsetToSymbology_ {},
offsetToGraphic_ {},
offsetToTabular_ {},
parameters_ {} {};
blockDivider_ {0},
latitudeOfRadar_ {0},
longitudeOfRadar_ {0},
heightOfRadar_ {0},
productCode_ {0},
operationalMode_ {0},
volumeCoveragePattern_ {0},
sequenceNumber_ {0},
volumeScanNumber_ {0},
volumeScanDate_ {0},
volumeScanStartTime_ {0},
generationDateOfProduct_ {0},
generationTimeOfProduct_ {0},
elevationNumber_ {0},
halfword31_ {0},
halfword32_ {0},
halfword33_ {0},
halfword34_ {0},
halfword35_ {0},
version_ {0},
spotBlank_ {0},
offsetToSymbology_ {0},
offsetToGraphic_ {0},
offsetToTabular_ {0},
parameters_ {0}
{
}
~ProductDescriptionBlockImpl() = default;
int16_t blockDivider_;

View file

@ -20,7 +20,13 @@ class ProductSymbologyBlockImpl
{
public:
explicit ProductSymbologyBlockImpl() :
blockDivider_ {}, blockId_ {}, lengthOfBlock_ {}, numberOfLayers_ {} {};
blockDivider_ {0},
blockId_ {0},
lengthOfBlock_ {0},
numberOfLayers_ {0},
layerList_ {}
{
}
~ProductSymbologyBlockImpl() = default;
int16_t blockDivider_;

View file

@ -38,7 +38,10 @@ public:
iCenterOfSweep_ {0},
jCenterOfSweep_ {0},
scaleFactor_ {0},
dataSize_ {0} {};
radial_ {},
dataSize_ {0}
{
}
~RadialDataPacketImpl() = default;
uint16_t packetCode_;

View file

@ -38,7 +38,9 @@ public:
numberOfRows_ {0},
packagingDescriptor_ {0},
row_ {},
dataSize_ {0} {};
dataSize_ {0}
{
}
~RasterDataPacketImpl() = default;
uint16_t packetCode_;

View file

@ -19,7 +19,9 @@ class SetColorLevelPacketImpl
{
public:
explicit SetColorLevelPacketImpl() :
packetCode_ {}, colorValueIndicator_ {}, valueOfContour_ {} {};
packetCode_ {0}, colorValueIndicator_ {0}, valueOfContour_ {0}
{
}
~SetColorLevelPacketImpl() = default;
uint16_t packetCode_;

View file

@ -19,12 +19,14 @@ class TextAndSpecialSymbolPacketImpl
{
public:
explicit TextAndSpecialSymbolPacketImpl() :
packetCode_ {},
lengthOfBlock_ {},
valueOfText_ {},
startI_ {},
startJ_ {},
characters_ {} {};
packetCode_ {0},
lengthOfBlock_ {0},
valueOfText_ {0},
startI_ {0},
startJ_ {0},
characters_ {}
{
}
~TextAndSpecialSymbolPacketImpl() = default;
uint16_t packetCode_;

View file

@ -19,12 +19,14 @@ class UnlinkedContourVectorPacketImpl
{
public:
explicit UnlinkedContourVectorPacketImpl() :
packetCode_ {},
lengthOfVectors_ {},
packetCode_ {0},
lengthOfVectors_ {0},
beginI_ {},
beginJ_ {},
endI_ {},
endJ_ {} {};
endJ_ {}
{
}
~UnlinkedContourVectorPacketImpl() = default;
uint16_t packetCode_;

View file

@ -19,13 +19,15 @@ class UnlinkedVectorPacketImpl
{
public:
explicit UnlinkedVectorPacketImpl() :
packetCode_ {},
lengthOfBlock_ {},
valueOfVector_ {},
packetCode_ {0},
lengthOfBlock_ {0},
valueOfVector_ {0},
beginI_ {},
beginJ_ {},
endI_ {},
endJ_ {} {};
endJ_ {}
{
}
~UnlinkedVectorPacketImpl() = default;
uint16_t packetCode_;

View file

@ -34,7 +34,9 @@ public:
dateTime_ {},
bbbIndicator_ {},
productCategory_ {},
productDesignator_ {} {};
productDesignator_ {}
{
}
~WmoHeaderImpl() = default;
std::string sequenceNumber_;