Merge branch 'develop' into bugfix/bufr_memory_leak

This commit is contained in:
Eugen Betke 2024-10-23 17:27:48 +02:00
commit dfb20eeb8d
188 changed files with 815 additions and 886 deletions

View File

@ -17,10 +17,14 @@ class grib_accessor
{ {
public: public:
grib_accessor() : grib_accessor() :
context_(nullptr), name_(nullptr), class_name_(nullptr), name_space_(nullptr), h_(nullptr), creator_(nullptr), length_(0), offset_(0), parent_(nullptr), next_(nullptr), previous_(nullptr), flags_(0), sub_section_(nullptr), dirty_(0), same_(nullptr), loop_(0), vvalue_(nullptr), set_(nullptr), parent_as_attribute_(nullptr) {} context_(nullptr), name_(nullptr), class_name_(nullptr), name_space_(nullptr), h_(nullptr),
creator_(nullptr), length_(0), offset_(0), parent_(nullptr), next_(nullptr), previous_(nullptr),
flags_(0), sub_section_(nullptr), dirty_(0), same_(nullptr), loop_(0), vvalue_(nullptr), set_(nullptr), parent_as_attribute_(nullptr) {}
grib_accessor(const char* name) : grib_accessor(const char* name) :
context_(nullptr), name_(name), class_name_(nullptr), name_space_(nullptr), h_(nullptr), creator_(nullptr), length_(0), offset_(0), parent_(nullptr), next_(nullptr), previous_(nullptr), flags_(0), sub_section_(nullptr), dirty_(0), same_(nullptr), loop_(0), vvalue_(nullptr), set_(nullptr), parent_as_attribute_(nullptr) {} context_(nullptr), name_(name), class_name_(nullptr), name_space_(nullptr), h_(nullptr),
creator_(nullptr), length_(0), offset_(0), parent_(nullptr), next_(nullptr), previous_(nullptr),
flags_(0), sub_section_(nullptr), dirty_(0), same_(nullptr), loop_(0), vvalue_(nullptr), set_(nullptr), parent_as_attribute_(nullptr) {}
virtual ~grib_accessor() {} virtual ~grib_accessor() {}
virtual void init_accessor(const long, grib_arguments*) = 0; virtual void init_accessor(const long, grib_arguments*) = 0;
@ -78,34 +82,28 @@ public:
public: public:
// TODO(maee): make private // TODO(maee): make private
grib_context* context_; grib_context* context_ = nullptr;
const char* name_; /** < name of the accessor */ const char* name_ = nullptr; // name of the accessor
const char* class_name_; /** < name of the class (Artifact from C version of ecCodes) */ const char* class_name_ = nullptr; // name of the class (Artifact from C version of ecCodes)
const char* name_space_; /** < namespace to which the accessor belongs */ const char* name_space_ = nullptr; // namespace to which the accessor belongs
grib_handle* h_; grib_handle* h_ = nullptr;
grib_action* creator_; /** < action that created the accessor */ grib_action* creator_ = nullptr; // action that created the accessor
long length_; /** < byte length of the accessor */ long length_ = 0; // byte length of the accessor
long offset_; /** < offset of the data in the buffer */ long offset_ = 0; // offset of the data in the buffer
grib_section* parent_; /** < section to which the accessor is attached */ grib_section* parent_ = nullptr; // section to which the accessor is attached
grib_accessor* next_; /** < next accessor in list */ grib_accessor* next_ = nullptr; // next accessor in list
grib_accessor* previous_; /** < next accessor in list */ grib_accessor* previous_ = nullptr; // next accessor in list
unsigned long flags_; /** < Various flags */ unsigned long flags_ = 0; // Various flags
grib_section* sub_section_; grib_section* sub_section_ = nullptr;
const char* all_names_[MAX_ACCESSOR_NAMES] = { const char* all_names_[MAX_ACCESSOR_NAMES] = {0,}; // name of the accessor
0, const char* all_name_spaces_[MAX_ACCESSOR_NAMES] = {0,}; // namespace to which the accessor belongs
}; /** < name of the accessor */ int dirty_ = 0;
const char* all_name_spaces_[MAX_ACCESSOR_NAMES] = {
0,
}; /** < namespace to which the accessor belongs */
int dirty_;
grib_accessor* same_; /** < accessors with the same name */ grib_accessor* same_ = nullptr; // accessors with the same name
long loop_; /** < used in lists */ long loop_ = 0; // used in lists
grib_virtual_value* vvalue_; /** < virtual value used when transient flag on **/ grib_virtual_value* vvalue_ = nullptr; // virtual value used when transient flag on
const char* set_; const char* set_ = nullptr;
grib_accessor* attributes_[MAX_ACCESSOR_ATTRIBUTES] = { grib_accessor* attributes_[MAX_ACCESSOR_ATTRIBUTES] = {0,}; // attributes are accessors
0, grib_accessor* parent_as_attribute_ = nullptr;
}; /** < attributes are accessors */
grib_accessor* parent_as_attribute_;
}; };

View File

@ -21,7 +21,7 @@ public:
public: public:
// TODO(maee): make private // TODO(maee): make private
long* v_; long* v_ = nullptr;
long pack_index_; long pack_index_ = 0;
int number_of_elements_; int number_of_elements_ = 0;
}; };

View File

@ -21,6 +21,6 @@ public:
public: public:
// TODO(maee): make private // TODO(maee): make private
double* v_; double* v_ = nullptr;
int number_of_elements_; int number_of_elements_ = 0;
}; };

View File

@ -23,6 +23,6 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* owner_; const char* owner_ = nullptr;
int bit_index_; int bit_index_ = 0;
}; };

View File

@ -31,12 +31,12 @@ public:
int unpack_double_element_set(const size_t* index_array, size_t len, double* val_array) override; int unpack_double_element_set(const size_t* index_array, size_t len, double* val_array) override;
protected: protected:
const char* missing_value_; const char* missing_value_ = nullptr;
private: private:
const char* tableReference_; const char* tableReference_ = nullptr;
const char* offsetbsec_; const char* offsetbsec_ = nullptr;
const char* sLength_; const char* sLength_ = nullptr;
void compute_size(); void compute_size();
}; };

View File

@ -29,10 +29,10 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* argument_; const char* argument_ = nullptr;
long start_; long start_ = 0;
long len_; long len_ = 0;
double referenceValue_; double referenceValue_ = 0.;
double referenceValuePresent_; double referenceValuePresent_ = 0.;
double scale_; double scale_ = 0.;
}; };

View File

@ -23,6 +23,6 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* values_; const char* values_ = nullptr;
const char* bits_per_value_; const char* bits_per_value_ = nullptr;
}; };

View File

@ -23,7 +23,7 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* year_; const char* year_ = nullptr;
const char* month_; const char* month_ = nullptr;
const char* day_; const char* day_ = nullptr;
}; };

View File

