Fix header files and add copyright notices

This commit is contained in:
Shahram Najm 2023-04-21 14:09:28 +01:00
parent ddf8db8bb8
commit b1bea080ee
9 changed files with 54 additions and 9 deletions

View File

@ -1,4 +1,14 @@
# pragma once
/*
* (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"

View File

@ -9,8 +9,6 @@
*/
#include "grib_api_internal_cpp.h"
// #include <typeinfo>
#include <type_traits>
/*
This is used by make_class.pl

View File

@ -9,7 +9,6 @@
*/
#include "grib_api_internal_cpp.h"
#include <type_traits>
#include <math.h>
/*
This is used by make_class.pl

View File

@ -14,10 +14,8 @@
* Shahram Najm *
***************************************************************************/
#include "grib_api_internal.h"
//#include <typeinfo>
#include <limits>
#include <cassert>
#include <type_traits>
#include "grib_api_internal_cpp.h"
/*

View File

@ -1,3 +1,13 @@
/*
* (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_accessor.h"

View File

@ -1,4 +1,12 @@
// ECC-1467
/*
* (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

View File

@ -1,3 +1,13 @@
/*
* (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"

View File

@ -10,7 +10,10 @@
/***************************************************************************
* Jean Baptiste Filippi - 01.11.2005
***************************************************************************/
#include "grib_api_internal_cpp.h"
#include "grib_api_internal.h"
#include "grib_value.h"
#include "grib_accessor.h"
#include <float.h>
/* Note: A fast cut-down version of strcmp which does NOT return -1 */

View File

@ -1,7 +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 <typeinfo>
#include <type_traits>
template<typename T> const char* type_to_string(T) { return "unknown"; }