Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

DapObj.h File Reference

#include <iostream>
#include "DapIndent.h"

Include dependency graph for DapObj.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Classes

class  DapObj
 Dap object for bes objects. More...

Defines

#define A_DapObj_h   1
 top level DAP object to house generic methods

Functions

ostream & operator<< (ostream &strm, const DapObj &obj)
 dump the contents of the specified object to the specified ostream


Define Documentation

#define A_DapObj_h   1
 

Definition at line 37 of file DapObj.h.


Function Documentation

ostream& operator<< ostream &  strm,
const DapObj obj
[inline]
 

This inline method uses the dump method of the DapObj instance passed to it. This allows a user to dump the contents of an object instead of just getting the pointer value of the 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...

Parameters:
strm C++ i/o stream to dump the object to
obj The DapObj to dump

Definition at line 98 of file DapObj.h.

References DapObj::dump().

Here is the call graph for this function:


Generated on Thu Aug 2 06:43:40 2007 for libdap++ by  doxygen 1.3.9.1