@ -47,53 +47,53 @@ public:
grib_vsarray* accessor_bufr_data_array_get_stringValues(); grib_vsarray* accessor_bufr_data_array_get_stringValues();
private: private:
const char* bufrDataEncodedName_; const char* bufrDataEncodedName_ = nullptr;
const char* numberOfSubsetsName_; const char* numberOfSubsetsName_ = nullptr;
const char* expandedDescriptorsName_; const char* expandedDescriptorsName_ = nullptr;
const char* flagsName_; const char* flagsName_ = nullptr;
const char* unitsName_; const char* unitsName_ = nullptr;
const char* elementsDescriptorsIndexName_; const char* elementsDescriptorsIndexName_ = nullptr;
const char* compressedDataName_; const char* compressedDataName_ = nullptr;
bufr_descriptors_array* expanded_; bufr_descriptors_array* expanded_ = nullptr;
grib_accessor_expanded_descriptors_t* expandedAccessor_; grib_accessor_expanded_descriptors_t* expandedAccessor_ = nullptr;
int* canBeMissing_; int* canBeMissing_ = nullptr;
long numberOfSubsets_; long numberOfSubsets_ = 0;
long compressedData_; long compressedData_ = 0;
grib_vdarray* numericValues_; grib_vdarray* numericValues_ = nullptr;
grib_vsarray* stringValues_; grib_vsarray* stringValues_ = nullptr;
grib_viarray* elementsDescriptorsIndex_; grib_viarray* elementsDescriptorsIndex_ = nullptr;
int do_decode_; int do_decode_ = 0;
int bitmapStartElementsDescriptorsIndex_; int bitmapStartElementsDescriptorsIndex_ = 0;
int bitmapCurrentElementsDescriptorsIndex_; int bitmapCurrentElementsDescriptorsIndex_ = 0;
int bitmapSize_; int bitmapSize_ = 0;
int bitmapStart_; int bitmapStart_ = 0;
int bitmapCurrent_; int bitmapCurrent_ = 0;
grib_accessors_list* dataAccessors_; grib_accessors_list* dataAccessors_ = nullptr;
int unpackMode_; int unpackMode_ = 0;
int bitsToEndData_; int bitsToEndData_ = 0;
grib_section* dataKeys_; grib_section* dataKeys_ = nullptr;
double* inputBitmap_; double* inputBitmap_ = nullptr;
int nInputBitmap_; int nInputBitmap_ = 0;
int iInputBitmap_; int iInputBitmap_ = 0;
long* inputReplications_; long* inputReplications_ = nullptr;
int nInputReplications_; int nInputReplications_ = 0;
int iInputReplications_; int iInputReplications_ = 0;
long* inputExtendedReplications_; long* inputExtendedReplications_ = nullptr;
int nInputExtendedReplications_; int nInputExtendedReplications_ = 0;
int iInputExtendedReplications_; int iInputExtendedReplications_ = 0;
long* inputShortReplications_; long* inputShortReplications_ = nullptr;
int nInputShortReplications_; int nInputShortReplications_ = 0;
int iInputShortReplications_; int iInputShortReplications_ = 0;
grib_iarray* iss_list_; grib_iarray* iss_list_ = nullptr;
grib_trie_with_rank* dataAccessorsTrie_; grib_trie_with_rank* dataAccessorsTrie_ = nullptr;
grib_sarray* tempStrings_; grib_sarray* tempStrings_ = nullptr;
grib_vdarray* tempDoubleValues_; grib_vdarray* tempDoubleValues_ = nullptr;
int change_ref_value_operand_; int change_ref_value_operand_ = 0;
size_t refValListSize_; size_t refValListSize_ = 0;
long* refValList_; long* refValList_ = nullptr;
long refValIndex_; long refValIndex_ = 0;
bufr_tableb_override* tableb_override_; bufr_tableb_override* tableb_override_ = nullptr;
int set_to_missing_if_out_of_range_; int set_to_missing_if_out_of_range_ = 0;
void restart_bitmap(); void restart_bitmap();
void cancel_bitmap(); void cancel_bitmap();

View File

@ -48,14 +48,14 @@ public:
void elementsDescriptorsIndex(grib_viarray* elementsDescriptorsIndex) { elementsDescriptorsIndex_ = elementsDescriptorsIndex; } void elementsDescriptorsIndex(grib_viarray* elementsDescriptorsIndex) { elementsDescriptorsIndex_ = elementsDescriptorsIndex; }
private: private:
long index_; long index_ = 0;
int type_; int type_ = 0;
long compressedData_; long compressedData_ = 0;
long subsetNumber_; long subsetNumber_ = 0;
long numberOfSubsets_; long numberOfSubsets_ = 0;
bufr_descriptors_array* descriptors_; bufr_descriptors_array* descriptors_ = nullptr;
grib_vdarray* numericValues_; grib_vdarray* numericValues_ = nullptr;
grib_vsarray* stringValues_; grib_vsarray* stringValues_ = nullptr;
grib_viarray* elementsDescriptorsIndex_; grib_viarray* elementsDescriptorsIndex_ = nullptr;
char* cname_; char* cname_ = nullptr;
}; };

View File

@ -26,9 +26,9 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* dictionary_; const char* dictionary_ = nullptr;
const char* masterDir_; const char* masterDir_ = nullptr;
const char* localDir_; const char* localDir_ = nullptr;
grib_trie* load_bufr_elements_table(int* err); grib_trie* load_bufr_elements_table(int* err);
int bufr_get_from_table(bufr_descriptor* v); int bufr_get_from_table(bufr_descriptor* v);

View File

@ -23,16 +23,16 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* doExtractSubsets_; const char* doExtractSubsets_ = nullptr;
const char* numberOfSubsets_; const char* numberOfSubsets_ = nullptr;
const char* extractSubsetList_; const char* extractSubsetList_ = nullptr;
const char* extractAreaWestLongitude_; const char* extractAreaWestLongitude_ = nullptr;
const char* extractAreaEastLongitude_; const char* extractAreaEastLongitude_ = nullptr;
const char* extractAreaNorthLatitude_; const char* extractAreaNorthLatitude_ = nullptr;
const char* extractAreaSouthLatitude_; const char* extractAreaSouthLatitude_ = nullptr;
const char* extractAreaLongitudeRank_; const char* extractAreaLongitudeRank_ = nullptr;
const char* extractAreaLatitudeRank_; const char* extractAreaLatitudeRank_ = nullptr;
const char* extractedAreaNumberOfSubsets_; const char* extractedAreaNumberOfSubsets_ = nullptr;
int select_area(); int select_area();
}; };

View File

@ -23,9 +23,9 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* doExtractSubsets_; const char* doExtractSubsets_ = nullptr;
const char* numberOfSubsets_; const char* numberOfSubsets_ = nullptr;
const char* extractSubsetList_; const char* extractSubsetList_ = nullptr;
int select_datetime(); int select_datetime();
}; };

View File

