|
netcdfpp
Header-only NetCDF C++ wrapper
|
Header-only C++ wrapper for the NetCDF-C API. More...
#include <netcdf.h>#include <algorithm>#include <array>#include <cstddef>#include <cstdint>#include <cstdlib>#include <cstring>#include <memory>#include <stdexcept>#include <string>#include <type_traits>#include <utility>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | netCDF |
| namespace | netCDF::testing |
| namespace | netCDF::detail |
Macros | |
| #define | NETCDFPP_IMPL_TYPE(internal, lib) |
| #define | NETCDFPP_IMPL_ATTRIBUTE_GET(type, name) |
| #define | NETCDFPP_IMPL_ATTRIBUTE_SET(type, name) |
| #define | NETCDFPP_IMPL_VARIABLE_READ(type, name) |
| #define | NETCDFPP_IMPL_VARIABLE_WRITE(type, name) |
| #define | NETCDFPP_IMPL_ALL(type, name) |
Functions | |
| template<typename T , typename Function > | |
| T | netCDF::for_type (nc_type t, Function &&f) |
| Calls a callable with a default value of the C++ type matching a NetCDF atomic type. | |
| constexpr bool | netCDF::detail::is_user_type (nc_type type) |
| template<typename T > | |
| T * | netCDF::detail::data_or_null (std::vector< T > &v) |
| template<typename T > | |
| const T * | netCDF::detail::data_or_null (const std::vector< T > &v) |
| std::vector< std::string > | netCDF::detail::process_char_vector (std::vector< char * > &buf) |
| std::vector< std::string > | netCDF::detail::process_char_vector (char **buf, std::size_t len) |
| std::vector< const char * > | netCDF::detail::process_string_vector (const std::vector< std::string > &v) |
| template<> | |
| Variable | netCDF::Group::add_variable< std::string > (std::string name, const std::vector< int > &dims) |
| template<> | |
| Variable | netCDF::Group::add_variable< std::string > (std::string name, const std::vector< Dimension > &dims) |
| template<> | |
| Variable | netCDF::Group::add_variable< std::string > (std::string name, const std::vector< std::string > &dims) |
Header-only C++ wrapper for the NetCDF-C API.
The public API is in the netCDF namespace. Most operations forward to the NetCDF-C library and throw netCDF::Exception on NetCDF errors.
| #define NETCDFPP_IMPL_ALL | ( | type, | |
| name | |||
| ) |
| #define NETCDFPP_IMPL_ATTRIBUTE_GET | ( | type, | |
| name | |||
| ) |
| #define NETCDFPP_IMPL_ATTRIBUTE_SET | ( | type, | |
| name | |||
| ) |
| #define NETCDFPP_IMPL_TYPE | ( | internal, | |
| lib | |||
| ) |
| #define NETCDFPP_IMPL_VARIABLE_READ | ( | type, | |
| name | |||
| ) |
| #define NETCDFPP_IMPL_VARIABLE_WRITE | ( | type, | |
| name | |||
| ) |