Skip to content

Commit

Permalink
Fix the includes: Do not use ..
Browse files Browse the repository at this point in the history
  • Loading branch information
shahramn committed Apr 27, 2024
1 parent aca85e1 commit 6018a0a
Show file tree
Hide file tree
Showing 391 changed files with 8,812 additions and 189 deletions.
4 changes: 2 additions & 2 deletions src/accessor/grib_accessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

#pragma once

#include "../grib_api_internal.h"
#include "../grib_value.h"
#include "grib_api_internal.h"
#include "grib_value.h"

class grib_accessor
{
Expand Down
2 changes: 1 addition & 1 deletion src/accessor/grib_accessor_class_abstract_long_vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#ifndef eccodes_accessor_abstract_long_vector_h
#define eccodes_accessor_abstract_long_vector_h

#include "../grib_api_internal.h"
#include "grib_api_internal.h"
#include "grib_accessor_class_gen.h"

class grib_accessor_abstract_long_vector_t : public grib_accessor_gen_t
Expand Down
33 changes: 33 additions & 0 deletions src/accessor/grib_accessor_class_abstract_long_vector.h.bak
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 */
2 changes: 1 addition & 1 deletion src/accessor/grib_accessor_class_abstract_vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#ifndef eccodes_accessor_abstract_vector_h
#define eccodes_accessor_abstract_vector_h

#include "../grib_api_internal.h"
#include "grib_api_internal.h"
#include "grib_accessor_class_double.h"

class grib_accessor_abstract_vector_t : public grib_accessor_double_t
Expand Down
32 changes: 32 additions & 0 deletions src/accessor/grib_accessor_class_abstract_vector.h.bak
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 */
2 changes: 1 addition & 1 deletion src/accessor/grib_accessor_class_ascii.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#ifndef eccodes_accessor_ascii_h
#define eccodes_accessor_ascii_h

#include "../grib_api_internal.h"
#include "grib_api_internal.h"
#include "grib_accessor_class_gen.h"

class grib_accessor_ascii_t : public grib_accessor_gen_t
Expand Down
42 changes: 42 additions & 0 deletions src/accessor/grib_accessor_class_ascii.h.bak
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 */
2 changes: 1 addition & 1 deletion src/accessor/grib_accessor_class_bit.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#ifndef eccodes_accessor_bit_h
#define eccodes_accessor_bit_h

#include "../grib_api_internal.h"
#include "grib_api_internal.h"
#include "grib_accessor_class_long.h"

class grib_accessor_bit_t : public grib_accessor_long_t
Expand Down
35 changes: 35 additions & 0 deletions src/accessor/grib_accessor_class_bit.h.bak
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 */
2 changes: 1 addition & 1 deletion src/accessor/grib_accessor_class_bitmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#ifndef eccodes_accessor_bitmap_h
#define eccodes_accessor_bitmap_h

#include "../grib_api_internal.h"
#include "grib_api_internal.h"
#include "grib_accessor_class_bytes.h"

class grib_accessor_bitmap_t : public grib_accessor_bytes_t
Expand Down
45 changes: 45 additions & 0 deletions src/accessor/grib_accessor_class_bitmap.h.bak
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 */
2 changes: 1 addition & 1 deletion src/accessor/grib_accessor_class_bits.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#ifndef eccodes_accessor_bits_h
#define eccodes_accessor_bits_h

#include "../grib_api_internal.h"
#include "grib_api_internal.h"
#include "grib_accessor_class_gen.h"

class grib_accessor_bits_t : public grib_accessor_gen_t
Expand Down
45 changes: 45 additions & 0 deletions src/accessor/grib_accessor_class_bits.h.bak
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 */
2 changes: 1 addition & 1 deletion src/accessor/grib_accessor_class_bits_per_value.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#ifndef eccodes_accessor_bits_per_value_h
#define eccodes_accessor_bits_per_value_h

#include "../grib_api_internal.h"
#include "grib_api_internal.h"
#include "grib_accessor_class_long.h"

class grib_accessor_bits_per_value_t : public grib_accessor_long_t
Expand Down
35 changes: 35 additions & 0 deletions src/accessor/grib_accessor_class_bits_per_value.h.bak
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 */
2 changes: 1 addition & 1 deletion src/accessor/grib_accessor_class_blob.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#ifndef eccodes_accessor_blob_h
#define eccodes_accessor_blob_h

#include "../grib_api_internal.h"
#include "grib_api_internal.h"
#include "grib_accessor_class_gen.h"

class grib_accessor_blob_t : public grib_accessor_gen_t
Expand Down
34 changes: 34 additions & 0 deletions src/accessor/grib_accessor_class_blob.h.bak
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 */
Loading

0 comments on commit 6018a0a

Please sign in to comment.