@ -23,10 +23,10 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* numericValues_; const char* numericValues_ = nullptr;
const char* pack_; const char* pack_ = nullptr;
grib_accessor* numericValuesAccessor_; grib_accessor* numericValuesAccessor_ = nullptr;
grib_accessor* packAccessor_; grib_accessor* packAccessor_ = nullptr;
void get_accessors(); void get_accessors();
}; };

View File

@ -23,12 +23,12 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* doExtractSubsets_; const char* doExtractSubsets_ = nullptr;
const char* numberOfSubsets_; const char* numberOfSubsets_ = nullptr;
const char* extractSubsetList_; const char* extractSubsetList_ = nullptr;
const char* simpleThinningStart_; const char* simpleThinningStart_ = nullptr;
const char* simpleThinningMissingRadius_; const char* simpleThinningMissingRadius_ = nullptr;
const char* simpleThinningSkip_; const char* simpleThinningSkip_ = nullptr;
int apply_thinning(); int apply_thinning();
}; };

View File

@ -26,8 +26,8 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* dataAccessorName_; const char* dataAccessorName_ = nullptr;
grib_accessor* dataAccessor_; grib_accessor* dataAccessor_ = nullptr;
grib_accessor* get_accessor(); grib_accessor* get_accessor();
}; };

View File

@ -25,8 +25,8 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* expandedDescriptors_; const char* expandedDescriptors_ = nullptr;
grib_accessor* expandedDescriptorsAccessor_; grib_accessor* expandedDescriptorsAccessor_ = nullptr;
grib_accessor* get_accessor(); grib_accessor* get_accessor();
}; };

View File

@ -23,6 +23,5 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
/* Members defined in cf_var_name */ const char* defaultKey_ = nullptr;
const char* defaultKey_;
}; };

View File

@ -24,8 +24,8 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* values_; const char* values_ = nullptr;
const char* Ni_; const char* Ni_ = nullptr;
const char* Nj_; const char* Nj_ = nullptr;
const char* alternativeRowScanning_; const char* alternativeRowScanning_ = nullptr;
}; };

View File

@ -24,12 +24,12 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* values_; const char* values_ = nullptr;
const char* Ni_; const char* Ni_ = nullptr;
const char* Nj_; const char* Nj_ = nullptr;
const char* i_scans_negatively_; const char* i_scans_negatively_ = nullptr;
const char* j_scans_positively_; const char* j_scans_positively_ = nullptr;
const char* first_; const char* first_ = nullptr;
const char* last_; const char* last_ = nullptr;
const char* axis_; const char* axis_ = nullptr;
}; };

View File

@ -24,13 +24,13 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* dateLocal_; const char* dateLocal_ = nullptr;
const char* timeLocal_; const char* timeLocal_ = nullptr;
const char* numForecasts_; const char* numForecasts_ = nullptr;
const char* year_; const char* year_ = nullptr;
const char* month_; const char* month_ = nullptr;
const char* day_; const char* day_ = nullptr;
const char* hour_; const char* hour_ = nullptr;
const char* minute_; const char* minute_ = nullptr;
const char* second_; const char* second_ = nullptr;
}; };

View File

@ -23,7 +23,7 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* tablename_; const char* tablename_ = nullptr;
int grib_get_codeflag(long code, char* codename); int grib_get_codeflag(long code, char* codename);
}; };

View File

@ -33,11 +33,11 @@ public:
grib_codetable* codetable() const { return table_; } grib_codetable* codetable() const { return table_; }
private: private:
grib_codetable* table_; grib_codetable* table_ = nullptr;
const char* tablename_; const char* tablename_ = nullptr;
const char* masterDir_; const char* masterDir_ = nullptr;
const char* localDir_; const char* localDir_ = nullptr;
int table_loaded_; int table_loaded_ = 0;
grib_codetable* load_table(); grib_codetable* load_table();
}; };

View File

@ -23,5 +23,5 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* codetable_; const char* codetable_ = nullptr;
}; };

View File

@ -23,5 +23,5 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* codetable_; const char* codetable_ = nullptr;
}; };

View File

@ -23,8 +23,8 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* bitmap_; const char* bitmap_ = nullptr;
const char* unusedBitsInBitmap_; const char* unusedBitsInBitmap_ = nullptr;
const char* numberOfDataPoints_; const char* numberOfDataPoints_ = nullptr;
const char* missingValueManagementUsed_; const char* missingValueManagementUsed_ = nullptr;
}; };

View File

@ -30,12 +30,12 @@ public:
int unpack_double_element_set(const size_t* index_array, size_t len, double* val_array) override; int unpack_double_element_set(const size_t* index_array, size_t len, double* val_array) override;
private: private:
const char* coded_values_; const char* coded_values_ = nullptr;
const char* bitmap_; const char* bitmap_ = nullptr;
const char* missing_value_; const char* missing_value_ = nullptr;
const char* number_of_data_points_; const char* number_of_data_points_ = nullptr;
const char* number_of_values_; const char* number_of_values_ = nullptr;
const char* binary_scale_factor_; const char* binary_scale_factor_ = nullptr;
template <typename T> int unpack(T* val, size_t* len); template <typename T> int unpack(T* val, size_t* len);
}; };

View File

@ -29,11 +29,11 @@ public:
int unpack_double_element_set(const size_t* index_array, size_t len, double* val_array) override; int unpack_double_element_set(const size_t* index_array, size_t len, double* val_array) override;
private: private:
const char* values_; const char* values_ = nullptr;
const char* numberOfRows_; const char* numberOfRows_ = nullptr;
const char* numberOfColumns_; const char* numberOfColumns_ = nullptr;
const char* numberOfPoints_; const char* numberOfPoints_ = nullptr;
const char* pl_; const char* pl_ = nullptr;
template <typename T> int unpack(T* val, size_t* len); template <typename T> int unpack(T* val, size_t* len);
}; };

View File

@ -28,11 +28,11 @@ public:
int unpack_double_element_set(const size_t* index_array, size_t len, double* val_array) override; int unpack_double_element_set(const size_t* index_array, size_t len, double* val_array) override;
private: private:
const char* coded_values_; const char* coded_values_ = nullptr;
const char* bitmap_; const char* bitmap_ = nullptr;
const char* missing_value_; const char* missing_value_ = nullptr;
const char* binary_scale_factor_; const char* binary_scale_factor_ = nullptr;
const char* numberOfRows_; const char* numberOfRows_ = nullptr;
const char* numberOfColumns_; const char* numberOfColumns_ = nullptr;
const char* numberOfPoints_; const char* numberOfPoints_ = nullptr;
}; };

View File

@ -28,16 +28,16 @@ public:
int unpack_double_element_set(const size_t* index_array, size_t len, double* val_array) override; int unpack_double_element_set(const size_t* index_array, size_t len, double* val_array) override;
private: private:
const char* number_of_values_; const char* number_of_values_ = nullptr;
const char* reference_value_; const char* reference_value_ = nullptr;
const char* binary_scale_factor_; const char* binary_scale_factor_ = nullptr;
const char* decimal_scale_factor_; const char* decimal_scale_factor_ = nullptr;
const char* optimize_scaling_factor_; const char* optimize_scaling_factor_ = nullptr;
const char* bits_per_value_; const char* bits_per_value_ = nullptr;
const char* number_of_data_points_; const char* number_of_data_points_ = nullptr;
const char* ccsds_flags_; const char* ccsds_flags_ = nullptr;
const char* ccsds_block_size_; const char* ccsds_block_size_ = nullptr;
const char* ccsds_rsi_; const char* ccsds_rsi_ = nullptr;
template <typename T> int unpack(T* val, size_t* len); template <typename T> int unpack(T* val, size_t* len);
}; };

View File

@ -30,18 +30,18 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
protected: protected:
const char* sub_j_; const char* sub_j_ = nullptr;
const char* sub_k_; const char* sub_k_ = nullptr;
const char* sub_m_; const char* sub_m_ = nullptr;
private: private:
const char* GRIBEX_sh_bug_present_; const char* GRIBEX_sh_bug_present_ = nullptr;
const char* ieee_floats_; const char* ieee_floats_ = nullptr;
const char* laplacianOperatorIsSet_; const char* laplacianOperatorIsSet_ = nullptr;
const char* laplacianOperator_; const char* laplacianOperator_ = nullptr;
const char* pen_j_; const char* pen_j_ = nullptr;
const char* pen_k_; const char* pen_k_ = nullptr;
const char* pen_m_; const char* pen_m_ = nullptr;
template <typename T> int unpack_real(T* val, size_t* len); template <typename T> int unpack_real(T* val, size_t* len);
}; };

View File

@ -24,7 +24,7 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* missing_value_; const char* missing_value_ = nullptr;
const char* numberOfPoints_; const char* numberOfPoints_ = nullptr;
const char* bitmap_; const char* bitmap_ = nullptr;
}; };

View File

@ -22,9 +22,9 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* N_; const char* N_ = nullptr;
const char* half_byte_; const char* half_byte_ = nullptr;
const char* packingType_; const char* packingType_ = nullptr;
const char* ieee_packing_; const char* ieee_packing_ = nullptr;
const char* precision_; const char* precision_ = nullptr;
}; };

View File

@ -27,20 +27,20 @@ public:
int unpack_double_element_set(const size_t* index_array, size_t len, double* val_array) override; int unpack_double_element_set(const size_t* index_array, size_t len, double* val_array) override;
private: private:
const char* half_byte_; const char* half_byte_ = nullptr;
const char* packingType_; const char* packingType_ = nullptr;
const char* ieee_packing_; const char* ieee_packing_ = nullptr;
const char* precision_; const char* precision_ = nullptr;
const char* widthOfFirstOrderValues_; const char* widthOfFirstOrderValues_ = nullptr;
const char* N1_; const char* N1_ = nullptr;
const char* N2_; const char* N2_ = nullptr;
const char* numberOfGroups_; const char* numberOfGroups_ = nullptr;
const char* numberOfSecondOrderPackedValues_; const char* numberOfSecondOrderPackedValues_ = nullptr;
const char* extraValues_; const char* extraValues_ = nullptr;
const char* pl_; const char* pl_ = nullptr;
const char* Ni_; const char* Ni_ = nullptr;
const char* Nj_; const char* Nj_ = nullptr;
const char* jPointsAreConsecutive_; const char* jPointsAreConsecutive_ = nullptr;
const char* bitmap_; const char* bitmap_ = nullptr;
const char* groupWidth_; const char* groupWidth_ = nullptr;
}; };

View File

@ -31,31 +31,31 @@ private:
int unpack(double*, float*, size_t*); int unpack(double*, float*, size_t*);
private: private:
const char* half_byte_; const char* half_byte_ = nullptr;
const char* packingType_; const char* packingType_ = nullptr;
const char* ieee_packing_; const char* ieee_packing_ = nullptr;
const char* precision_; const char* precision_ = nullptr;
const char* widthOfFirstOrderValues_; const char* widthOfFirstOrderValues_ = nullptr;
const char* firstOrderValues_; const char* firstOrderValues_ = nullptr;
const char* N1_; const char* N1_ = nullptr;
const char* N2_; const char* N2_ = nullptr;
const char* numberOfGroups_; const char* numberOfGroups_ = nullptr;
const char* codedNumberOfGroups_; const char* codedNumberOfGroups_ = nullptr;
const char* numberOfSecondOrderPackedValues_; const char* numberOfSecondOrderPackedValues_ = nullptr;
const char* extraValues_; const char* extraValues_ = nullptr;
const char* groupWidths_; const char* groupWidths_ = nullptr;
const char* widthOfWidths_; const char* widthOfWidths_ = nullptr;
const char* groupLengths_; const char* groupLengths_ = nullptr;
const char* widthOfLengths_; const char* widthOfLengths_ = nullptr;
const char* NL_; const char* NL_ = nullptr;
const char* SPD_; const char* SPD_ = nullptr;
const char* widthOfSPD_; const char* widthOfSPD_ = nullptr;
const char* orderOfSPD_; const char* orderOfSPD_ = nullptr;
const char* numberOfPoints_; const char* numberOfPoints_ = nullptr;
const char* dataFlag_; const char* dataFlag_ = nullptr;
double* dvalues_; double* dvalues_ = nullptr;
float* fvalues_; float* fvalues_ = nullptr;
int double_dirty_; int double_dirty_ = 0;
int float_dirty_; int float_dirty_ = 0;
size_t size_; size_t size_ = 0;
}; };

View File

@ -26,22 +26,22 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* half_byte_; const char* half_byte_ = nullptr;
const char* packingType_; const char* packingType_ = nullptr;
const char* ieee_packing_; const char* ieee_packing_ = nullptr;
const char* precision_; const char* precision_ = nullptr;
const char* widthOfFirstOrderValues_; const char* widthOfFirstOrderValues_ = nullptr;
const char* N1_; const char* N1_ = nullptr;
const char* N2_; const char* N2_ = nullptr;
const char* numberOfGroups_; const char* numberOfGroups_ = nullptr;
const char* numberOfSecondOrderPackedValues_; const char* numberOfSecondOrderPackedValues_ = nullptr;
const char* extraValues_; const char* extraValues_ = nullptr;
const char* pl_; const char* pl_ = nullptr;
const char* Ni_; const char* Ni_ = nullptr;
const char* Nj_; const char* Nj_ = nullptr;
const char* jPointsAreConsecutive_; const char* jPointsAreConsecutive_ = nullptr;
const char* bitmap_; const char* bitmap_ = nullptr;
const char* groupWidths_; const char* groupWidths_ = nullptr;
template <typename T> int unpack_real(T* values, size_t* len); template <typename T> int unpack_real(T* values, size_t* len);
}; };

View File

