16 #ifndef INC_netcdf_NcEnumType_h
17 #define INC_netcdf_NcEnumType_h
57 std::string
const name,
73 std::string
const name,
95 static_cast<long long>(memberValue),
97 return std::string(charName);
111 T & memberValue)
const
121 static char const *
const myTypeName;
ncEnumType
Definition: NcEnumType.h:32
NcEnumType()
Definition: NcEnumType.cpp:40
Defines a non-atomic, user-defined NetCDF4 type.
Definition: NcTypeUserDef.h:24
signed 1 byte integer
Definition: NcEnumType.h:34
virtual std::string const getTypeClassName() const
Definition: NcEnumType.h:65
std::string GetNameFromIndex(int const index) const
Definition: NcEnumType.cpp:102
NcType GetBaseType() const
Definition: NcEnumType.cpp:55
Represents a netCDF enum type.
Definition: NcEnumType.h:27
NcEnumType(NcEnumType const &rhs)
Definition: NcEnumType.h:60
int GetGroupID() const
group ID
Definition: NcTypeUserDef.h:55
int GetTypeID() const
type ID from nc_def*
Definition: NcTypeUserDef.h:56
static int const maxNameLength
max length of an NetCDF name
Definition: NcLimits.h:26
signed 4 byte integer
Definition: NcEnumType.h:36
void addMember(std::string const name, T memberValue)
Definition: NcEnumType.h:72
size_t GetCount() const
Definition: NcEnumType.cpp:91
unsigned 8-byte int
Definition: NcEnumType.h:41
#define NcCHECK(a_)
Definition: NcCheck.h:45
unsigned 2-byte int
Definition: NcEnumType.h:38
void GetValue(int const index, T &memberValue) const
Definition: NcEnumType.h:109
unsigned 4-byte int
Definition: NcEnumType.h:39
signed 8-byte int
Definition: NcEnumType.h:40
Checks the netCDF function error code and if necessary throws an exception.
Base class for all netCDF data types.
Definition: NcType.h:47
signed 2 byte integer
Definition: NcEnumType.h:35
Represents a netCDF group.
Definition: NcGroup.h:36
unsigned 1 byte int
Definition: NcEnumType.h:37
std::string GetNameFromValue(const T memberValue) const
Definition: NcEnumType.h:90