#include <CDMVariable.h>
Public Member Functions | |
CDMVariable (std::string name, CDMDataType datatype, std::vector< std::string > shape) | |
virtual | ~CDMVariable () |
const std::string & | getName () const |
CDMDataType | getDataType () const |
const std::vector< std::string > & | getShape () const |
void | setAsSpatialVector (const std::string &counterpart, const std::string &direction) |
bool | isSpatialVector () const |
const std::string & | getSpatialVectorCounterpart () const |
get the spatial counterpart of this vector | |
const std::string & | getSpatialVectorDirection () const |
get the possible directions of this spatial vector (comma-separated string) | |
bool | checkDimension (const std::string &dimension) const |
void | toXMLStream (std::ostream &out) const |
print a xml representation to the stream without attributes | |
void | toXMLStream (std::ostream &out, const std::map< std::string, CDMAttribute > &attrs) const |
print a xml representation to the stream with attributes | |
void | setData (boost::shared_ptr< Data > data) |
add data to the variable | |
const boost::shared_ptr< Data > | getData () const |
retrieve data from this variable | |
int | hasData () const |
check if real data has been set with setData()} (null-pointer reference returns false) |
|
|
|
|
|
check the dimension of a variable
|
|
retrieve data from this variable retrieve data, but only if it has been set previously by setData() this method will not try to read data from the disk |
|
|
|
|
|
|
|
get the spatial counterpart of this vector
|
|
get the possible directions of this spatial vector (comma-separated string)
|
|
check if real data has been set with setData()} (null-pointer reference returns false)
|
|
test if this variable has been declared to be a spatial vector |
|
Declare this variable to be part of a spatial vector, e.g. (x-wind, y-wind)
|
|
add data to the variable
|
|
print a xml representation to the stream with attributes
|
|
print a xml representation to the stream without attributes
|