Skip to content

Commit

Permalink
Modernisation: Nearest: Missing headers
Browse files Browse the repository at this point in the history
  • Loading branch information
joobog committed Nov 4, 2024
1 parent cea46fa commit 37376bf
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/accessor/grib_accessor_class_iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#pragma once

#include "grib_accessor_class_gen.h"
#include "geo_iterator/grib_iterator.h"

class grib_accessor_iterator_t : public grib_accessor_gen_t
{
Expand Down
3 changes: 2 additions & 1 deletion src/geo_iterator/grib_iterator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
/***************************************************************************
* Jean Baptiste Filippi - 01.11.2005 *
***************************************************************************/

#include "grib_iterator.h"
#include "grib_iterator_factory.h"
#include "accessor/grib_accessor_class_iterator.h"

namespace eccodes::geo_iterator {
Expand Down Expand Up @@ -55,7 +57,6 @@ int gribIteratorDelete(eccodes::geo_iterator::Iterator* i)
return GRIB_SUCCESS;
}


} // namespace eccodes::geo_iterator


Expand Down
3 changes: 1 addition & 2 deletions src/grib_iterator_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
* virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
*/

#include "grib_api_internal.h"
#include "geo_iterator/grib_iterator.h"
#include "grib_iterator_factory.h"
#include "accessor/grib_accessor_class_iterator.h"

#if GRIB_PTHREADS
Expand Down
13 changes: 13 additions & 0 deletions src/grib_iterator_factory.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
* (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.
*/

#pragma once

#include "grib_api_internal.h"
#include "geo_iterator/grib_iterator.h"

eccodes::geo_iterator::Iterator* grib_iterator_factory(grib_handle* h, grib_arguments* args, unsigned long flags, int* error);

0 comments on commit 37376bf

Please sign in to comment.