NetCDF4 C++ API
|
Represents a netCDF opaque type. More...
#include <NetCDF/cpp4/src/NcOpaqueType.h>
Public Member Functions | |
NcOpaqueType () | |
NcOpaqueType (int const useFileID, NcGroup const &grp, std::string const name, int const typeID) | |
ID returned by "nc_def*". More... | |
NcOpaqueType (const NcOpaqueType &rhs) | |
virtual std::string const | getTypeClassName () const |
size_t | getTypeSize () const |
![]() | |
NcTypeUserDef (int const useFileID, NcGroup const &grp, std::string const &myClassName, ncType const classTypeID, int const typeID) | |
ID returned by "nc_def*". More... | |
NcTypeUserDef (NcTypeUserDef const &rhs) | |
int | GetFileID () const |
file ID More... | |
int | GetGroupID () const |
group ID More... | |
int | GetTypeID () const |
type ID from nc_def* More... | |
virtual std::string | GetName () const |
name of this type More... | |
virtual size_t | Size () const |
size of type in bytes More... | |
NcGroup | GetParentGroup () const |
parent group More... | |
virtual ncType | getTypeClass () const |
return enum ncType More... | |
NcTypeUserDef & | operator= (NcTypeUserDef const &rhs) |
bool | operator== (NcTypeUserDef const &rhs) const |
bool | operator!= (const NcTypeUserDef &rhs) const |
bool | operator< (NcTypeUserDef const &rhs) const |
![]() | |
NcType () | |
NcType (std::string const myClassName, ncType const id) | |
enumerated type value More... | |
NcType (NcType const &rhs) | |
virtual | ~NcType () |
NcType & | operator= (NcType const &rhs) |
bool | operator== (NcType const &rhs) const |
bool | operator!= (NcType const &rhs) const |
bool | operator< (NcType const &rhs) const |
ncType | GetID () const |
virtual ncType | GetTypeClass () const |
std::string const & | getTypeClassName () const |
std::string const & | GetTypeClassName () const |
bool | IsNull () const |
![]() | |
virtual | ~NcTypeV4 ()=0 |
void | VerifyVersion4 (int const fileID) |
Additional Inherited Members | |
![]() | |
enum | ncType { nc_NAT = NC_NAT, nc_BYTE = NC_BYTE, nc_CHAR = NC_CHAR, nc_SHORT = NC_SHORT, nc_INT = NC_INT, nc_FLOAT = NC_FLOAT, nc_DOUBLE = NC_DOUBLE, nc_UBYTE = NC_UBYTE, nc_USHORT = NC_USHORT, nc_UINT = NC_UINT, nc_INT64 = NC_INT64, nc_UINT64 = NC_UINT64, nc_STRING = NC_STRING, nc_VLEN = NC_VLEN, nc_OPAQUE = NC_OPAQUE, nc_ENUM = NC_ENUM, nc_COMPOUND = NC_COMPOUND, nc_Unknown } |
![]() | |
void | ErrorDimsAreZero (std::string const &className) |
void | ErrorArrayNcSizeMismatch (std::string const &className) |
![]() | |
NcTypeV4 (std::string const useTypeClassName) | |
NcTypeV4 (NcTypeV4 const &rhs) | |
![]() | |
bool | nullObject |
std::string | myName |
enumerated type name More... | |
ncType | myID |
enumerated type value More... | |
![]() | |
static ncType const | nullID = nc_NAT |
netcdf::NcOpaqueType::NcOpaqueType | ( | ) |
Constructor generates a null object.
netcdf::NcOpaqueType::NcOpaqueType | ( | int const | useFileID, |
NcGroup const & | grp, | ||
std::string const | name, | ||
int const | typeID | ||
) |
Constructor. The opaque Type must already exist in the netCDF file. New netCDF opaque types # can be added using NcGroup::addNcOpaqueType();
grp | The parent group where this type is defined. |
name | Name of new type. |
useFileID | netCDF file ID number |
grp | parent group where this type is defined |
name | Name of new type |
|
inline |
|
inlinevirtual |
Reimplemented from netcdf::NcTypeUserDef.
size_t netcdf::NcOpaqueType::getTypeSize | ( | ) | const |
Returns the size of the opaque type in bytes.