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

Public Member Functions

 AsciiStructure (const string &n)
 
 AsciiStructure (Structure *bt)
 
string get_full_name ()
 
bool increment_state (vector< int > *state, const vector< int > &shape)
 
virtual void print_ascii (ostream &strm, bool print_name=true) throw (InternalErr)
 
virtual void print_header (ostream &strm)
 
virtual BaseType * ptr_duplicate ()
 
virtual void transform_to_dap4 (D4Group *root, Constructor *container)
 

Protected Attributes

BaseType * _redirect
 

Detailed Description

Definition at line 42 of file AsciiStructure.h.

Constructor & Destructor Documentation

◆ AsciiStructure() [1/2]

AsciiStructure::AsciiStructure ( const string & n)

Definition at line 56 of file AsciiStructure.cc.

◆ AsciiStructure() [2/2]

AsciiStructure::AsciiStructure ( Structure * bt)

Definition at line 61 of file AsciiStructure.cc.

◆ ~AsciiStructure()

AsciiStructure::~AsciiStructure ( )
virtual

Definition at line 80 of file AsciiStructure.cc.

Member Function Documentation

◆ get_full_name()

string AsciiOutput::get_full_name ( )
inherited

Get the fully qualified name of this object. Names of nested constructor types are separated by dots (.).

Returns
The fully qualified name of this object.

◆ increment_state()

bool AsciiOutput::increment_state ( vector< int > * state,
const vector< int > & shape )
inherited

Increment #state# to the next value given #shape#. This method uses simple modulo arithmetic to provide a way to iterate over all combinations of dimensions of an Array or Grid. The vector #shape# holds the maximum sizes of each of N dimensions. The vector #state# holds the current index values of those N dimensions. Calling this method increments #state# to the next dimension, varying the rightmost fastest.

To print DODS Array and Grid objects according to the DAP 2.0 specification, #state# and #shape# should be vectors of length N-1 for an object of dimension N.

Returns
True if there are more states, false if not.

◆ print_ascii()

void AsciiStructure::print_ascii ( ostream & strm,
bool print_name = true )
throw (InternalErr )
virtual

Print an ASCII representation for an instance of BaseType's children. This version prints the suggested output only for simple types. Complex types should overload this with their own definition.

The caller of this method is responsible for adding a trialing comma where appropriate.

Parameters
strmWrite to this stream.
print_nameIf True, write the name of the variable, a comma and then the value. If False, simply write the value.

Reimplemented from AsciiOutput.

Definition at line 112 of file AsciiStructure.cc.

◆ print_header()

void AsciiStructure::print_header ( ostream & strm)
virtual

Definition at line 95 of file AsciiStructure.cc.

◆ ptr_duplicate()

BaseType * AsciiStructure::ptr_duplicate ( )
virtual

Definition at line 51 of file AsciiStructure.cc.

◆ transform_to_dap4()

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

Definition at line 84 of file AsciiStructure.cc.

Member Data Documentation

◆ _redirect

BaseType* AsciiOutput::_redirect
protectedinherited

Definition at line 51 of file AsciiOutput.h.


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