diff --git a/src/eccodes_prototypes.h b/src/eccodes_prototypes.h index 7905f7978..e98ae83c2 100644 --- a/src/eccodes_prototypes.h +++ b/src/eccodes_prototypes.h @@ -36,86 +36,78 @@ grib_action* grib_action_create_if(grib_context* context, grib_expression* expre grib_action* grib_action_create_switch(grib_context* context, grib_arguments* args, grib_case* Case, grib_action* Default); grib_case* grib_case_new(grib_context* c, grib_arguments* values, grib_action* action); -/* grib_accessor_class_g1fcperiod.cc */ - -/* grib_accessor_class_g1end_of_interval_monthly.cc */ - -/* grib_accessor_class_mars_param.cc */ - -/* action_class_section.cc */ - -/* action_class_list.cc*/ +/* action_class_list.cc */ grib_action* grib_action_create_list(grib_context* context, const char* name, grib_expression* expression, grib_action* block); -/* action_class_while.cc*/ +/* action_class_while.cc */ grib_action* grib_action_create_while(grib_context* context, grib_expression* expression, grib_action* block); -/* action_class_put.cc*/ +/* action_class_put.cc */ grib_action* grib_action_create_put(grib_context* context, const char* name, grib_arguments* args); -/* action_class_meta.cc*/ +/* action_class_meta.cc */ grib_action* grib_action_create_meta(grib_context* context, const char* name, const char* op, grib_arguments* params, grib_arguments* default_value, unsigned long flags, const char* name_space); -/* action_class_remove.cc*/ +/* action_class_remove.cc */ grib_action* grib_action_create_remove(grib_context* context, grib_arguments* args); -/* action_class_rename.cc*/ +/* action_class_rename.cc */ grib_action* grib_action_create_rename(grib_context* context, char* the_old, char* the_new); -/* action_class_assert.cc*/ +/* action_class_assert.cc */ grib_action* grib_action_create_assert(grib_context* context, grib_expression* expression); -/* action_class_template.cc*/ +/* action_class_template.cc */ grib_action* grib_action_create_template(grib_context* context, int nofail, const char* name, const char* arg1); -/* action_class_trigger.cc*/ +/* action_class_trigger.cc */ grib_action* grib_action_create_trigger(grib_context* context, grib_arguments* args, grib_action* block); -/* action_class_when.cc*/ +/* action_class_when.cc */ grib_action* grib_action_create_when(grib_context* context, grib_expression* expression, grib_action* block_true, grib_action* block_false); -/* action_class_concept.cc*/ +/* action_class_concept.cc */ grib_concept_value* action_concept_get_concept(grib_accessor* a); int action_concept_get_nofail(grib_accessor* a); grib_action* grib_action_create_concept(grib_context* context, const char* name, grib_concept_value* concept_value, const char* basename, const char* name_space, const char* defaultkey, const char* masterDir, const char* localDir, const char* ecmfDir, int flags, int nofail); int get_concept_condition_string(grib_handle* h, const char* key, const char* value, char* result); -/* action_class_hash_array.cc*/ +/* action_class_hash_array.cc */ grib_action* grib_action_create_hash_array(grib_context* context, const char* name, grib_hash_array_value* hash_array, const char* basename, const char* name_space, const char* defaultkey, const char* masterDir, const char* localDir, const char* ecmfDir, int flags, int nofail); grib_hash_array_value* get_hash_array(grib_handle* h, grib_action* a); const char* get_hash_array_full_path(grib_action* a); -/* action_class_set.cc*/ +/* action_class_set.cc */ grib_action* grib_action_create_set(grib_context* context, const char* name, grib_expression* expression, int nofail); -/* action_class_set_darray.cc*/ +/* action_class_set_darray.cc */ grib_action* grib_action_create_set_darray(grib_context* context, const char* name, grib_darray* darray); -/* action_class_set_sarray.cc*/ +/* action_class_set_sarray.cc */ grib_action* grib_action_create_set_sarray(grib_context* context, const char* name, grib_sarray* sarray); -/* action_class_noop.cc*/ +/* action_class_noop.cc */ grib_action* grib_action_create_noop(grib_context* context, const char* fname); -/* action_class_write.cc*/ +/* action_class_write.cc */ grib_action* grib_action_create_write(grib_context* context, const char* name, int append, int padtomultiple); -/* action_class_print.cc*/ +/* action_class_print.cc */ grib_action* grib_action_create_print(grib_context* context, const char* name, char* outname); -/* action_class_close.cc*/ +/* action_class_close.cc */ grib_action* grib_action_create_close(grib_context* context, char* filename); -/* action_class_variable.cc*/ +/* action_class_variable.cc */ grib_action* grib_action_create_variable(grib_context* context, const char* name, const char* op, const long len, grib_arguments* params, grib_arguments* default_value, int flags, const char* name_space); -/* action_class_modify.cc*/ +/* action_class_modify.cc */ grib_action* grib_action_create_modify(grib_context* context, const char* name, long flags); -/* action_class_transient_darray.cc*/ +/* action_class_transient_darray.cc */ grib_action* grib_action_create_transient_darray(grib_context* context, const char* name, grib_darray* darray, int flags); -/* grib_accessor.cc*/ +/* grib_accessor.cc */ void grib_accessor_dump(grib_accessor* a, grib_dumper* f); int grib_pack_missing(grib_accessor* a); int grib_is_missing_internal(grib_accessor* a); @@ -167,16 +159,16 @@ void grib_accessors_list_push(grib_accessors_list* al, grib_accessor* a, int ran grib_accessors_list* grib_accessors_list_last(grib_accessors_list* al); void grib_accessors_list_delete(grib_context* c, grib_accessors_list* al); -/* grib_concept.cc*/ +/* grib_concept.cc */ grib_concept_value* grib_concept_value_new(grib_context* c, const char* name, grib_concept_condition* conditions); void grib_concept_value_delete(grib_context* c, grib_concept_value* v); grib_concept_condition* grib_concept_condition_new(grib_context* c, const char* name, grib_expression* expression, grib_iarray* iarray); void grib_concept_condition_delete(grib_context* c, grib_concept_condition* v); -/* grib_hash_array.cc*/ +/* grib_hash_array.cc */ grib_hash_array_value* grib_integer_hash_array_value_new(grib_context* c, const char* name, grib_iarray* array); -/* grib_bufr_descriptor.cc*/ +/* grib_bufr_descriptor.cc */ bufr_descriptor* grib_bufr_descriptor_new(grib_accessor* tables_accessor, int code, int silent, int* err); bufr_descriptor* grib_bufr_descriptor_clone(bufr_descriptor* d); int grib_bufr_descriptor_set_code(bufr_descriptor* v, int code); @@ -184,7 +176,7 @@ void grib_bufr_descriptor_set_scale(bufr_descriptor* v, long scale); int grib_bufr_descriptor_can_be_missing(const bufr_descriptor* v); void grib_bufr_descriptor_delete(bufr_descriptor* v); -/* grib_bufr_descriptors_array.cc*/ +/* grib_bufr_descriptors_array.cc */ bufr_descriptors_array* grib_bufr_descriptors_array_new(grib_context* c, size_t size, size_t incsize); bufr_descriptor* grib_bufr_descriptors_array_pop_front(bufr_descriptors_array* a); bufr_descriptors_array* grib_bufr_descriptors_array_push(bufr_descriptors_array* v, bufr_descriptor* val); @@ -194,7 +186,7 @@ void grib_bufr_descriptors_array_delete(bufr_descriptors_array* v); void grib_bufr_descriptors_array_delete_array(bufr_descriptors_array* v); size_t grib_bufr_descriptors_array_used_size(bufr_descriptors_array* v); -/* grib_darray.cc*/ +/* grib_darray.cc */ void grib_darray_print(const char* title, const grib_darray* darray); grib_darray* grib_darray_new(grib_context* c, size_t size, size_t incsize); grib_darray* grib_darray_push(grib_context* c, grib_darray* v, double val); @@ -202,7 +194,7 @@ void grib_darray_delete(grib_context* c, grib_darray* v); int grib_darray_is_constant(grib_darray* v, double epsilon); size_t grib_darray_used_size(grib_darray* v); -/* grib_sarray.cc*/ +/* grib_sarray.cc */ void grib_sarray_print(const char* title, const grib_sarray* sarray); grib_sarray* grib_sarray_new(grib_context* c, size_t size, size_t incsize); grib_sarray* grib_sarray_push(grib_context* c, grib_sarray* v, char* val); @@ -211,13 +203,13 @@ void grib_sarray_delete_content(grib_context* c, grib_sarray* v); char** grib_sarray_get_array(grib_context* c, grib_sarray* v); size_t grib_sarray_used_size(grib_sarray* v); -/* grib_oarray.cc*/ +/* grib_oarray.cc */ grib_oarray* grib_oarray_new(grib_context* c, size_t size, size_t incsize); grib_oarray* grib_oarray_push(grib_context* c, grib_oarray* v, void* val); void grib_oarray_delete(grib_context* c, grib_oarray* v); void* grib_oarray_get(grib_oarray* v, int i); -/* grib_iarray.cc*/ +/* grib_iarray.cc */ void grib_iarray_print(const char* title, const grib_iarray* iarray); grib_iarray* grib_iarray_new(grib_context* c, size_t size, size_t incsize); long grib_iarray_pop(grib_iarray* a); @@ -228,7 +220,7 @@ void grib_iarray_delete_array(grib_iarray* v); long* grib_iarray_get_array(grib_iarray* v); size_t grib_iarray_used_size(grib_iarray* v); -/* grib_vdarray.cc*/ +/* grib_vdarray.cc */ void grib_vdarray_print(const char* title, const grib_vdarray* vdarray); grib_vdarray* grib_vdarray_new(grib_context* c, size_t size, size_t incsize); grib_vdarray* grib_vdarray_push(grib_context* c, grib_vdarray* v, grib_darray* val); @@ -236,7 +228,7 @@ void grib_vdarray_delete(grib_context* c, grib_vdarray* v); void grib_vdarray_delete_content(grib_context* c, grib_vdarray* v); size_t grib_vdarray_used_size(grib_vdarray* v); -/* grib_vsarray.cc*/ +/* grib_vsarray.cc */ void grib_vsarray_print(const char* title, const grib_vsarray* vdarray); grib_vsarray* grib_vsarray_new(grib_context* c, size_t size, size_t incsize); grib_vsarray* grib_vsarray_push(grib_context* c, grib_vsarray* v, grib_sarray* val); @@ -244,30 +236,20 @@ void grib_vsarray_delete(grib_context* c, grib_vsarray* v); void grib_vsarray_delete_content(grib_context* c, grib_vsarray* v); size_t grib_vsarray_used_size(grib_vsarray* v); -/* grib_viarray.cc*/ +/* grib_viarray.cc */ void grib_viarray_print(const char* title, const grib_viarray* viarray); grib_viarray* grib_viarray_new(grib_context* c, size_t size, size_t incsize); grib_viarray* grib_viarray_push(grib_context* c, grib_viarray* v, grib_iarray* val); void grib_viarray_delete(grib_context* c, grib_viarray* v); void grib_viarray_delete_content(grib_context* c, grib_viarray* v); -/* grib_accessor_class_ascii.cc*/ - -/* grib_accessor_class_bit.cc*/ - -/* grib_accessor_class_bitmap.cc*/ - -/* grib_accessor_class_bits.cc*/ - -/* grib_accessor_class_bits_per_value.cc*/ - -/* grib_accessor_class_bufr_data_array.cc*/ +/* grib_accessor_class_bufr_data_array.cc */ grib_vsarray* accessor_bufr_data_array_get_stringValues(grib_accessor* a); grib_accessors_list* accessor_bufr_data_array_get_dataAccessors(grib_accessor* a); grib_trie_with_rank* accessor_bufr_data_array_get_dataAccessorsTrie(grib_accessor* a); void accessor_bufr_data_array_set_unpackMode(grib_accessor* a, int unpackMode); -/* grib_accessor_class_bufr_data_element.cc*/ +/* grib_accessor_class_bufr_data_element.cc */ void accessor_bufr_data_element_set_index(grib_accessor* a, long index); void accessor_bufr_data_element_set_type(grib_accessor* a, int type); void accessor_bufr_data_element_set_numberOfSubsets(grib_accessor* a, long numberOfSubsets); @@ -278,47 +260,11 @@ void accessor_bufr_data_element_set_numericValues(grib_accessor* a, grib_vdarray void accessor_bufr_data_element_set_stringValues(grib_accessor* a, grib_vsarray* stringValues); void accessor_bufr_data_element_set_elementsDescriptorsIndex(grib_accessor* a, grib_viarray* elementsDescriptorsIndex); -/* grib_accessor_class_bufr_elements_table.cc*/ +/* grib_accessor_class_bufr_elements_table.cc */ int bufr_descriptor_is_marker(bufr_descriptor* d); bufr_descriptor* accessor_bufr_elements_table_get_descriptor(grib_accessor* a, int code, int* err); -/* grib_accessor_class_bufr_group.cc*/ - -/* grib_accessor_class_bufr_string_values.cc*/ - -/* grib_accessor_class_pack_bufr_values.cc*/ - -/* grib_accessor_class_bufr_extract_area_subsets.cc*/ - -/* grib_accessor_class_bufr_extract_datetime_subsets.cc*/ - -/* grib_accessor_class_group.cc*/ - -/* grib_accessor_class_unpack_bufr_values.cc*/ - -/* grib_accessor_class_non_alpha.cc*/ - -/* grib_accessor_class_g1bitmap.cc*/ - -/* grib_accessor_class_g2bitmap.cc*/ - -/* grib_accessor_class_concept.cc*/ - -/* grib_accessor_class_hash_array.cc*/ - -/* grib_accessor_class_decimal_precision.cc*/ - -/* grib_accessor_class_divdouble.cc*/ - -/* grib_accessor_class_budgdate.cc*/ - -/* grib_accessor_class_validity_date.cc*/ - -/* grib_accessor_class_validity_time.cc*/ - -/* grib_accessor_class_bytes.cc*/ - -/* grib_accessor_class.cc*/ +/* grib_accessor_class.cc */ grib_section* grib_create_root_section(const grib_context* context, grib_handle* h); grib_accessor* grib_accessor_factory(grib_section* p, grib_action* creator, const long len, grib_arguments* params); void grib_push_accessor(grib_accessor* a, grib_block_of_accessors* l); @@ -328,314 +274,46 @@ int grib_get_block_length(grib_section* s, size_t* l); grib_accessor* find_paddings(grib_section* s); void grib_update_paddings(grib_section* s); -/* grib_accessor_class_change_scanning_direction.cc*/ - -/* grib_accessor_class_change_scanning_direction.cc*/ - -/* grib_accessor_class_check_internal_version.cc*/ - -/* grib_accessor_class_codeflag.cc*/ - -/* grib_accessor_class_smart_table.cc*/ +/* grib_accessor_class_smart_table.cc */ void grib_smart_table_delete(grib_context* c); -/* grib_accessor_class_smart_table_column.cc*/ - -/* grib_accessor_class_codetable.cc*/ +/* grib_accessor_class_codetable.cc */ void grib_codetable_delete(grib_context* c); int codes_codetable_get_contents_malloc(const grib_handle* h, const char* key, code_table_entry** entries, size_t* num_entries); int codes_codetable_check_code_figure(const grib_handle* h, const char* key, long code_figure); int codes_codetable_check_abbreviation(const grib_handle* h, const char* key, const char* abbreviation); -/* grib_accessor_class_codetable_units.cc*/ - -/* grib_accessor_class_codetable_title.cc*/ - -/* grib_accessor_class_count_file.cc*/ - -/* grib_accessor_class_count_total.cc*/ - -/* grib_accessor_class_double.cc*/ - -/* grib_accessor_class_element.cc*/ - -/* grib_accessor_class_evaluate.cc*/ - -/* grib_accessor_class_g1date.cc*/ - -/* grib_accessor_class_g1monthlydate.cc*/ - -/* grib_accessor_class_library_version.cc*/ - -/* grib_accessor_class_when.cc*/ - -/* grib_accessor_class_g1verificationdate.cc*/ - -/* grib_accessor_class_g1day_of_the_year_date.cc*/ - -/* grib_accessor_class_g1_half_byte_codeflag.cc*/ - -/* grib_accessor_class_g1forecastmonth.cc*/ - -/* grib_accessor_class_g1step_range.cc*/ +/* grib_accessor_class_g1step_range.cc */ int grib_g1_step_get_steps(grib_accessor* a, long* start, long* theEnd); -/* grib_accessor_class_g2step_range.cc*/ - -/* grib_accessor_class_data_g22order_packing.cc*/ - -/* grib_accessor_class_mars_step.cc*/ - -/* grib_accessor_class_message_copy.cc*/ - -/* grib_accessor_class_dictionary.cc*/ - -/* grib_accessor_class_latlon_increment.cc*/ - -/* grib_accessor_class_g2date.cc*/ - -/* grib_accessor_class_g2level.cc*/ - -/* grib_accessor_class_g2end_step.cc*/ - -/* grib_accessor_class_g2latlon.cc*/ - -/* grib_accessor_class_g2lon.cc*/ - -/* grib_accessor_class_global_gaussian.cc*/ - -/* grib_accessor_class_gaussian_grid_name.cc*/ - -/* grib_accessor_class_gen.cc*/ - -/* grib_accessor_class_gts_header.cc*/ - -/* grib_accessor_class_ifs_param.cc*/ - -/* grib_accessor_class_uint16.cc*/ - -/* grib_accessor_class_uint32.cc*/ - -/* grib_accessor_class_uint32_little_endian.cc*/ - -/* grib_accessor_class_uint64.cc*/ - -/* grib_accessor_class_uint64_little_endian.cc*/ - -/* grib_accessor_class_uint8.cc*/ - -/* grib_accessor_class_blob.cc*/ - -/* grib_accessor_class_julian_day.cc*/ - -/* grib_accessor_class_julian_date.cc*/ - -/* grib_accessor_class_latlonvalues.cc*/ - -/* grib_accessor_class_latitudes.cc*/ - -/* grib_accessor_class_longitudes.cc*/ - -/* grib_accessor_class_octahedral_gaussian.cc*/ - -/* grib_accessor_class_offset_file.cc*/ - -/* grib_accessor_class_scale.cc*/ - -/* grib_accessor_class_rdbtime_guess_date.cc*/ - -/* grib_accessor_class_from_scale_factor_scaled_value.cc*/ - -/* grib_accessor_class_g2bitmap_present.cc*/ - -/* grib_accessor_class_ibmfloat.cc*/ - -/* grib_accessor_class_ieeefloat.cc*/ - -/* grib_accessor_class_constant.cc*/ - -/* grib_accessor_class_iterator.cc*/ +/* grib_accessor_class_iterator.cc */ grib_iterator* grib_iterator_new(const grib_handle* h, unsigned long flags, int* error); -/* grib_accessor_class_message.cc*/ - -/* grib_accessor_class_nearest.cc*/ +/* grib_accessor_class_nearest.cc */ grib_nearest* grib_nearest_new(const grib_handle* h, int* error); -/* grib_accessor_class_ksec1expver.cc*/ - -/* grib_accessor_class_label.cc*/ - -/* grib_accessor_class_long.cc*/ - -/* grib_accessor_class_lookup.cc*/ - -/* grib_accessor_class_octet_number.cc*/ - -/* grib_accessor_class_headers_only.cc*/ - -/* grib_accessor_class_padding.cc*/ - -/* grib_accessor_class_pad.cc*/ - -/* grib_accessor_class_padto.cc*/ - -/* grib_accessor_class_padtoeven.cc*/ - -/* grib_accessor_class_padtomultiple.cc*/ - -/* grib_accessor_class_section_padding.cc*/ - -/* grib_accessor_class_section_pointer.cc*/ - -/* grib_accessor_class_position.cc*/ - -/* grib_accessor_class_signed.cc*/ - -/* grib_accessor_class_signed_bits.cc*/ - -/* grib_accessor_class_section.cc*/ - -/* grib_accessor_class_step_in_units.cc*/ - -/* grib_accessor_class_section_length.cc*/ - -/* grib_accessor_class_g1_message_length.cc*/ +/* grib_accessor_class_g1_message_length.cc */ int grib_get_g1_message_size(grib_handle* h, grib_accessor* tl, grib_accessor* s4, long* total_length, long* sec4_len); -/* grib_accessor_class_g1_section4_length.cc*/ - -/* grib_accessor_class_size.cc*/ - -/* grib_accessor_class_scale_values.cc*/ - -/* grib_accessor_class_offset_values.cc*/ - -/* grib_accessor_class_sprintf.cc*/ - -/* grib_accessor_class_getenv.cc*/ - -/* grib_accessor_class_round.cc*/ - -/* grib_accessor_class_spectral_truncation.cc*/ - -/* grib_accessor_class_time.cc*/ - -/* grib_accessor_class_transient.cc*/ - -/* grib_accessor_class_values.cc*/ - -/* grib_accessor_class_simple_packing_error.cc*/ - -/* grib_accessor_class_data_simple_packing.cc*/ - -/* grib_accessor_class_data_ccsds_packing.cc*/ - -/* grib_accessor_class_count_missing.cc*/ - -/* grib_accessor_class_data_sh_packed.cc*/ - -/* grib_accessor_class_data_sh_unpacked.cc*/ - -/* grib_accessor_class_number_of_values_data_raw_packing.cc*/ - -/* grib_accessor_class_data_g1simple_packing.cc*/ - -/* grib_accessor_class_data_g1shsimple_packing.cc*/ - -/* grib_accessor_class_data_shsimple_packing.cc*/ - -/* grib_accessor_class_data_dummy_field.cc*/ - -/* grib_accessor_class_variable.cc*/ +/* grib_accessor_class_variable.cc */ void accessor_variable_set_type(grib_accessor* a, int type); -/* grib_accessor_class_second_order_bits_per_value.cc*/ - -/* grib_accessor_class_data_g2simple_packing.cc*/ - -/* grib_accessor_class_data_g2simple_packing_with_preprocessing.cc*/ - -/* grib_accessor_class_data_g2shsimple_packing.cc*/ - -/* grib_accessor_class_data_g2complex_packing.cc*/ - -/* grib_accessor_class_data_g1second_order_row_by_row_packing.cc*/ - -/* grib_accessor_class_data_g1second_order_constant_width_packing.cc*/ - -/* grib_accessor_class_data_g1second_order_general_packing.cc*/ - -/* grib_accessor_class_data_g1second_order_general_extended_packing.cc*/ - -/* grib_accessor_class_g2grid.cc*/ - -/* grib_accessor_class_unexpanded_descriptors.cc*/ - -/* grib_accessor_class_expanded_descriptors.cc*/ +/* grib_accessor_class_expanded_descriptors.cc */ int grib_accessor_class_expanded_descriptors_set_do_expand(grib_accessor* a, long do_expand); bufr_descriptors_array* grib_accessor_class_expanded_descriptors_get_expanded(grib_accessor* a, int* err); -/* grib_accessor_class_bufrdc_expanded_descriptors.cc*/ - -/* grib_accessor_class_data_apply_bitmap.cc*/ - -/* grib_accessor_class_data_apply_boustrophedonic.cc*/ - -/* grib_accessor_class_data_apply_boustrophedonic_bitmap.cc*/ - -/* grib_accessor_class_data_secondary_bitmap.cc*/ - -/* grib_accessor_class_data_g1secondary_bitmap.cc*/ - -/* grib_accessor_class_data_g2secondary_bitmap.cc*/ - -/* grib_accessor_class_data_jpeg2000_packing.cc*/ - -/* grib_accessor_class_data_png_packing.cc*/ - -/* grib_accessor_class_data_raw_packing.cc*/ - -/* grib_accessor_class_data_complex_packing.cc*/ - -/* grib_accessor_class_data_g1complex_packing.cc*/ - -/* grib_accessor_class_gds_not_present_bitmap.cc*/ - -/* grib_accessor_class_gds_is_present.cc*/ - -/* grib_accessor_class_select_step_template.cc*/ - -/* grib_accessor_class_local_definition.cc*/ - -/* grib_accessor_class_g2_eps.cc*/ - -/* grib_accessor_class_g2_aerosol.cc*/ - -/* grib_accessor_class_g2_chemical.cc*/ - -/* grib_accessor_class_g2_mars_labeling.cc*/ - -/* grib_accessor_class_transient_darray.cc*/ - -/* grib_accessor_class_md5.cc*/ - -/* grib_jasper_encoding.cc*/ +/* grib_jasper_encoding.cc */ int grib_jasper_decode(grib_context* c, unsigned char* buf, const size_t* buflen, double* values, const size_t* n_vals); int grib_jasper_encode(grib_context* c, j2k_encode_helper* helper); -/* grib_openjpeg_encoding.cc*/ +/* grib_openjpeg_encoding.cc */ int grib_openjpeg_decode(grib_context* c, unsigned char* buf, const size_t* buflen, double* values, const size_t* n_vals); int grib_openjpeg_encode(grib_context* c, j2k_encode_helper* helper); -/* action_class_set_missing.cc*/ +/* action_class_set_missing.cc */ grib_action* grib_action_create_set_missing(grib_context* context, const char* name); -/* grib_accessor_class_number_of_points.cc*/ - -/* grib_accessor_class_suppressed.cc*/ - -/* grib_index.cc*/ +/* grib_index.cc */ int grib_index_compress(grib_index* index); grib_field_tree* grib_read_field_tree(grib_context* c, FILE* fh, grib_file** files, int* err); grib_index* grib_index_new(grib_context* c, const char* key, int* err); @@ -662,66 +340,24 @@ int codes_index_set_product_kind(grib_index* index, ProductKind product_kind); int codes_index_set_unpack_bufr(grib_index* index, int unpack); int is_index_file(const char* filename); -/* grib_accessor_class_number_of_points_gaussian.cc*/ - -/* grib_accessor_class_number_of_values.cc*/ - -/* grib_accessor_class_number_of_coded_values.cc*/ - -/* grib_accessor_class_g1number_of_coded_values_sh_complex.cc*/ - -/* grib_accessor_class_g1number_of_coded_values_sh_simple.cc*/ - -/* grib_accessor_class_dirty.cc*/ - -/* grib_accessor_class_statistics.cc*/ - -/* grib_accessor_class_statistics_spectral.cc*/ - -/* grib_accessor_class_unsigned.cc*/ +/* grib_accessor_class_unsigned.cc */ int pack_long_unsigned_helper(grib_accessor* a, const long* val, size_t* len, int check); -/* grib_accessor_class_unsigned_bits.cc*/ - -/* grib_accessor_class_raw.cc*/ +/* grib_accessor_class_raw.cc */ void accessor_raw_set_length(grib_accessor* a, size_t len); long accessor_raw_get_offset(grib_accessor* a); -/* grib_accessor_class_bufr_extract_subsets.cc*/ - -/* grib_accessor_class_bufr_simple_thinning.cc*/ - -/* grib_accessor_class_spd.cc*/ - -/* grib_accessor_class_sum.cc*/ - -/* grib_accessor_class_to_integer.cc*/ - -/* grib_accessor_class_to_double.cc*/ - -/* grib_accessor_class_to_string.cc*/ - -/* grib_accessor_class_sexagesimal2decimal.cc*/ - -/* grib_accessor_class_vector.cc*/ - -/* grib_accessor_class_long_vector.cc*/ - -/* grib_gaussian_reduced.cc*/ +/* grib_gaussian_reduced.cc */ void grib_get_reduced_row_wrapper(grib_handle* h, long pl, double lon_first, double lon_last, long* npoints, long* ilon_first, long* ilon_last); void grib_get_reduced_row_legacy(long pl, double lon_first, double lon_last, long* npoints, long* ilon_first, long* ilon_last); void grib_get_reduced_row(long pl, double lon_first, double lon_last, long* npoints, long* ilon_first, long* ilon_last); void grib_get_reduced_row_p(long pl, double lon_first, double lon_last, long* npoints, double* olon_first, double* olon_last); -/* grib_accessor_class_abstract_vector.cc*/ - -/* grib_accessor_class_abstract_long_vector.cc*/ - -/* grib_loader_from_handle.cc*/ +/* grib_loader_from_handle.cc */ int grib_lookup_long_from_handle(grib_context* gc, grib_loader* loader, const char* name, long* value); int grib_init_accessor_from_handle(grib_loader* loader, grib_accessor* ga, grib_arguments* default_value); -/* grib_bits.cc*/ +/* grib_bits.cc */ unsigned long grib_decode_unsigned_byte_long(const unsigned char* p, long o, int l); long grib_decode_signed_long(const unsigned char* p, long o, int l); int grib_encode_signed_long(unsigned char* p, long val, long o, int l); @@ -731,7 +367,7 @@ void grib_set_bit(unsigned char* p, long bitp, int val); long grib_decode_signed_longb(const unsigned char* p, long* bitp, long nbits); int grib_encode_signed_longb(unsigned char* p, long val, long* bitp, long nb); -/* grib_timer.cc*/ +/* grib_timer.cc */ double proc_cpu(void); char* timename(double t); grib_timer* grib_get_timer(grib_context* c, const char* name, const char* statname, int elapsed); @@ -744,7 +380,7 @@ void grib_timer_partial_rate(grib_timer* t, double start, long total); void grib_print_all_timers(void); void grib_reset_all_timers(void); -/* grib_ibmfloat.cc*/ +/* grib_ibmfloat.cc */ unsigned long grib_ibm_to_long(double x); double grib_ibmfloat_error(double x); double grib_long_to_ibm(unsigned long x); @@ -753,7 +389,7 @@ double grib_ibm_table_v(unsigned long e); unsigned long grib_ibm_nearest_smaller_to_long(double x); int grib_nearest_smaller_ibm_float(double a, double* ret); -/* grib_ieeefloat.cc*/ +/* grib_ieeefloat.cc */ unsigned long grib_ieee_to_long(double x); double grib_ieeefloat_error(double x); double grib_long_to_ieee(unsigned long x); @@ -767,9 +403,7 @@ double grib_long_to_ieee64(unsigned long x); //int grib_ieee_decode_array_float(grib_context* c, unsigned char* buf, size_t nvals, int bytes, float* val); int grib_ieee_encode_array(grib_context* c, double* val, size_t nvals, int bytes, unsigned char* buf); -/* grib_accessor_class_reference_value_error.cc*/ - -/* grib_memory.cc*/ +/* grib_memory.cc */ void* grib_transient_malloc(const grib_context* c, size_t s); void* grib_transient_realloc(const grib_context* c, void* p, size_t s); void grib_transient_free(const grib_context* c, void* p); @@ -780,7 +414,7 @@ void* grib_buffer_malloc(const grib_context* c, size_t s); void grib_buffer_free(const grib_context* c, void* p); void* grib_buffer_realloc(const grib_context* c, void* p, size_t s); -/* grib_buffer.cc*/ +/* grib_buffer.cc */ grib_buffer* grib_create_growable_buffer(const grib_context* c); grib_buffer* grib_new_buffer(const grib_context* c, const unsigned char* data, size_t buflen); void grib_buffer_delete(const grib_context* c, grib_buffer* b); @@ -791,7 +425,7 @@ void grib_recompute_sections_lengths(grib_section* s); int grib_buffer_replace(grib_accessor* a, const unsigned char* data, size_t newsize, int update_lengths, int update_paddings); void grib_update_sections_lengths(grib_handle* h); -/* grib_dumper.cc*/ +/* grib_dumper.cc */ void grib_init_dumper(grib_dumper* d); void grib_dumper_delete(grib_dumper* d); void grib_dump_long(grib_dumper* d, grib_accessor* a, const char* comment); @@ -806,37 +440,7 @@ void grib_dump_values(grib_dumper* d, grib_accessor* a); void grib_dump_header(grib_dumper* d, const grib_handle* h); void grib_dump_footer(grib_dumper* d, const grib_handle* h); -/* grib_dumper_class_serialize.cc*/ - -/* grib_dumper_class_debug.cc*/ - -/* grib_dumper_class_default.cc*/ - -/* grib_dumper_class_bufr_encode_C.cc*/ - -/* grib_dumper_class_bufr_encode_filter.cc*/ - -/* grib_dumper_class_bufr_encode_fortran.cc*/ - -/* grib_dumper_class_bufr_encode_python.cc*/ - -/* grib_dumper_class_bufr_decode_C.cc*/ - -/* grib_dumper_class_bufr_decode_filter.cc*/ - -/* grib_dumper_class_bufr_decode_fortran.cc*/ - -/* grib_dumper_class_bufr_decode_python.cc*/ - -/* grib_dumper_class_bufr_simple.cc*/ - -/* grib_dumper_class_json.cc*/ - -/* grib_dumper_class_grib_encode_C.cc*/ - -/* grib_dumper_class_wmo.cc*/ - -/* grib_dumper_class.cc*/ +/* grib_dumper_class.cc */ grib_dumper* grib_dumper_factory(const char* op, const grib_handle* h, FILE* out, unsigned long option_flags, void* arg); void grib_dump_accessors_block(grib_dumper* dumper, grib_block_of_accessors* block); void grib_dump_accessors_list(grib_dumper* dumper, grib_accessors_list* al); @@ -846,7 +450,7 @@ void grib_dump_keys(grib_handle* h, FILE* f, const char* mode, unsigned long fla grib_dumper* grib_dump_content_with_dumper(grib_handle* h, grib_dumper* dumper, FILE* f, const char* mode, unsigned long flags, void* data); void codes_dump_bufr_flat(grib_accessors_list* al, grib_handle* h, FILE* f, const char* mode, unsigned long flags, void* data); -/* grib_context.cc*/ +/* grib_context.cc */ size_t grib_context_read(const grib_context* c, void* ptr, size_t size, void* stream); off_t grib_context_tell(const grib_context* c, void* stream); int grib_context_seek(const grib_context* c, off_t offset, int whence, void* stream); @@ -906,14 +510,14 @@ void grib_gts_header_off(grib_context* c); void grib_multi_support_on(grib_context* c); void grib_multi_support_off(grib_context* c); -/* grib_date.cc*/ +/* grib_date.cc */ int grib_julian_to_datetime(double jd, long* year, long* month, long* day, long* hour, long* minute, long* second); int grib_datetime_to_julian(long year, long month, long day, long hour, long minute, long second, double* jd); int grib_datetime_to_julian_d(long year, long month, long day, long hour, long minute, double second, double* jd); long grib_julian_to_date(long jdate); long grib_date_to_julian(long ddate); -/* grib_fieldset.cc*/ +/* grib_fieldset.cc */ int grib_fieldset_new_column(grib_fieldset* set, int id, char* key, int type); grib_fieldset* grib_fieldset_new_from_files(grib_context* c, const char* filenames[], int nfiles, const char** keys, int nkeys, const char* where_string, const char* order_by_string, int* err); int grib_fieldset_apply_where(grib_fieldset* set, const char* where_string); @@ -926,7 +530,7 @@ grib_handle* grib_fieldset_next_handle(grib_fieldset* set, int* err); int grib_fieldset_count(const grib_fieldset* set); grib_handle* grib_fieldset_retrieve(grib_fieldset* set, int i, int* err); -/* grib_filepool.cc*/ +/* grib_filepool.cc */ void grib_file_pool_clean(void); grib_file* grib_file_open(const char* filename, const char* mode, int* err); void grib_file_pool_delete_file(grib_file* file); @@ -935,14 +539,14 @@ void grib_file_close_all(int* err); grib_file* grib_get_file(const char* filename, int* err); void grib_file_delete(grib_file* file); -/* grib_geography.cc*/ +/* grib_geography.cc */ int grib_get_gaussian_latitudes(long trunc, double* lats); int is_gaussian_global(double lat1, double lat2, double lon1, double lon2, long num_points_equator, const double* latitudes, double angular_precision); void rotate(const double inlat, const double inlon, const double angleOfRot, const double southPoleLat, const double southPoleLon, double* outlat, double* outlon); void unrotate(const double inlat, const double inlon, const double angleOfRot, const double southPoleLat, const double southPoleLon, double* outlat, double* outlon); double geographic_distance_spherical(double radius, double lon1, double lat1, double lon2, double lat2); -/* grib_handle.cc*/ +/* grib_handle.cc */ grib_section* grib_section_create(grib_handle* h, grib_accessor* owner); void grib_swap_sections(grib_section* the_old, grib_section* the_new); void grib_empty_section(grib_context* c, grib_section* b); @@ -990,14 +594,14 @@ int grib_handle_apply_action(grib_handle* h, grib_action* a); void grib_multi_support_reset_file(grib_context* c, FILE* f); void grib_multi_support_reset(grib_context* c); -/* grib_hash_keys.cc*/ +/* grib_hash_keys.cc */ const struct grib_keys_hash* grib_keys_hash_get(const char* str, size_t len); grib_itrie* grib_hash_keys_new(grib_context* c, int* count); void grib_hash_keys_delete(grib_itrie* t); int grib_hash_keys_get_id(grib_itrie* t, const char* key); int grib_hash_keys_get_size(grib_itrie* t); -/* grib_io.cc*/ +/* grib_io.cc */ off_t stdio_tell(void* data); int stdio_seek(void* data, off_t len); int stdio_seek_from_start(void* data, off_t len); @@ -1029,7 +633,7 @@ int codes_extract_offsets_sizes_malloc(grib_context* c, const char* filename, Pr off_t** offsets, size_t** sizes, int* num_messages, int strict_mode); -/* grib_trie.cc*/ +/* grib_trie.cc */ grib_trie* grib_trie_new(grib_context* c); void grib_trie_delete_container(grib_trie* t); void grib_trie_delete(grib_trie* t); @@ -1038,24 +642,24 @@ void* grib_trie_insert(grib_trie* t, const char* key, void* data); void* grib_trie_insert_no_replace(grib_trie* t, const char* key, void* data); void* grib_trie_get(grib_trie* t, const char* key); -/* grib_trie_with_rank.cc*/ +/* grib_trie_with_rank.cc */ grib_trie_with_rank* grib_trie_with_rank_new(grib_context* c); void grib_trie_with_rank_delete_container(grib_trie_with_rank* t); int grib_trie_with_rank_insert(grib_trie_with_rank* t, const char* key, void* data); void* grib_trie_with_rank_get(grib_trie_with_rank* t, const char* key, int rank); -/* grib_itrie.cc*/ +/* grib_itrie.cc */ grib_itrie* grib_itrie_new(grib_context* c, int* count); void grib_itrie_delete(grib_itrie* t); int grib_itrie_get_id(grib_itrie* t, const char* key); int grib_itrie_insert(grib_itrie* t, const char* key); int grib_itrie_get_size(grib_itrie* t); -/* grib_rules.cc*/ +/* grib_rules.cc */ grib_rule_entry* grib_new_rule_entry(grib_context* c, const char* name, grib_expression* expression); grib_rule* grib_new_rule(grib_context* c, grib_expression* condition, grib_rule_entry* entries); -/* grib_keys_iterator.cc*/ +/* grib_keys_iterator.cc */ grib_keys_iterator* grib_keys_iterator_new(grib_handle* h, unsigned long filter_flags, const char* name_space); int grib_keys_iterator_set_flags(grib_keys_iterator* ki, unsigned long flags); int grib_keys_iterator_rewind(grib_keys_iterator* ki); @@ -1070,7 +674,7 @@ int grib_keys_iterator_get_string(const grib_keys_iterator* kiter, char* v, size int grib_keys_iterator_get_bytes(const grib_keys_iterator* kiter, unsigned char* v, size_t* len); int grib_keys_iterator_get_native_type(const grib_keys_iterator* kiter); -/* bufr_keys_iterator.cc*/ +/* bufr_keys_iterator.cc */ bufr_keys_iterator* codes_bufr_keys_iterator_new(grib_handle* h, unsigned long filter_flags); bufr_keys_iterator* codes_bufr_data_section_keys_iterator_new(grib_handle* h); int codes_bufr_keys_iterator_rewind(bufr_keys_iterator* ki); @@ -1079,7 +683,7 @@ char* codes_bufr_keys_iterator_get_name(const bufr_keys_iterator* kiter); grib_accessor* codes_bufr_keys_iterator_get_accessor(bufr_keys_iterator* kiter); int codes_bufr_keys_iterator_delete(bufr_keys_iterator* kiter); -/* grib_parse_utils.cc*/ +/* grib_parse_utils.cc */ int grib_recompose_name(grib_handle* h, grib_accessor* observer, const char* uname, char* fname, int fail); int grib_accessors_list_print(grib_handle* h, grib_accessors_list* al, const char* name, int type, const char* format, const char* separator, int maxcols, int* newline, FILE* out); int grib_recompose_print(grib_handle* h, grib_accessor* observer, const char* uname, int fail, FILE* out); @@ -1093,17 +697,17 @@ grib_hash_array_value* grib_parse_hash_array_file(grib_context* gc, const char* grib_action* grib_parse_file(grib_context* gc, const char* filename); int grib_type_to_int(char id); -/* grib_query.cc*/ +/* grib_query.cc */ grib_accessors_list* grib_find_accessors_list(const grib_handle* h, const char* name); char* grib_split_name_attribute(grib_context* c, const char* name, char* attribute_name); grib_accessor* grib_find_accessor(const grib_handle* h, const char* name); grib_accessor* grib_find_accessor_fast(grib_handle* h, const char* name); -/* grib_scaling.cc*/ +/* grib_scaling.cc */ double grib_power(long s, long n); long grib_get_binary_scale_fact(double max, double min, long bpval, int* error); -/* grib_templates.cc*/ +/* grib_templates.cc */ grib_handle* codes_external_sample(grib_context* c, ProductKind product_kind, const char* name); char* get_external_sample_path(grib_context* c, const char* name); @@ -1117,7 +721,7 @@ void grib_dependency_remove_observer(grib_accessor* observer); void grib_dependency_observe_expression(grib_accessor* observer, grib_expression* e); void grib_dependency_observe_arguments(grib_accessor* observer, grib_arguments* a); -/* grib_value.cc*/ +/* grib_value.cc */ int grib_set_expression(grib_handle* h, const char* name, grib_expression* e); int grib_set_long_internal(grib_handle* h, const char* name, long val); int grib_set_long(grib_handle* h, const char* name, long val); @@ -1186,59 +790,59 @@ int grib_values_check(grib_handle* h, grib_values* values, int count); int codes_copy_key(grib_handle* h1, grib_handle* h2, const char* key, int type); int codes_compare_key(grib_handle* h1, grib_handle* h2, const char* key, int compare_flags); -/* grib_errors.cc*/ +/* grib_errors.cc */ const char* grib_get_error_message(int code); void grib_check(const char* call, const char* file, int line, int e, const char* msg); -/* grib_expression_class_binop.cc*/ +/* grib_expression_class_binop.cc */ grib_expression* new_binop_expression(grib_context* c, grib_binop_long_proc long_func, grib_binop_double_proc double_func, grib_expression* left, grib_expression* right); -/* grib_expression_class_logical_and.cc*/ +/* grib_expression_class_logical_and.cc */ grib_expression* new_logical_and_expression(grib_context* c, grib_expression* left, grib_expression* right); -/* grib_expression_class_logical_or.cc*/ +/* grib_expression_class_logical_or.cc */ grib_expression* new_logical_or_expression(grib_context* c, grib_expression* left, grib_expression* right); -/* grib_expression_class_is_in_dict.cc*/ +/* grib_expression_class_is_in_dict.cc */ grib_expression* new_is_in_dict_expression(grib_context* c, const char* name, const char* list); -/* grib_expression_class_true.cc*/ +/* grib_expression_class_true.cc */ grib_expression* new_true_expression(grib_context* c); -/* grib_expression_class_string_compare.cc*/ +/* grib_expression_class_string_compare.cc */ grib_expression* new_string_compare_expression(grib_context* c, grib_expression* left, grib_expression* right); -/* grib_expression_class_unop.cc*/ +/* grib_expression_class_unop.cc */ grib_expression* new_unop_expression(grib_context* c, grib_unop_long_proc long_func, grib_unop_double_proc double_func, grib_expression* exp); -/* grib_expression_class_functor.cc*/ +/* grib_expression_class_functor.cc */ grib_expression* new_func_expression(grib_context* c, const char* name, grib_arguments* args); -/* grib_expression_class_accessor.cc*/ +/* grib_expression_class_accessor.cc */ grib_expression* new_accessor_expression(grib_context* c, const char* name, long start, size_t length); -/* grib_expression_class_is_in_list.cc*/ +/* grib_expression_class_is_in_list.cc */ grib_expression* new_is_in_list_expression(grib_context* c, const char* name, const char* list); -/* grib_expression_class_is_integer.cc*/ +/* grib_expression_class_is_integer.cc */ grib_expression* new_is_integer_expression(grib_context* c, const char* name, int start, int length); -/* grib_expression_class_length.cc*/ +/* grib_expression_class_length.cc */ grib_expression* new_length_expression(grib_context* c, const char* name); -/* grib_expression_class_long.cc*/ +/* grib_expression_class_long.cc */ grib_expression* new_long_expression(grib_context* c, long value); -/* grib_expression_class_double.cc*/ +/* grib_expression_class_double.cc */ grib_expression* new_double_expression(grib_context* c, double value); -/* grib_expression_class_string.cc*/ +/* grib_expression_class_string.cc */ grib_expression* new_string_expression(grib_context* c, const char* value); -/* grib_expression_class_sub_string.cc*/ +/* grib_expression_class_sub_string.cc */ grib_expression* new_sub_string_expression(grib_context* c, const char* value, size_t start, size_t length); -/* grib_nearest.cc*/ +/* grib_nearest.cc */ int grib_nearest_find(grib_nearest* nearest, const grib_handle* h, double inlat, double inlon, unsigned long flags, double* outlats, double* outlons, double* values, double* distances, int* indexes, size_t* len); int grib_nearest_init(grib_nearest* i, grib_handle* h, grib_arguments* args); int grib_nearest_delete(grib_nearest* i); @@ -1254,28 +858,10 @@ int grib_nearest_find_generic(grib_nearest* nearest, grib_handle* h, double inla double** out_distances, double* outlats, double* outlons, double* values, double* distances, int* indexes, size_t* len); -/* grib_nearest_class.cc*/ +/* grib_nearest_class.cc */ grib_nearest* grib_nearest_factory(grib_handle* h, grib_arguments* args, int* error); -/* grib_nearest_class_gen.cc*/ - -/* grib_nearest_class_regular.cc*/ - -/* grib_nearest_class_reduced.cc*/ - -/* grib_nearest_class_latlon_reduced.cc*/ - -/* grib_nearest_class_lambert_conformal.cc*/ - -/* grib_nearest_class_polar_stereographic.cc*/ - -/* grib_iterator_class_polar_stereographic.cc*/ - -/* grib_iterator_class_lambert_azimuthal_equal_area.cc*/ - -/* grib_iterator_class_lambert_conformal.cc*/ - -/* grib_iterator.cc*/ +/* grib_iterator.cc */ int grib_get_data(const grib_handle* h, double* lats, double* lons, double* values); int grib_iterator_next(grib_iterator* i, double* lat, double* lon, double* value); int grib_iterator_has_next(grib_iterator* i); @@ -1284,25 +870,13 @@ int grib_iterator_reset(grib_iterator* i); int grib_iterator_init(grib_iterator* i, grib_handle* h, grib_arguments* args); int grib_iterator_delete(grib_iterator* i); -/* grib_iterator_class.cc*/ +/* grib_iterator_class.cc */ grib_iterator* grib_iterator_factory(grib_handle* h, grib_arguments* args, unsigned long flags, int* error); -/* grib_iterator_class_gaussian.cc*/ - -/* grib_iterator_class_gaussian_reduced.cc*/ - -/* grib_iterator_class_latlon_reduced.cc*/ - -/* grib_iterator_class_gen.cc*/ +/* grib_iterator_class_gen.cc */ int transform_iterator_data(grib_context* c, double* data, long iScansNegatively, long jScansPositively, long jPointsAreConsecutive, long alternativeRowScanning, size_t numPoints, long nx, long ny); -/* grib_iterator_class_latlon.cc*/ - -/* grib_iterator_class_regular.cc*/ - -/* grib_iterator_class_space_view.cc*/ - -/* grib_expression.cc*/ +/* grib_expression.cc */ int grib_expression_native_type(grib_handle* h, grib_expression* g); int grib_expression_evaluate_long(grib_handle* h, grib_expression* g, long* result); int grib_expression_evaluate_double(grib_handle* h, grib_expression* g, double* result); @@ -1321,7 +895,7 @@ double grib_arguments_get_double(grib_handle* h, grib_arguments* args, int n); grib_expression* grib_arguments_get_expression(grib_handle* h, grib_arguments* args, int n); int grib_arguments_get_count(grib_arguments* args); -/* codes_util.cc*/ +/* codes_util.cc */ double normalise_longitude_in_degrees(double lon); char get_dir_separator_char(void); int path_is_regular_file(const char* path); @@ -1333,7 +907,7 @@ int is_date_valid(long year, long month, long day, long hour, long minute, doubl int is_time_valid(long number); // number is HHMM int compute_scaled_value_and_scale_factor(double input, int64_t scaled_value_max, int64_t scale_factor_max, int64_t* ret_value, int64_t* ret_factor); -/* grib_util.cc*/ +/* grib_util.cc */ grib_handle* grib_util_sections_copy(grib_handle* hfrom, grib_handle* hto, int what, int* err); grib_string_list* grib_util_get_param_id(const char* mars_param); grib_string_list* grib_util_get_mars_param(const char* param_id); @@ -1352,7 +926,7 @@ int grib_check_data_values_minmax(grib_handle* h, const double min_val, const do int grib_producing_large_constant_fields(const grib_handle* h, int edition); int grib_util_grib_data_quality_check(grib_handle* h, double min_val, double max_val); -/* bufr_util.cc*/ +/* bufr_util.cc */ int compute_bufr_key_rank(grib_handle* h, grib_string_list* keys, const char* key); char** codes_bufr_copy_data_return_copied_keys(grib_handle* hin, grib_handle* hout, size_t* nkeys, int* err); int codes_bufr_copy_data(grib_handle* hin, grib_handle* hout); @@ -1362,7 +936,7 @@ int codes_bufr_key_is_header(const grib_handle* h, const char* key, int* err); int codes_bufr_key_is_coordinate(const grib_handle* h, const char* key, int* err); int codes_bufr_key_exclude_from_dump(const char* key); -/* string_util.cc*/ +/* string_util.cc */ int strcmp_nocase(const char* s1, const char* s2); void string_rtrim(char* s); void string_lrtrim(char** x, int do_left, int do_right); @@ -1376,7 +950,7 @@ const char* grib_get_type_name(int type); char* string_replace_char(char* str, char oldc, char newc); void string_remove_char(char* str, char c); -/* functions.cc*/ +/* functions.cc */ long grib_op_eq(long a, long b); long grib_op_ne(long a, long b); long grib_op_lt(long a, long b); @@ -1405,20 +979,18 @@ double grib_op_gt_d(double a, double b); double grib_op_ge_d(double a, double b); double grib_op_le_d(double a, double b); -/* codes_memfs.cc*/ +/* codes_memfs.cc */ FILE* codes_fopen(const char* name, const char* mode); int codes_access(const char* name, int mode); -/* grib_accessor_class_data_g2bifourier_packing.cc*/ - -/* grib_optimize_decimal_factor.cc*/ +/* grib_optimize_decimal_factor.cc */ int grib_optimize_decimal_factor(grib_accessor* a, const char* reference_value, const double pmax, const double pmin, const int knbit, const int compat_gribex, const int compat_32bit, long* kdec, long* kbin, double* ref); -/* grib_api_version.cc*/ +/* grib_api_version.cc */ const char* grib_get_git_sha1(void); const char* codes_get_build_date(void); -/* grib_bits_any_endian.cc*/ +/* grib_bits_any_endian.cc */ int grib_is_all_bits_one(int64_t val, long nbits); int grib_encode_string(unsigned char* bitStream, long* bitOffset, size_t numberOfCharacters, const char* string); char* grib_decode_string(const unsigned char* bitStream, long* bitOffset, size_t numberOfCharacters, char* string); @@ -1429,7 +1001,7 @@ int grib_encode_unsigned_longb(unsigned char* p, unsigned long val, long* bitp, int grib_encode_size_tb(unsigned char* p, size_t val, long* bitp, long nb); -/* grib_bits_any_endian_simple.cc*/ +/* grib_bits_any_endian_simple.cc */ int grib_decode_long_array(const unsigned char* p, long* bitp, long bitsPerValue, size_t n_vals, long* val); //int grib_decode_double_array(const unsigned char* p, long* bitp, long bitsPerValue, double reference_value, double s, double d, size_t n_vals, double* val); //int grib_decode_float_array(const unsigned char* p, long* bitp, long bitsPerValue, double reference_value, double s, double d, size_t n_vals, float* val);