bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
|
A class that represents the dimension of an array. More...
#include <FONcDim.h>
Public Member Functions | |
virtual void | decref () |
Decrement the reference count for this dimension. | |
virtual void | define (int ncid) |
define the DAP dimension in the netcdf file | |
virtual void | define_struct (int ncid) |
virtual bool | defined () |
virtual int | dimid () |
virtual void | dump (std::ostream &strm) const |
dumps information about this object for debugging purposes | |
FONcDim (const std::string &name, int64_t size) | |
Constructor for FOncDim that defines the dimension of an array. | |
virtual void | incref () |
virtual std::string | name () |
virtual int64_t | size () |
virtual void | struct_decref () |
virtual void | struct_incref () |
virtual void | update_size (int64_t newsize) |
Static Public Attributes | |
static int | DimNameNum = 0 |
static int | StructDimNameNum = 0 |
A class that represents the dimension of an array.
This class represents a dimension of a DAP Array with additional information needed to write it out to a netcdf file. Since this dimension can be shared, it includes reference counting so that it can be pointed to by multiple arrays.
FONcDim::FONcDim | ( | const std::string & | name, |
int64_t | size ) |
Constructor for FOncDim that defines the dimension of an array.
name | The name of the dimension |
size | The size of the dimension |
Definition at line 50 of file FONcDim.cc.
|
virtual |
Decrement the reference count for this dimension.
Since dimensions can be shared, there might be more than one array pointing to it. For this reason, we use reference counting for the instance. if the reference count gets to zero, then the instance is deleted
Definition at line 62 of file FONcDim.cc.
|
virtual |
define the DAP dimension in the netcdf file
If the dimension has not already been created by an array that shares this dimension, then define the dimension in the netcdf file.
If the dimension name is empty, the create a default one using an incremented counter.
ncid | The id of the NetCDF file |
BESInternalError | if there is a problem defining the dimension |
Definition at line 85 of file FONcDim.cc.
|
virtual |
Definition at line 109 of file FONcDim.cc.
|
virtual |
dumps information about this object for debugging purposes
Displays the pointer value of this instance plus instance data
strm | C++ i/o stream to dump the information to |
Implements BESObj.
Definition at line 137 of file FONcDim.cc.
|
virtual |
Definition at line 68 of file FONcDim.cc.
|
inlinevirtual |