OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
AsciiStr Class Reference

#include <AsciiStr.h>

Inheritance diagram for AsciiStr:
Inheritance graph
Collaboration diagram for AsciiStr:
Collaboration graph

Public Member Functions

 AsciiStr (const string &n)
 
 AsciiStr (Str *bt)
 
string get_full_name ()
 Get the fully qualified name of this object. More...
 
bool increment_state (vector< int > *state, const vector< int > &shape)
 Increment #state# to the next value given #shape#. More...
 
virtual void print_ascii (ostream &strm, bool print_name=true) throw (InternalErr)
 Print an ASCII representation for an instance of BaseType's children. More...
 
virtual BaseType * ptr_duplicate ()
 
virtual ~AsciiStr ()
 

Protected Attributes

BaseType * _redirect
 

Detailed Description

Definition at line 42 of file AsciiStr.h.

Constructor & Destructor Documentation

AsciiStr::AsciiStr ( const string &  n)
inline

Definition at line 44 of file AsciiStr.h.

Referenced by ptr_duplicate().

AsciiStr::AsciiStr ( Str bt)
inline

Definition at line 45 of file AsciiStr.h.

virtual AsciiStr::~AsciiStr ( )
inlinevirtual

Definition at line 48 of file AsciiStr.h.

Member Function Documentation

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.

Definition at line 49 of file AsciiOutput.cc.

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.

Definition at line 98 of file AsciiOutput.cc.

void AsciiOutput::print_ascii ( ostream &  strm,
bool  print_name = true 
)
throw (InternalErr
)
virtualinherited

Print an ASCII representation for an instance of BaseType's children.

Print values as ASCII Prints the values of this in ASCII suitable for import into a spreadsheet.

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.

This version prints only the values of simple types; other types such as Array specialize this method (see AsciiArray::print_ascii()).

Parameters
strmOutput stream for values Name of this variable to include in the ASCII output.

Reimplemented in AsciiArray, AsciiSequence, AsciiGrid, and AsciiStructure.

Definition at line 73 of file AsciiOutput.cc.

Referenced by dap_asciival::get_data_values_as_ascii(), and AsciiArray::print_row().

BaseType * AsciiStr::ptr_duplicate ( )
virtual

Definition at line 44 of file AsciiStr.cc.

References AsciiStr().

Here is the call graph for this function:

Member Data Documentation

BaseType* AsciiOutput::_redirect
protectedinherited

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