@ -26,22 +26,22 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* half_byte_; const char* half_byte_ = nullptr;
const char* packingType_; const char* packingType_ = nullptr;
const char* ieee_packing_; const char* ieee_packing_ = nullptr;
const char* precision_; const char* precision_ = nullptr;
const char* widthOfFirstOrderValues_; const char* widthOfFirstOrderValues_ = nullptr;
const char* N1_; const char* N1_ = nullptr;
const char* N2_; const char* N2_ = nullptr;
const char* numberOfGroups_; const char* numberOfGroups_ = nullptr;
const char* numberOfSecondOrderPackedValues_; const char* numberOfSecondOrderPackedValues_ = nullptr;
const char* extraValues_; const char* extraValues_ = nullptr;
const char* pl_; const char* pl_ = nullptr;
const char* Ni_; const char* Ni_ = nullptr;
const char* Nj_; const char* Nj_ = nullptr;
const char* jPointsAreConsecutive_; const char* jPointsAreConsecutive_ = nullptr;
const char* bitmap_; const char* bitmap_ = nullptr;
const char* groupWidths_; const char* groupWidths_ = nullptr;
template <typename T> int unpack_real(T* values, size_t* len); template <typename T> int unpack_real(T* values, size_t* len);
}; };

View File

@ -23,5 +23,5 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* number_of_ones_; const char* number_of_ones_ = nullptr;
}; };

View File

@ -23,8 +23,8 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
protected: protected:
const char* half_byte_; const char* half_byte_ = nullptr;
const char* packingType_; const char* packingType_ = nullptr;
const char* ieee_packing_; const char* ieee_packing_ = nullptr;
const char* precision_; const char* precision_ = nullptr;
}; };

View File

@ -28,26 +28,26 @@ public:
int unpack_double_element_set(const size_t* index_array, size_t len, double* val_array) override; int unpack_double_element_set(const size_t* index_array, size_t len, double* val_array) override;
private: private:
const char* numberOfValues_; const char* numberOfValues_ = nullptr;
const char* bits_per_value_; const char* bits_per_value_ = nullptr;
const char* reference_value_; const char* reference_value_ = nullptr;
const char* binary_scale_factor_; const char* binary_scale_factor_ = nullptr;
const char* decimal_scale_factor_; const char* decimal_scale_factor_ = nullptr;
const char* optimize_scale_factor_; const char* optimize_scale_factor_ = nullptr;
const char* typeOfOriginalFieldValues_; const char* typeOfOriginalFieldValues_ = nullptr;
const char* groupSplittingMethodUsed_; const char* groupSplittingMethodUsed_ = nullptr;
const char* missingValueManagementUsed_; const char* missingValueManagementUsed_ = nullptr;
const char* primaryMissingValueSubstitute_; const char* primaryMissingValueSubstitute_ = nullptr;
const char* secondaryMissingValueSubstitute_; const char* secondaryMissingValueSubstitute_ = nullptr;
const char* numberOfGroupsOfDataValues_; const char* numberOfGroupsOfDataValues_ = nullptr;
const char* referenceForGroupWidths_; const char* referenceForGroupWidths_ = nullptr;
const char* numberOfBitsUsedForTheGroupWidths_; const char* numberOfBitsUsedForTheGroupWidths_ = nullptr;
const char* referenceForGroupLengths_; const char* referenceForGroupLengths_ = nullptr;
const char* lengthIncrementForTheGroupLengths_; const char* lengthIncrementForTheGroupLengths_ = nullptr;
const char* trueLengthOfLastGroup_; const char* trueLengthOfLastGroup_ = nullptr;
const char* numberOfBitsUsedForTheScaledGroupLengths_; const char* numberOfBitsUsedForTheScaledGroupLengths_ = nullptr;
const char* orderOfSpatialDifferencing_; const char* orderOfSpatialDifferencing_ = nullptr;
const char* numberOfOctetsExtraDescriptors_; const char* numberOfOctetsExtraDescriptors_ = nullptr;
template <typename T> int unpack(T* val, size_t* len); template <typename T> int unpack(T* val, size_t* len);
}; };

View File

@ -53,19 +53,19 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* ieee_floats_; const char* ieee_floats_ = nullptr;
const char* laplacianOperatorIsSet_; const char* laplacianOperatorIsSet_ = nullptr;
const char* laplacianOperator_; const char* laplacianOperator_ = nullptr;
const char* biFourierTruncationType_; const char* biFourierTruncationType_ = nullptr;
const char* sub_i_; const char* sub_i_ = nullptr;
const char* sub_j_; const char* sub_j_ = nullptr;
const char* bif_i_; const char* bif_i_ = nullptr;
const char* bif_j_; const char* bif_j_ = nullptr;
const char* biFourierSubTruncationType_; const char* biFourierSubTruncationType_ = nullptr;
const char* biFourierDoNotPackAxes_; const char* biFourierDoNotPackAxes_ = nullptr;
const char* biFourierMakeTemplate_; const char* biFourierMakeTemplate_ = nullptr;
const char* totalNumberOfValuesInUnpackedSubset_; const char* totalNumberOfValuesInUnpackedSubset_ = nullptr;
//const char* numberOfValues_; //const char* numberOfValues_ = nullptr;
bif_trunc_t* new_bif_trunc(); bif_trunc_t* new_bif_trunc();
}; };

View File

@ -23,5 +23,5 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* numberOfValues_; const char* numberOfValues_ = nullptr;
}; };

View File

@ -23,5 +23,5 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* number_of_values_; const char* number_of_values_ = nullptr;
}; };

View File

@ -24,6 +24,6 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* numberOfValues_; const char* numberOfValues_ = nullptr;
const char* numberOfDataPoints_; const char* numberOfDataPoints_ = nullptr;
}; };

View File

@ -24,6 +24,6 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* pre_processing_; const char* pre_processing_ = nullptr;
const char* pre_processing_parameter_; const char* pre_processing_parameter_ = nullptr;
}; };

View File

@ -27,13 +27,13 @@ public:
int unpack_double_element_set(const size_t* index_array, size_t len, double* val_array) override; int unpack_double_element_set(const size_t* index_array, size_t len, double* val_array) override;
private: private:
const char* type_of_compression_used_; const char* type_of_compression_used_ = nullptr;
const char* target_compression_ratio_; const char* target_compression_ratio_ = nullptr;
const char* ni_; const char* ni_ = nullptr;
const char* nj_; const char* nj_ = nullptr;
const char* list_defining_points_; const char* list_defining_points_ = nullptr;
const char* number_of_data_points_; const char* number_of_data_points_ = nullptr;
const char* scanning_mode_; const char* scanning_mode_ = nullptr;
int jpeg_lib_; int jpeg_lib_ = 0;
const char* dump_jpg_; const char* dump_jpg_ = nullptr;
}; };

View File

@ -26,14 +26,14 @@ public:
int unpack_double_element_set(const size_t* index_array, size_t len, double* val_array) override; int unpack_double_element_set(const size_t* index_array, size_t len, double* val_array) override;
private: private:
const char* number_of_values_; const char* number_of_values_ = nullptr;
const char* reference_value_; const char* reference_value_ = nullptr;
const char* binary_scale_factor_; const char* binary_scale_factor_ = nullptr;
const char* decimal_scale_factor_; const char* decimal_scale_factor_ = nullptr;
const char* bits_per_value_; const char* bits_per_value_ = nullptr;
const char* ni_; const char* ni_ = nullptr;
const char* nj_; const char* nj_ = nullptr;
const char* list_defining_points_; const char* list_defining_points_ = nullptr;
const char* number_of_data_points_; const char* number_of_data_points_ = nullptr;
const char* scanning_mode_; const char* scanning_mode_ = nullptr;
}; };

View File

@ -26,6 +26,6 @@ public:
int unpack_double_element_set(const size_t* index_array, size_t len, double* val_array) override; int unpack_double_element_set(const size_t* index_array, size_t len, double* val_array) override;
private: private:
const char* number_of_values_; const char* number_of_values_ = nullptr;
const char* precision_; const char* precision_ = nullptr;
}; };

View File

@ -24,10 +24,10 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* number_of_values_; const char* number_of_values_ = nullptr;
const char* bits_per_value_; const char* bits_per_value_ = nullptr;
const char* max_level_value_; const char* max_level_value_ = nullptr;
const char* number_of_level_values_; const char* number_of_level_values_ = nullptr;
const char* decimal_scale_factor_; const char* decimal_scale_factor_ = nullptr;
const char* level_values_; const char* level_values_ = nullptr;
}; };

View File

@ -24,8 +24,8 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
protected: protected:
const char* primary_bitmap_; const char* primary_bitmap_ = nullptr;
const char* secondary_bitmap_; const char* secondary_bitmap_ = nullptr;
const char* missing_value_; const char* missing_value_ = nullptr;
const char* expand_by_; const char* expand_by_ = nullptr;
}; };

View File

@ -23,14 +23,14 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* GRIBEX_sh_bug_present_; const char* GRIBEX_sh_bug_present_ = nullptr;
const char* ieee_floats_; const char* ieee_floats_ = nullptr;
const char* laplacianOperatorIsSet_; const char* laplacianOperatorIsSet_ = nullptr;
const char* laplacianOperator_; const char* laplacianOperator_ = nullptr;
const char* sub_j_; const char* sub_j_ = nullptr;
const char* sub_k_; const char* sub_k_ = nullptr;
const char* sub_m_; const char* sub_m_ = nullptr;
const char* pen_j_; const char* pen_j_ = nullptr;
const char* pen_k_; const char* pen_k_ = nullptr;
const char* pen_m_; const char* pen_m_ = nullptr;
}; };

View File

@ -23,14 +23,14 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* GRIBEX_sh_bug_present_; const char* GRIBEX_sh_bug_present_ = nullptr;
const char* ieee_floats_; const char* ieee_floats_ = nullptr;
const char* laplacianOperatorIsSet_; const char* laplacianOperatorIsSet_ = nullptr;
const char* laplacianOperator_; const char* laplacianOperator_ = nullptr;
const char* sub_j_; const char* sub_j_ = nullptr;
const char* sub_k_; const char* sub_k_ = nullptr;
const char* sub_m_; const char* sub_m_ = nullptr;
const char* pen_j_; const char* pen_j_ = nullptr;
const char* pen_k_; const char* pen_k_ = nullptr;
const char* pen_m_; const char* pen_m_ = nullptr;
}; };

View File

@ -24,6 +24,6 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
protected: protected:
const char* coded_values_; const char* coded_values_ = nullptr;
const char* real_part_; const char* real_part_ = nullptr;
}; };

View File

@ -29,16 +29,16 @@ public:
int unpack_double_subarray(double* val, size_t start, size_t len) override; int unpack_double_subarray(double* val, size_t start, size_t len) override;
protected: protected:
int edition_; int edition_ = 0;
const char* units_factor_; const char* units_factor_ = nullptr;
const char* units_bias_; const char* units_bias_ = nullptr;
const char* changing_precision_; const char* changing_precision_ = nullptr;
const char* number_of_values_; const char* number_of_values_ = nullptr;
const char* bits_per_value_; const char* bits_per_value_ = nullptr;
const char* reference_value_; const char* reference_value_ = nullptr;
const char* binary_scale_factor_; const char* binary_scale_factor_ = nullptr;
const char* decimal_scale_factor_; const char* decimal_scale_factor_ = nullptr;
const char* optimize_scaling_factor_; const char* optimize_scaling_factor_ = nullptr;
private: private:
template <typename T> int unpack(T* val, size_t* len); template <typename T> int unpack(T* val, size_t* len);

View File

@ -23,8 +23,8 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* values_; const char* values_ = nullptr;
const char* bits_per_value_; const char* bits_per_value_ = nullptr;
const char* changing_precision_; const char* changing_precision_ = nullptr;
const char* decimal_scale_factor_; const char* decimal_scale_factor_ = nullptr;
}; };

View File

@ -27,11 +27,11 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* dictionary_; const char* dictionary_ = nullptr;
const char* key_; const char* key_ = nullptr;
long column_; long column_ = 0;
const char* masterDir_; const char* masterDir_ = nullptr;
const char* localDir_; const char* localDir_ = nullptr;
grib_trie* load_dictionary(int* err); grib_trie* load_dictionary(int* err);
}; };

View File

@ -23,5 +23,5 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* accessor_; const char* accessor_ = nullptr;
}; };

View File

@ -22,6 +22,6 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* val_; const char* val_ = nullptr;
double divisor_; double divisor_ = 0.;
}; };

View File

@ -24,6 +24,6 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* array_; const char* array_ = nullptr;
long element_; long element_ = 0;
}; };

View File

@ -22,5 +22,5 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
protected: protected:
grib_arguments* arg_; // expression to be evaluated grib_arguments* arg_ = nullptr; // expression to be evaluated
}; };

View File

@ -41,15 +41,15 @@ public:
bufr_descriptors_array* grib_accessor_expanded_descriptors_get_expanded(int* err); bufr_descriptors_array* grib_accessor_expanded_descriptors_get_expanded(int* err);
private: private:
const char* unexpandedDescriptors_; const char* unexpandedDescriptors_ = nullptr;
const char* sequence_; const char* sequence_ = nullptr;
const char* expandedName_; const char* expandedName_ = nullptr;
const char* tablesAccessorName_; const char* tablesAccessorName_ = nullptr;
bufr_descriptors_array* expanded_; bufr_descriptors_array* expanded_ = nullptr;
int rank_; int rank_ = 0;
grib_accessor_expanded_descriptors_t* expandedAccessor_; grib_accessor_expanded_descriptors_t* expandedAccessor_ = nullptr;
int do_expand_; int do_expand_ = 0;
grib_accessor* tablesAccessor_; grib_accessor* tablesAccessor_ = nullptr;
int expand(); int expand();
void __expand(bufr_descriptors_array* unexpanded, bufr_descriptors_array* expanded, change_coding_params* ccp, int* err); void __expand(bufr_descriptors_array* unexpanded, bufr_descriptors_array* expanded, change_coding_params* ccp, int* err);

