|
netcdf-C++
|
#include <ncEnumType.h>

Public Types | |
| enum | ncEnumType { nc_BYTE = NC_BYTE, nc_SHORT = NC_SHORT, nc_INT = NC_INT, nc_UBYTE = NC_UBYTE, nc_USHORT = NC_USHORT, nc_UINT = NC_UINT, nc_INT64 = NC_INT64, nc_UINT64 = NC_UINT64 } |
Public Types inherited from netCDF::NcType | |
| enum | ncType { 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 } |
Public Member Functions | |
| template<class T > | |
| void | addMember (const std::string &name, T memberValue) |
| NcType | getBaseType () const |
| size_t | getMemberCount () const |
| std::string | getMemberNameFromIndex (int index) const |
| template<class T > | |
| std::string | getMemberNameFromValue (const T memberValue) const |
| template<class T > | |
| void | getMemberValue (int index, T &memberValue) const |
| NcEnumType () | |
| NcEnumType (const NcGroup &grp, const std::string &name) | |
| NcEnumType (const NcType &ncType) | |
| NcEnumType (const NcEnumType &rhs) | |
| NcEnumType & | operator= (const NcEnumType &rhs) |
| NcEnumType & | operator= (const NcType &rhs) |
| ~NcEnumType () | |
Public Member Functions inherited from netCDF::NcType | |
| nc_type | getId () const |
| std::string | getName () const |
| netCDF::NcGroup | getParentGroup () const |
| size_t | getSize () const |
| ncType | getTypeClass () const |
| std::string | getTypeClassName () const |
| bool | isNull () const |
| NcType () | |
| NcType (const netCDF::NcGroup &grp, const std::string &name) | |
| NcType (const netCDF::NcGroup &grp, nc_type id) | |
| NcType (nc_type id) | |
| NcType (const NcType &rhs) | |
| bool | operator!= (const NcType &) const |
| bool | operator== (const NcType &) const |
| virtual | ~NcType () |
Additional Inherited Members | |
Protected Member Functions inherited from netCDF::NcType | |
| NcType & | operator= (const NcType &rhs) |
Protected Attributes inherited from netCDF::NcType | |
| int | groupId |
| nc_type | myId |
Class represents a netCDF enum type
| NcEnumType::NcEnumType | ( | ) |
Constructor generates a null object.
| netCDF::NcEnumType::NcEnumType | ( | const NcGroup & | grp, |
| const std::string & | name | ||
| ) |
| NcEnumType::NcEnumType | ( | const NcType & | ncType | ) |
| NcEnumType::NcEnumType | ( | const NcEnumType & | rhs | ) |
The copy constructor.
|
inline |
Destructor
|
inline |
Adds a new member to this NcEnumType type.
| name | Name for this new Enum memebr. |
| memberValue | Member value, must be of the correct NcType. |
| NcType NcEnumType::getBaseType | ( | ) | const |
Returns the base type.
| size_t NcEnumType::getMemberCount | ( | ) | const |
Returns number of members in this NcEnumType object.
| string NcEnumType::getMemberNameFromIndex | ( | int | index | ) | const |
Returns the member name for the given zero-based index.
|
inline |
Returns the member name for the given NcEnumType value.
|
inline |
Returns the value of a member with the given zero-based index.
| name | Name for this new Enum member. |
| memberValue | Member value, returned by this routine. |
| NcEnumType & NcEnumType::operator= | ( | const NcEnumType & | rhs | ) |
assignment operator
| NcEnumType & NcEnumType::operator= | ( | const NcType & | rhs | ) |
1.8.9.1