libdap++ Updated for version 3.8.2
|
libdap base object for common functionality of libdap objects More...
#include <DapObj.h>
Public Member Functions | |
virtual void | dump (ostream &strm) const =0 |
dump the contents of this object to the specified ostream | |
virtual | ~DapObj () |
A base object for any libdap objects to use. Provides simple methods for dumping the contents of the object.
virtual void libdap::DapObj::dump | ( | ostream & | strm | ) | const [pure virtual] |
This method is implemented by all derived classes to dump their contents, in other words, any state they might have, private variables, etc...
The inline function below can be used to dump the contents of an OPeNDAOObj object. For example, the object Animal is derived from DapObj. A user could do the following:
Animal *a = new dog( "Sparky" ) ; cout << a << endl ;
And the dump method for dog could display the name passed into the constructor, the (this) pointer of the object, etc...
strm | C++ i/o stream to dump the object to |
Implemented in libdap::Array, libdap::AttrTable, libdap::BaseType, libdap::Byte, libdap::Constructor, libdap::DAS, libdap::DataDDS, libdap::DDS, libdap::Float32, libdap::Float64, libdap::Grid, libdap::Int16, libdap::Int32, libdap::Marshaller, libdap::Sequence, libdap::Str, libdap::Structure, libdap::UInt16, libdap::UInt32, libdap::UnMarshaller, libdap::Vector, libdap::XDRFileMarshaller, libdap::XDRFileUnMarshaller, libdap::XDRStreamMarshaller, and libdap::XDRStreamUnMarshaller.
Referenced by operator<<().