In file ClientArray.h:

class ClientArray : public Array, public AttributeInterface

This class provides access to Array data retrieved using the DAP protocol

Inheritance:


Public Methods

ClientArray(const string &n = (char *)0, BaseType *v = 0)
Create an instance of this class
virtual ~ClientArray()
Destroy an instance of this class
virtual BaseType* ptr_duplicate()
Duplicate this instance and return a pointer to the duplicate
virtual bool read(const string &dataset, int &error)
The read method for this class always returns false; this class is designed for client-side use only
virtual void print_val(ostream &os, string space = "", bool print_decl_p = true)
Print the array values
virtual AttrTable& getAttrTable()
Get this instances attribute table
virtual void setAttrTable(AttrTable &attr)
Set this instances attribute table

Inherited from AttributeInterface:


Documentation

This class provides access to Array data retrieved using the DAP protocol. The DAP protocol can be used to transport data values as well as metadata. Using the AttributeInterface of this class, metadata from the DAP DAS object can be merged with the data. Other clients of this class can then have ready access to both the data and associated metadata for an Array variable.
ClientArray(const string &n = (char *)0, BaseType *v = 0)
Create an instance of this class
Parameters:
n - The name of the variable.
v - A template for the data type of elements of the array.

virtual ~ClientArray()
Destroy an instance of this class

virtual BaseType* ptr_duplicate()
Duplicate this instance and return a pointer to the duplicate. The duplicate is dynamically alloaced using new and must be freed using delete.
Returns:
BaseType*

virtual bool read(const string &dataset, int &error)
The read method for this class always returns false; this class is designed for client-side use only

virtual void print_val(ostream &os, string space = "", bool print_decl_p = true)
Print the array values. This method prints the values using a grammar design to encapsilate all the semantics of the DODS data types while being very simple to parse. See the design documentation for loaddods for the productions of this grammar.
Parameters:
os - Print to this stream.
space - Unused by this version of print\_val.
print - \_decl\_p Unused.

virtual AttrTable& getAttrTable()
Get this instances attribute table
Returns:
AttrTable \&

virtual void setAttrTable(AttrTable &attr)
Set this instances attribute table
Parameters:
attr - An AttrTable object which contains attribute information about this instance.


This class has no child classes.
Author:
jhrg
See Also:
Array
AttributeInterface
AttrTable

alphabetic index hierarchy of classes


generated by doc++