bes Updated for version 3.20.13
AsciiSequence Class Reference
Collaboration diagram for AsciiSequence:
Collaboration graph

Public Member Functions

 AsciiSequence (const string &n)
 
 AsciiSequence (Sequence *bt)
 
virtual int element_count (bool leaves=false)
 
string get_full_name ()
 
bool increment_state (vector< int > *state, const vector< int > &shape)
 
virtual int length () const
 
virtual void print_ascii (ostream &strm, bool print_name) throw (InternalErr)
 Print values as ASCII Prints the values of this in ASCII suitable for import into a spreadsheet. This version prints only the values of simple types; other types such as Array specialize this method (see AsciiArray::print_ascii()).
 
virtual void print_ascii_row (ostream &strm, int row, BaseTypeRow out_vars)
 
virtual void print_ascii_rows (ostream &strm, BaseTypeRow out_vars)
 
virtual void print_header (ostream &strm)
 
virtual void print_leading_vars (ostream &strm, BaseTypeRow &outer_vars)
 
virtual BaseType * ptr_duplicate ()
 

Protected Attributes

BaseType * _redirect
 

Detailed Description

Definition at line 43 of file AsciiSequence.h.

Constructor & Destructor Documentation

◆ AsciiSequence() [1/2]

AsciiSequence::AsciiSequence ( const string &  n)

Definition at line 57 of file AsciiSequence.cc.

◆ AsciiSequence() [2/2]

AsciiSequence::AsciiSequence ( Sequence bt)

Definition at line 62 of file AsciiSequence.cc.

◆ ~AsciiSequence()

AsciiSequence::~AsciiSequence ( )
virtual

Definition at line 78 of file AsciiSequence.cc.

Member Function Documentation

◆ element_count()

int AsciiSequence::element_count ( bool  leaves = false)
virtual

Definition at line 90 of file AsciiSequence.cc.

◆ 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.

Definition at line 49 of file AsciiOutput.cc.

◆ 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.

Definition at line 97 of file AsciiOutput.cc.

◆ length()

int AsciiSequence::length ( ) const
virtual

Definition at line 82 of file AsciiSequence.cc.

◆ print_ascii()

void AsciiSequence::print_ascii ( ostream &  strm,
bool  print_name 
)
throw (InternalErr
)
virtual

Print values as ASCII Prints the values of this in ASCII suitable for import into a spreadsheet. This version prints only the values of simple types; other types such as Array specialize this method (see AsciiArray::print_ascii()).

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.
strmOutput stream for values @print_name Name of this variable to include in the ASCII output.

Reimplemented from AsciiOutput.

Definition at line 222 of file AsciiSequence.cc.

◆ print_ascii_row()

void AsciiSequence::print_ascii_row ( ostream &  strm,
int  row,
BaseTypeRow  out_vars 
)
virtual

Definition at line 103 of file AsciiSequence.cc.

◆ print_ascii_rows()

void AsciiSequence::print_ascii_rows ( ostream &  strm,
BaseTypeRow  out_vars 
)
virtual

Definition at line 172 of file AsciiSequence.cc.

◆ print_header()

void AsciiSequence::print_header ( ostream &  strm)
virtual

Definition at line 194 of file AsciiSequence.cc.

◆ print_leading_vars()

void AsciiSequence::print_leading_vars ( ostream &  strm,
BaseTypeRow &  outer_vars 
)
virtual

Definition at line 151 of file AsciiSequence.cc.

◆ ptr_duplicate()

BaseType * AsciiSequence::ptr_duplicate ( )
virtual

Definition at line 52 of file AsciiSequence.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: