-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
391 changed files
with
8,812 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/accessor/grib_accessor_class_abstract_long_vector.h.bak
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
/* | ||
* (C) Copyright 2005- ECMWF. | ||
* | ||
* This software is licensed under the terms of the Apache Licence Version 2.0 | ||
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by | ||
* virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction. | ||
*/ | ||
|
||
#ifndef eccodes_accessor_abstract_long_vector_h | ||
#define eccodes_accessor_abstract_long_vector_h | ||
|
||
#include "../grib_api_internal.h" | ||
#include "grib_accessor_class_gen.h" | ||
|
||
class grib_accessor_abstract_long_vector_t : public grib_accessor_gen_t | ||
{ | ||
public: | ||
/* Members defined in abstract_long_vector */ | ||
long* v; | ||
long pack_index; | ||
int number_of_elements; | ||
}; | ||
|
||
class grib_accessor_class_abstract_long_vector_t : public grib_accessor_class_gen_t | ||
{ | ||
public: | ||
grib_accessor_class_abstract_long_vector_t(const char* name) : grib_accessor_class_gen_t(name) {} | ||
grib_accessor* create_empty_accessor() override { return new grib_accessor_abstract_long_vector_t{}; } | ||
}; | ||
#endif /* eccodes_accessor_abstract_long_vector_h */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
/* | ||
* (C) Copyright 2005- ECMWF. | ||
* | ||
* This software is licensed under the terms of the Apache Licence Version 2.0 | ||
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by | ||
* virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction. | ||
*/ | ||
|
||
#ifndef eccodes_accessor_abstract_vector_h | ||
#define eccodes_accessor_abstract_vector_h | ||
|
||
#include "../grib_api_internal.h" | ||
#include "grib_accessor_class_double.h" | ||
|
||
class grib_accessor_abstract_vector_t : public grib_accessor_double_t | ||
{ | ||
public: | ||
/* Members defined in abstract_vector */ | ||
double* v; | ||
int number_of_elements; | ||
}; | ||
|
||
class grib_accessor_class_abstract_vector_t : public grib_accessor_class_double_t | ||
{ | ||
public: | ||
grib_accessor_class_abstract_vector_t(const char* name) : grib_accessor_class_double_t(name) {} | ||
grib_accessor* create_empty_accessor() override { return new grib_accessor_abstract_vector_t{}; } | ||
}; | ||
#endif /* eccodes_accessor_abstract_vector_h */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
|
||
/* | ||
* (C) Copyright 2005- ECMWF. | ||
* | ||
* This software is licensed under the terms of the Apache Licence Version 2.0 | ||
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by | ||
* virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction. | ||
*/ | ||
|
||
#ifndef eccodes_accessor_ascii_h | ||
#define eccodes_accessor_ascii_h | ||
|
||
#include "../grib_api_internal.h" | ||
#include "grib_accessor_class_gen.h" | ||
|
||
class grib_accessor_ascii_t : public grib_accessor_gen_t | ||
{ | ||
public: | ||
/* Members defined in ascii */ | ||
}; | ||
|
||
class grib_accessor_class_ascii_t : public grib_accessor_class_gen_t | ||
{ | ||
public: | ||
grib_accessor_class_ascii_t(const char* name) : grib_accessor_class_gen_t(name) {} | ||
grib_accessor* create_empty_accessor() override { return new grib_accessor_ascii_t{}; } | ||
int get_native_type(grib_accessor*) override; | ||
int pack_double(grib_accessor*, const double* val, size_t* len) override; | ||
int pack_long(grib_accessor*, const long* val, size_t* len) override; | ||
int pack_string(grib_accessor*, const char*, size_t* len) override; | ||
int unpack_double(grib_accessor*, double* val, size_t* len) override; | ||
int unpack_long(grib_accessor*, long* val, size_t* len) override; | ||
int unpack_string(grib_accessor*, char*, size_t* len) override; | ||
size_t string_length(grib_accessor*) override; | ||
int value_count(grib_accessor*, long*) override; | ||
void dump(grib_accessor*, grib_dumper*) override; | ||
void init(grib_accessor*, const long, grib_arguments*) override; | ||
int compare(grib_accessor*, grib_accessor*) override; | ||
}; | ||
#endif /* eccodes_accessor_ascii_h */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
/* | ||
* (C) Copyright 2005- ECMWF. | ||
* | ||
* This software is licensed under the terms of the Apache Licence Version 2.0 | ||
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by | ||
* virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction. | ||
*/ | ||
|
||
#ifndef eccodes_accessor_bit_h | ||
#define eccodes_accessor_bit_h | ||
|
||
#include "../grib_api_internal.h" | ||
#include "grib_accessor_class_long.h" | ||
|
||
class grib_accessor_bit_t : public grib_accessor_long_t | ||
{ | ||
public: | ||
/* Members defined in bit */ | ||
const char* owner; | ||
int bit_index; | ||
}; | ||
|
||
class grib_accessor_class_bit_t : public grib_accessor_class_long_t | ||
{ | ||
public: | ||
grib_accessor_class_bit_t(const char* name) : grib_accessor_class_long_t(name) {} | ||
grib_accessor* create_empty_accessor() override { return new grib_accessor_bit_t{}; } | ||
int pack_long(grib_accessor*, const long* val, size_t* len) override; | ||
int unpack_long(grib_accessor*, long* val, size_t* len) override; | ||
void init(grib_accessor*, const long, grib_arguments*) override; | ||
}; | ||
#endif /* eccodes_accessor_bit_h */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
|
||
/* | ||
* (C) Copyright 2005- ECMWF. | ||
* | ||
* This software is licensed under the terms of the Apache Licence Version 2.0 | ||
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by | ||
* virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction. | ||
*/ | ||
|
||
#ifndef eccodes_accessor_bitmap_h | ||
#define eccodes_accessor_bitmap_h | ||
|
||
#include "../grib_api_internal.h" | ||
#include "grib_accessor_class_bytes.h" | ||
|
||
class grib_accessor_bitmap_t : public grib_accessor_bytes_t | ||
{ | ||
public: | ||
/* Members defined in bitmap */ | ||
const char* tableReference; | ||
const char* missing_value; | ||
const char* offsetbsec; | ||
const char* sLength; | ||
}; | ||
|
||
class grib_accessor_class_bitmap_t : public grib_accessor_class_bytes_t | ||
{ | ||
public: | ||
grib_accessor_class_bitmap_t(const char* name) : grib_accessor_class_bytes_t(name) {} | ||
grib_accessor* create_empty_accessor() override { return new grib_accessor_bitmap_t{}; } | ||
int unpack_double(grib_accessor*, double* val, size_t* len) override; | ||
int unpack_float(grib_accessor*, float* val, size_t* len) override; | ||
int unpack_long(grib_accessor*, long* val, size_t* len) override; | ||
int unpack_string(grib_accessor*, char*, size_t* len) override; | ||
size_t string_length(grib_accessor*) override; | ||
long next_offset(grib_accessor*) override; | ||
void dump(grib_accessor*, grib_dumper*) override; | ||
void init(grib_accessor*, const long, grib_arguments*) override; | ||
void update_size(grib_accessor*, size_t) override; | ||
int unpack_double_element(grib_accessor*, size_t i, double* val) override; | ||
int unpack_double_element_set(grib_accessor*, const size_t* index_array, size_t len, double* val_array) override; | ||
}; | ||
#endif /* eccodes_accessor_bitmap_h */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
|
||
/* | ||
* (C) Copyright 2005- ECMWF. | ||
* | ||
* This software is licensed under the terms of the Apache Licence Version 2.0 | ||
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by | ||
* virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction. | ||
*/ | ||
|
||
#ifndef eccodes_accessor_bits_h | ||
#define eccodes_accessor_bits_h | ||
|
||
#include "../grib_api_internal.h" | ||
#include "grib_accessor_class_gen.h" | ||
|
||
class grib_accessor_bits_t : public grib_accessor_gen_t | ||
{ | ||
public: | ||
/* Members defined in bits */ | ||
const char* argument; | ||
long start; | ||
long len; | ||
double referenceValue; | ||
double referenceValuePresent; | ||
double scale; | ||
}; | ||
|
||
class grib_accessor_class_bits_t : public grib_accessor_class_gen_t | ||
{ | ||
public: | ||
grib_accessor_class_bits_t(const char* name) : grib_accessor_class_gen_t(name) {} | ||
grib_accessor* create_empty_accessor() override { return new grib_accessor_bits_t{}; } | ||
int get_native_type(grib_accessor*) override; | ||
int pack_double(grib_accessor*, const double* val, size_t* len) override; | ||
int pack_long(grib_accessor*, const long* val, size_t* len) override; | ||
int unpack_bytes(grib_accessor*, unsigned char*, size_t* len) override; | ||
int unpack_double(grib_accessor*, double* val, size_t* len) override; | ||
int unpack_long(grib_accessor*, long* val, size_t* len) override; | ||
int unpack_string(grib_accessor*, char*, size_t* len) override; | ||
long byte_count(grib_accessor*) override; | ||
void init(grib_accessor*, const long, grib_arguments*) override; | ||
}; | ||
#endif /* eccodes_accessor_bits_h */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
/* | ||
* (C) Copyright 2005- ECMWF. | ||
* | ||
* This software is licensed under the terms of the Apache Licence Version 2.0 | ||
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by | ||
* virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction. | ||
*/ | ||
|
||
#ifndef eccodes_accessor_bits_per_value_h | ||
#define eccodes_accessor_bits_per_value_h | ||
|
||
#include "../grib_api_internal.h" | ||
#include "grib_accessor_class_long.h" | ||
|
||
class grib_accessor_bits_per_value_t : public grib_accessor_long_t | ||
{ | ||
public: | ||
/* Members defined in bits_per_value */ | ||
const char* values; | ||
const char* bits_per_value; | ||
}; | ||
|
||
class grib_accessor_class_bits_per_value_t : public grib_accessor_class_long_t | ||
{ | ||
public: | ||
grib_accessor_class_bits_per_value_t(const char* name) : grib_accessor_class_long_t(name) {} | ||
grib_accessor* create_empty_accessor() override { return new grib_accessor_bits_per_value_t{}; } | ||
int pack_long(grib_accessor*, const long* val, size_t* len) override; | ||
int unpack_long(grib_accessor*, long* val, size_t* len) override; | ||
void init(grib_accessor*, const long, grib_arguments*) override; | ||
}; | ||
#endif /* eccodes_accessor_bits_per_value_h */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
/* | ||
* (C) Copyright 2005- ECMWF. | ||
* | ||
* This software is licensed under the terms of the Apache Licence Version 2.0 | ||
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by | ||
* virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction. | ||
*/ | ||
|
||
#ifndef eccodes_accessor_blob_h | ||
#define eccodes_accessor_blob_h | ||
|
||
#include "../grib_api_internal.h" | ||
#include "grib_accessor_class_gen.h" | ||
|
||
class grib_accessor_blob_t : public grib_accessor_gen_t | ||
{ | ||
public: | ||
/* Members defined in blob */ | ||
}; | ||
|
||
class grib_accessor_class_blob_t : public grib_accessor_class_gen_t | ||
{ | ||
public: | ||
grib_accessor_class_blob_t(const char* name) : grib_accessor_class_gen_t(name) {} | ||
grib_accessor* create_empty_accessor() override { return new grib_accessor_blob_t{}; } | ||
int get_native_type(grib_accessor*) override; | ||
int unpack_bytes(grib_accessor*, unsigned char*, size_t* len) override; | ||
void dump(grib_accessor*, grib_dumper*) override; | ||
void init(grib_accessor*, const long, grib_arguments*) override; | ||
}; | ||
#endif /* eccodes_accessor_blob_h */ |
Oops, something went wrong.