bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
NCStructure Class Reference
Inheritance diagram for NCStructure:
Inheritance graph
Collaboration diagram for NCStructure:
Collaboration graph

Public Member Functions

 NCStructure (const NCStructure &rhs)
 
 NCStructure (const string &n, const string &d)
 
NCStructureoperator= (const NCStructure &rhs)
 
virtual BaseType * ptr_duplicate ()
 
virtual bool read ()
 
virtual void transfer_attributes (AttrTable *at)
 
virtual void transform_to_dap4 (D4Group *root, Constructor *container)
 

Friends

class NCArray
 

Detailed Description

Definition at line 51 of file NCStructure.h.

Constructor & Destructor Documentation

◆ NCStructure() [1/2]

NCStructure::NCStructure ( const string & n,
const string & d )

Definition at line 62 of file NCStructure.cc.

◆ NCStructure() [2/2]

NCStructure::NCStructure ( const NCStructure & rhs)

Definition at line 66 of file NCStructure.cc.

◆ ~NCStructure()

NCStructure::~NCStructure ( )
virtual

Definition at line 70 of file NCStructure.cc.

Member Function Documentation

◆ operator=()

NCStructure & NCStructure::operator= ( const NCStructure & rhs)

Definition at line 75 of file NCStructure.cc.

◆ ptr_duplicate()

BaseType * NCStructure::ptr_duplicate ( )
virtual

Definition at line 57 of file NCStructure.cc.

◆ read()

bool NCStructure::read ( )
virtual

Definition at line 239 of file NCStructure.cc.

◆ transfer_attributes()

void NCStructure::transfer_attributes ( AttrTable * at)
virtual

Transfer attributes from a separately built DAS to the DDS. This method overrides the implementation found in libdap to accommodate the special characteristics of the NC handler's DAS object. The noteworthy feature of this handler's DAS is that it lacks the specified structure that provides an easy way to match DAS and DDS items. Instead this DAS is flat.

Because this handler produces a flat DAS, the nested structures (like NCStructure) pass the entire top level AttrTable to each of their children so that they can search for their attribute table. The default implementation of this method would find the Structure's table and pass only that to the children since it 'knows' that their tables would all be found within it.

Parameters
atAn AttrTable for the entire DAS. Search this for attributes by name.
See also
NCSequence::transfer_attributes
NCGrid::transfer_attributes
NCArray::transfer_attributes

Definition at line 124 of file NCStructure.cc.

◆ transform_to_dap4()

void NCStructure::transform_to_dap4 ( D4Group * root,
Constructor * container )
virtual

Custom version of the transform_to_dap4() method. This builds a NCStructure and sets its parent to the container passed in as an argument. This has to be specialized since the version provided by libdap calls 'new Strucutre(...)' and not ptr_duplicate() since the latter will not transform the variables held in this Structure (Sequence has this issue in general as well, but it does not matter for this handler since netCDF files never hold sequence data).

Parameters
rootGet stuff like dimensions from this Group
containerThe new variable will be part of this container (caller adds).
Returns
The new DAP4-ready variable.

Definition at line 148 of file NCStructure.cc.

Friends And Related Symbol Documentation

◆ NCArray

friend class NCArray
friend

Definition at line 55 of file NCStructure.h.


The documentation for this class was generated from the following files: