|
netcdfpp
Header-only NetCDF C++ wrapper
|
NetCDF user-defined type. More...
#include <netcdfpp.h>
Classes | |
| struct | CompoundField |
| Compound field metadata. More... | |
Public Member Functions | |
| Group | parent () const |
| Returns the parent group. | |
| template<typename T > | |
| UserType | add_compound_field (const std::string &name, std::size_t offset) |
| Adds a scalar field to a compound type. | |
| template<typename T > | |
| UserType | add_compound_field_array (const std::string &name, std::size_t offset, const std::vector< int > &dim_sizes) |
| Adds an array field to a compound type. | |
| template<typename T > | |
| UserType | add_enum_member (const std::string &name, T v) |
| Adds an enum member. | |
| std::vector< CompoundField > | compound_fields () const |
| Returns compound field metadata. | |
| template<typename T > | |
| std::vector< std::pair< std::string, T > > | enum_members () const |
| Returns enum members as name/value pairs. | |
| nc_type | basetype () const |
| Returns the base NetCDF type of enum and variable-length types. | |
| std::size_t | fieldscount () const |
| Returns the number of fields in a compound type. | |
| std::size_t | memberscount () const |
| Returns the number of members in an enum type. | |
| std::size_t | bytes_size () const |
| Returns the byte size of the user-defined type. | |
| int | typeclass () const |
| Returns NC_VLEN, NC_OPAQUE, NC_ENUM, or NC_COMPOUND. | |
Public Member Functions inherited from netCDF::detail::Object | |
| const std::string & | name () const |
| int | id () const |
Friends | |
| class | Group |
| class | Maybe< UserType > |
| class | testing::TestUserType |
Additional Inherited Members | |
Protected Member Functions inherited from netCDF::detail::Object | |
| Object (std::shared_ptr< Path > path_p) | |
| void | raise_error (int ret) const |
| void | check (int ret) const |
Static Protected Member Functions inherited from netCDF::detail::Object | |
| static std::string | get_error_message (int ret) |
Protected Attributes inherited from netCDF::detail::Object | |
| std::shared_ptr< Path > | path |
NetCDF user-defined type.
|
inline |
Adds a scalar field to a compound type.
|
inline |
Adds an array field to a compound type.
|
inline |
Adds an enum member.
|
inline |
Returns the base NetCDF type of enum and variable-length types.
|
inline |
Returns the byte size of the user-defined type.
|
inline |
Returns compound field metadata.
|
inline |
Returns enum members as name/value pairs.
|
inline |
Returns the number of fields in a compound type.
|
inline |
Returns the number of members in an enum type.
|
inline |
Returns the parent group.
|
inline |
Returns NC_VLEN, NC_OPAQUE, NC_ENUM, or NC_COMPOUND.
|
friend |
|
friend |