General Purpose Geodetic Library
|
#include <SgNetCdf.h>
Public Member Functions | |
SgNcdfAttribute () | |
SgNcdfAttribute (const QString name, nc_type typeOfData, size_t numOfElements, void *data) | |
SgNcdfAttribute (const SgNcdfAttribute &) | |
~SgNcdfAttribute () | |
const QString & | getName () const |
nc_type | getTypeOfData () const |
size_t | getNumOfElements () const |
const void * | getData () const |
void | setName (const QString &str) |
void | setTypeOfData (nc_type type) |
void | setNumOfElements (size_t num) |
void | setData (const void *, size_t) |
int | nc_get_attr (int ncid, int varid) |
int | nc_put_attr (int ncid, int varid) |
void | debug_output () |
Static Public Member Functions | |
static const QString | className () |
Private Attributes | |
QString | name_ |
nc_type | typeOfData_ |
size_t | numOfElements_ |
void * | data_ |
Definition at line 133 of file SgNetCdf.h.
SgNcdfAttribute::SgNcdfAttribute | ( | ) |
A constructor. Creates a default copy of the object.
Definition at line 277 of file SgNetCdf.cpp.
References data_, numOfElements_, and typeOfData_.
SgNcdfAttribute::SgNcdfAttribute | ( | const QString | name, |
nc_type | typeOfData, | ||
size_t | numOfElements, | ||
void * | data | ||
) |
Definition at line 288 of file SgNetCdf.cpp.
References data_, ncdfaux_data_allocate_n_copy(), numOfElements_, and typeOfData_.
SgNcdfAttribute::SgNcdfAttribute | ( | const SgNcdfAttribute & | attr | ) |
Definition at line 301 of file SgNetCdf.cpp.
References data_, getData(), getNumOfElements(), getTypeOfData(), ncdfaux_data_allocate_n_copy(), numOfElements_, setNumOfElements(), setTypeOfData(), and typeOfData_.
SgNcdfAttribute::~SgNcdfAttribute | ( | ) |
A destructor. Destroys the object.
Definition at line 313 of file SgNetCdf.cpp.
References data_, ncdfaux_data_free(), and typeOfData_.
|
static |
Returns name of the class (for debug output).
Definition at line 269 of file SgNetCdf.cpp.
Referenced by nc_get_attr(), and nc_put_attr().
void SgNcdfAttribute::debug_output | ( | ) |
Definition at line 403 of file SgNetCdf.cpp.
|
inline |
Definition at line 159 of file SgNetCdf.h.
References data_.
Referenced by SgNcdfAttribute(), SgNcdfVariable::debug_output(), and SgNetCdf::getData().
|
inline |
Definition at line 156 of file SgNetCdf.h.
References name_.
Referenced by SgNcdfVariable::addAttribute(), SgNcdfVariable::debug_output(), and SgNetCdf::putData().
|
inline |
Definition at line 158 of file SgNetCdf.h.
References numOfElements_.
Referenced by SgNcdfAttribute(), SgNcdfVariable::debug_output(), and SgNetCdf::getData().
|
inline |
Definition at line 157 of file SgNetCdf.h.
References typeOfData_.
Referenced by SgNcdfAttribute(), SgNcdfVariable::debug_output(), and SgNetCdf::getData().
int SgNcdfAttribute::nc_get_attr | ( | int | ncid, |
int | varid | ||
) |
Definition at line 332 of file SgNetCdf.cpp.
References className(), data_, SgLogger::IO_NCDF, logger, name_, ncdfaux_data_allocate(), numOfElements_, typeOfData_, SgLogger::write(), and SgLogger::WRN.
Referenced by SgNetCdf::getData().
int SgNcdfAttribute::nc_put_attr | ( | int | ncid, |
int | varid | ||
) |
Definition at line 369 of file SgNetCdf.cpp.
References className(), data_, SgLogger::ERR, SgLogger::IO_NCDF, logger, name_, numOfElements_, typeOfData_, SgLogger::write(), and SgLogger::WRN.
Referenced by SgNetCdf::putData().
void SgNcdfAttribute::setData | ( | const void * | src, |
size_t | num | ||
) |
Definition at line 322 of file SgNetCdf.cpp.
References data_, ncdfaux_data_allocate_n_copy(), ncdfaux_data_free(), and typeOfData_.
Referenced by SgVgosDb::setupFormat().
|
inline |
Definition at line 161 of file SgNetCdf.h.
References name_.
Referenced by SgNetCdf::getData(), and SgVgosDb::setupFormat().
|
inline |
Definition at line 163 of file SgNetCdf.h.
References numOfElements_.
Referenced by SgNcdfAttribute(), SgNetCdf::getData(), and SgVgosDb::setupFormat().
|
inline |
Definition at line 162 of file SgNetCdf.h.
References typeOfData_.
Referenced by SgNcdfAttribute(), SgNetCdf::getData(), and SgVgosDb::setupFormat().
|
private |
Definition at line 188 of file SgNetCdf.h.
Referenced by SgNcdfAttribute(), ~SgNcdfAttribute(), getData(), nc_get_attr(), nc_put_attr(), and setData().
|
private |
Definition at line 185 of file SgNetCdf.h.
Referenced by getName(), nc_get_attr(), nc_put_attr(), and setName().
|
private |
Definition at line 187 of file SgNetCdf.h.
Referenced by SgNcdfAttribute(), getNumOfElements(), nc_get_attr(), nc_put_attr(), and setNumOfElements().
|
private |
Definition at line 186 of file SgNetCdf.h.
Referenced by SgNcdfAttribute(), ~SgNcdfAttribute(), getTypeOfData(), nc_get_attr(), nc_put_attr(), setData(), and setTypeOfData().