netcdf-C++
|
#include <ncAtt.h>
Public Member Functions | |
size_t | getAttLength () const |
std::string | getName () const |
NcGroup | getParentGroup () const |
NcType | getType () const |
void | getValues (char **dataValues) const |
void | getValues (char *dataValues) const |
void | getValues (double *dataValues) const |
void | getValues (float *dataValues) const |
void | getValues (int *dataValues) const |
void | getValues (long *dataValues) const |
void | getValues (long long *dataValues) const |
void | getValues (short *dataValues) const |
void | getValues (signed char *dataValues) const |
void | getValues (std::string &dataValues) const |
void | getValues (unsigned char *dataValues) const |
void | getValues (unsigned int *dataValues) const |
void | getValues (unsigned long long *dataValues) const |
void | getValues (unsigned short *dataValues) const |
void | getValues (void *dataValues) const |
bool | isNull () const |
NcAtt () | |
NcAtt (bool nullObject) | |
NcAtt (const NcAtt &rhs) | |
bool | operator!= (const NcAtt &rhs) const |
bool | operator== (const NcAtt &rhs) const |
virtual | ~NcAtt ()=0 |
Protected Member Functions | |
NcAtt & | operator= (const NcAtt &rhs) |
Abstract base class represents inherited by ncVarAtt and ncGroupAtt.
|
pure virtual |
destructor
NcAtt::NcAtt | ( | ) |
Constructor generates a null object.
NcAtt::NcAtt | ( | bool | nullObject | ) |
Constructor for non-null instances.
NcAtt::NcAtt | ( | const NcAtt & | rhs | ) |
The copy constructor.
size_t NcAtt::getAttLength | ( | ) | const |
Gets attribute length.
|
inline |
Get the attribute name.
netCDF::NcGroup NcAtt::getParentGroup | ( | ) | const |
Gets parent group.
NcType NcAtt::getType | ( | ) | const |
Returns the attribute type.
void NcAtt::getValues | ( | char ** | dataValues | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void NcAtt::getValues | ( | char * | dataValues | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void NcAtt::getValues | ( | double * | dataValues | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void NcAtt::getValues | ( | float * | dataValues | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void NcAtt::getValues | ( | int * | dataValues | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void NcAtt::getValues | ( | long * | dataValues | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void NcAtt::getValues | ( | long long * | dataValues | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void NcAtt::getValues | ( | short * | dataValues | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void NcAtt::getValues | ( | signed char * | dataValues | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void netCDF::NcAtt::getValues | ( | std::string & | dataValues | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. (The string variable does not need preallocating.)
void NcAtt::getValues | ( | unsigned char * | dataValues | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void NcAtt::getValues | ( | unsigned int * | dataValues | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void NcAtt::getValues | ( | unsigned long long * | dataValues | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void NcAtt::getValues | ( | unsigned short * | dataValues | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
void NcAtt::getValues | ( | void * | dataValues | ) | const |
Gets a netCDF attribute. The user must ensure that the variable "dataValues" has sufficient space to hold the attribute.
dataValues | On return contains the value of the attribute. If the type of data values differs from the netCDF variable type, type conversion will occur. (However, no type conversion is carried out for variables using the user-defined data types: nc_Vlen, nc_Opaque, nc_Compound and nc_Enum.) |
|
inline |
Returns true if this object is null (i.e. it has no contents); otherwise returns false.
bool NcAtt::operator!= | ( | const NcAtt & | rhs | ) | const |
!= operator
bool NcAtt::operator== | ( | const NcAtt & | rhs | ) | const |
equivalence operator