View File

@ -25,6 +25,6 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* scaleFactor_; const char* scaleFactor_ = nullptr;
const char* scaledValue_; const char* scaledValue_ = nullptr;
}; };

View File

@ -23,5 +23,5 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* sec4_length_; const char* sec4_length_ = nullptr;
}; };

View File

@ -23,5 +23,5 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* total_length_; const char* total_length_ = nullptr;
}; };

View File

@ -24,5 +24,5 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* unusedBits_; const char* unusedBits_ = nullptr;
}; };

View File

@ -25,8 +25,8 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
protected: protected:
const char* century_; const char* century_ = nullptr;
const char* year_; const char* year_ = nullptr;
const char* month_; const char* month_ = nullptr;
const char* day_; const char* day_ = nullptr;
}; };

View File

@ -25,5 +25,5 @@ public:
int compare(grib_accessor*) override; int compare(grib_accessor*) override;
private: private:
const char* verifyingMonth_; const char* verifyingMonth_ = nullptr;
}; };

View File

@ -24,12 +24,12 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* verification_yearmonth_; const char* verification_yearmonth_ = nullptr;
const char* base_date_; const char* base_date_ = nullptr;
const char* day_; const char* day_ = nullptr;
const char* hour_; const char* hour_ = nullptr;
const char* fcmonth_; const char* fcmonth_ = nullptr;
const char* check_; const char* check_ = nullptr;
int unpack_long_edition1(long* val, size_t* len); int unpack_long_edition1(long* val, size_t* len);
}; };

View File

@ -22,5 +22,5 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* date_; const char* date_ = nullptr;
}; };

View File

@ -22,12 +22,12 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* numberOfValues_; const char* numberOfValues_ = nullptr;
const char* bitsPerValue_; const char* bitsPerValue_ = nullptr;
const char* offsetBeforeData_; const char* offsetBeforeData_ = nullptr;
const char* offsetAfterData_; const char* offsetAfterData_ = nullptr;
const char* unusedBits_; const char* unusedBits_ = nullptr;
const char* JS_; const char* JS_ = nullptr;
const char* KS_; const char* KS_ = nullptr;
const char* MS_; const char* MS_ = nullptr;
}; };

View File

@ -22,9 +22,9 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* numberOfValues_; const char* numberOfValues_ = nullptr;
const char* bitsPerValue_; const char* bitsPerValue_ = nullptr;
const char* offsetBeforeData_; const char* offsetBeforeData_ = nullptr;
const char* offsetAfterData_; const char* offsetAfterData_ = nullptr;
const char* unusedBits_; const char* unusedBits_ = nullptr;
}; };

View File

@ -33,12 +33,12 @@ protected:
int grib_g1_step_get_steps(long* start, long* theEnd); int grib_g1_step_get_steps(long* start, long* theEnd);
private: private:
const char* p1_; const char* p1_ = nullptr;
const char* p2_; const char* p2_ = nullptr;
const char* timeRangeIndicator_; const char* timeRangeIndicator_ = nullptr;
const char* unit_; const char* unit_ = nullptr;
const char* step_unit_; const char* step_unit_ = nullptr;
const char* stepType_; const char* stepType_ = nullptr;
const char* patch_fp_precip_; const char* patch_fp_precip_ = nullptr;
int error_on_units_; int error_on_units_ = 0;
}; };

View File

@ -22,7 +22,7 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* date_; const char* date_ = nullptr;
const char* time_; const char* time_ = nullptr;
const char* step_; const char* step_ = nullptr;
}; };

View File

@ -24,7 +24,7 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* productDefinitionTemplateNumber_; const char* productDefinitionTemplateNumber_ = nullptr;
const char* stepType_; const char* stepType_ = nullptr;
int optical_; int optical_ = 0;
}; };

View File

@ -24,7 +24,7 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* productDefinitionTemplateNumber_; const char* productDefinitionTemplateNumber_ = nullptr;
const char* stepType_; const char* stepType_ = nullptr;
int chemical_type_; int chemical_type_ = 0;
}; };

View File

@ -24,9 +24,9 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* productDefinitionTemplateNumber_; const char* productDefinitionTemplateNumber_ = nullptr;
const char* stream_; const char* stream_ = nullptr;
const char* type_; const char* type_ = nullptr;
const char* stepType_; const char* stepType_ = nullptr;
const char* derivedForecast_; const char* derivedForecast_ = nullptr;
}; };

View File

@ -27,16 +27,16 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
int index_; int index_ = 0;
const char* the_class_; const char* the_class_ = nullptr;
const char* stream_; const char* stream_ = nullptr;
const char* type_; const char* type_ = nullptr;
const char* expver_; const char* expver_ = nullptr;
const char* typeOfProcessedData_; const char* typeOfProcessedData_ = nullptr;
const char* productDefinitionTemplateNumber_; const char* productDefinitionTemplateNumber_ = nullptr;
const char* stepType_; const char* stepType_ = nullptr;
const char* derivedForecast_; const char* derivedForecast_ = nullptr;
const char* typeOfGeneratingProcess_; const char* typeOfGeneratingProcess_ = nullptr;
int extra_set(long val); int extra_set(long val);
}; };

View File

@ -23,5 +23,5 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* numberOfValues_; const char* numberOfValues_ = nullptr;
}; };

View File

@ -24,5 +24,5 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* bitmapIndicator_; const char* bitmapIndicator_ = nullptr;
}; };

View File

@ -24,7 +24,7 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* year_; const char* year_ = nullptr;
const char* month_; const char* month_ = nullptr;
const char* day_; const char* day_ = nullptr;
}; };

View File

@ -28,24 +28,24 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* start_step_value_; const char* start_step_value_ = nullptr;
const char* step_units_; const char* step_units_ = nullptr;
const char* year_; const char* year_ = nullptr;
const char* month_; const char* month_ = nullptr;
const char* day_; const char* day_ = nullptr;
const char* hour_; const char* hour_ = nullptr;
const char* minute_; const char* minute_ = nullptr;
const char* second_; const char* second_ = nullptr;
const char* year_of_end_of_interval_; const char* year_of_end_of_interval_ = nullptr;
const char* month_of_end_of_interval_; const char* month_of_end_of_interval_ = nullptr;
const char* day_of_end_of_interval_; const char* day_of_end_of_interval_ = nullptr;
const char* hour_of_end_of_interval_; const char* hour_of_end_of_interval_ = nullptr;
const char* minute_of_end_of_interval_; const char* minute_of_end_of_interval_ = nullptr;
const char* second_of_end_of_interval_; const char* second_of_end_of_interval_ = nullptr;
const char* time_range_unit_; const char* time_range_unit_ = nullptr;
const char* time_range_value_; const char* time_range_value_ = nullptr;
const char* typeOfTimeIncrement_; const char* typeOfTimeIncrement_ = nullptr;
const char* numberOfTimeRanges_; const char* numberOfTimeRanges_ = nullptr;
int unpack_one_time_range_long_(long* val, size_t* len); int unpack_one_time_range_long_(long* val, size_t* len);
int unpack_one_time_range_double_(double* val, size_t* len); int unpack_one_time_range_double_(double* val, size_t* len);

