netcdfpp
Header-only NetCDF C++ wrapper
Loading...
Searching...
No Matches
Namespaces | Classes | Functions
netCDF Namespace Reference

Namespaces

namespace  detail
 
namespace  testing
 

Classes

class  Attribute
 NetCDF attribute attached to a group or variable. More...
 
class  Dimension
 NetCDF dimension. More...
 
class  Exception
 Exception thrown when a NetCDF-C call fails. More...
 
class  File
 NetCDF file handle and root group. More...
 
class  Group
 NetCDF group, including the root group represented by File. More...
 
class  Maybe
 Optional result returned by object lookup functions. More...
 
struct  SystemType
 
struct  Type
 
struct  Type< long long >
 
struct  Type< unsigned long long >
 
class  UserType
 NetCDF user-defined type. More...
 
class  Variable
 NetCDF variable. More...
 
struct  VLenElement
 RAII wrapper for one NetCDF variable-length value returned by the C API. More...
 

Functions

template<typename T , typename Function >
for_type (nc_type t, Function &&f)
 Calls a callable with a default value of the C++ type matching a NetCDF atomic type.
 
template<>
Variable Group::add_variable< std::string > (std::string name, const std::vector< int > &dims)
 
template<>
Variable Group::add_variable< std::string > (std::string name, const std::vector< Dimension > &dims)
 
template<>
Variable Group::add_variable< std::string > (std::string name, const std::vector< std::string > &dims)
 

Function Documentation

◆ for_type()

template<typename T , typename Function >
T netCDF::for_type ( nc_type  t,
Function &&  f 
)
inline

Calls a callable with a default value of the C++ type matching a NetCDF atomic type.

Exceptions
std::runtime_errorif the NetCDF type has no supported C++ mapping.

◆ Group::add_variable< std::string >() [1/3]

template<>
Variable netCDF::Group::add_variable< std::string > ( std::string  name,
const std::vector< Dimension > &  dims 
)
inline

◆ Group::add_variable< std::string >() [2/3]

template<>
Variable netCDF::Group::add_variable< std::string > ( std::string  name,
const std::vector< int > &  dims 
)
inline

◆ Group::add_variable< std::string >() [3/3]

template<>
Variable netCDF::Group::add_variable< std::string > ( std::string  name,
const std::vector< std::string > &  dims 
)
inline