View File

@ -24,12 +24,12 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* latitude_first_; const char* latitude_first_ = nullptr;
const char* longitude_first_; const char* longitude_first_ = nullptr;
const char* latitude_last_; const char* latitude_last_ = nullptr;
const char* longitude_last_; const char* longitude_last_ = nullptr;
const char* i_increment_; const char* i_increment_ = nullptr;
const char* j_increment_; const char* j_increment_ = nullptr;
const char* basic_angle_; const char* basic_angle_ = nullptr;
const char* sub_division_; const char* sub_division_ = nullptr;
}; };

View File

@ -25,7 +25,7 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* grid_; const char* grid_ = nullptr;
int index_; int index_ = 0;
const char* given_; const char* given_ = nullptr;
}; };

View File

@ -26,8 +26,8 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* type_first_; const char* type_first_ = nullptr;
const char* scale_first_; const char* scale_first_ = nullptr;
const char* value_first_; const char* value_first_ = nullptr;
const char* pressure_units_; const char* pressure_units_ = nullptr;
}; };

View File

@ -23,5 +23,5 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* longitude_; const char* longitude_ = nullptr;
}; };

View File

@ -29,6 +29,6 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* start_step_; const char* start_step_ = nullptr;
const char* end_step_; const char* end_step_ = nullptr;
}; };

View File

@ -1,4 +1,3 @@
/* /*
* (C) Copyright 2005- ECMWF. * (C) Copyright 2005- ECMWF.
* *
@ -25,7 +24,7 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* N_; const char* N_ = nullptr;
const char* Ni_; const char* Ni_ = nullptr;
const char* isOctahedral_; const char* isOctahedral_ = nullptr;
}; };

View File

@ -1,4 +1,3 @@
/* /*
* (C) Copyright 2005- ECMWF. * (C) Copyright 2005- ECMWF.
* *
@ -24,8 +23,8 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* gds_present_; const char* gds_present_ = nullptr;
const char* grid_definition_; const char* grid_definition_ = nullptr;
const char* bitmap_present_; const char* bitmap_present_ = nullptr;
const char* values_; const char* values_ = nullptr;
}; };

View File

@ -25,7 +25,7 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* envvar_; const char* envvar_ = nullptr;
char* value_; char* value_ = nullptr;
const char* default_value_; const char* default_value_ = nullptr;
}; };

View File

@ -23,15 +23,15 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* N_; const char* N_ = nullptr;
const char* Ni_; const char* Ni_ = nullptr;
const char* di_; const char* di_ = nullptr;
const char* latfirst_; const char* latfirst_ = nullptr;
const char* lonfirst_; const char* lonfirst_ = nullptr;
const char* latlast_; const char* latlast_ = nullptr;
const char* lonlast_; const char* lonlast_ = nullptr;
const char* plpresent_; const char* plpresent_ = nullptr;
const char* pl_; const char* pl_ = nullptr;
const char* basic_angle_; const char* basic_angle_ = nullptr;
const char* subdivision_; const char* subdivision_ = nullptr;
}; };

View File

@ -30,5 +30,5 @@ public:
int compare(grib_accessor*) override; int compare(grib_accessor*) override;
private: private:
char endCharacter_; char endCharacter_ = 0;
}; };

View File

@ -24,6 +24,6 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
int gts_offset_; int gts_offset_ = 0;
int gts_length_; int gts_length_ = 0;
}; };

View File

@ -33,8 +33,8 @@ public:
int compare(grib_accessor*) override; int compare(grib_accessor*) override;
private: private:
char* key_; char* key_ = nullptr;
grib_hash_array_value* ha_; grib_hash_array_value* ha_ = nullptr;
grib_hash_array_value* find_hash_value(int* err); grib_hash_array_value* find_hash_value(int* err);
}; };

View File

@ -30,5 +30,5 @@ public:
int nearest_smaller_value(double, double*) override; int nearest_smaller_value(double, double*) override;
private: private:
grib_arguments* arg_; grib_arguments* arg_ = nullptr;
}; };

View File

@ -1,4 +1,3 @@
/* /*
* (C) Copyright 2005- ECMWF. * (C) Copyright 2005- ECMWF.
* *
@ -28,5 +27,5 @@ public:
int nearest_smaller_value(double val, double* nearest) override; int nearest_smaller_value(double val, double* nearest) override;
private: private:
grib_arguments* arg_; grib_arguments* arg_ = nullptr;
}; };

View File

@ -1,4 +1,3 @@
/* /*
* (C) Copyright 2005- ECMWF. * (C) Copyright 2005- ECMWF.
* *
@ -25,6 +24,6 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* paramId_; const char* paramId_ = nullptr;
const char* type_; const char* type_ = nullptr;
}; };

View File

@ -22,6 +22,6 @@ public:
void dump(grib_dumper* dumper) override; void dump(grib_dumper* dumper) override;
private: private:
grib_arguments* args_; grib_arguments* args_ = nullptr;
friend eccodes::geo_iterator::Iterator* eccodes::geo_iterator::gribIteratorNew(const grib_handle*, unsigned long, int*); friend eccodes::geo_iterator::Iterator* eccodes::geo_iterator::gribIteratorNew(const grib_handle*, unsigned long, int*);
}; };

View File

@ -30,13 +30,13 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* year_; const char* year_ = nullptr;
const char* month_; const char* month_ = nullptr;
const char* day_; const char* day_ = nullptr;
const char* hour_; const char* hour_ = nullptr;
const char* minute_; const char* minute_ = nullptr;
const char* second_; const char* second_ = nullptr;
const char* ymd_; const char* ymd_ = nullptr;
const char* hms_; const char* hms_ = nullptr;
char sep_[5]; char sep_[5];
}; };

View File

@ -27,8 +27,8 @@ public:
void init(const long, grib_arguments*) override; void init(const long, grib_arguments*) override;
private: private:
const char* date_; const char* date_ = nullptr;
const char* hour_; const char* hour_ = nullptr;
const char* minute_; const char* minute_ = nullptr;
const char* second_; const char* second_ = nullptr;
}; };

View File

@ -1,4 +1,3 @@
/* /*
* (C) Copyright 2005- ECMWF. * (C) Copyright 2005- ECMWF.
* *

Some files were not shown because too many files have changed in this diff Show More