BESDebug.h File Reference

#include <iostream>
#include <map>
#include <string>

Include dependency graph for BESDebug.h:

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

Go to the source code of this file.

Classes

class  BESDebug

Defines

#define I_BESDebug_h   1
 top level BES object to house generic methods
#define BESDEBUG(x, y)   { if( BESDebug::IsSet( x ) ) *(BESDebug::GetStrm()) << y ; }
 macro used to send debug information to the debut stream
#define BESISDEBUG(x)   BESDebug::IsSet( x )


Define Documentation

#define BESDEBUG ( x,
 )     { if( BESDebug::IsSet( x ) ) *(BESDebug::GetStrm()) << y ; }

macro used to send debug information to the debut stream

The BESDEBUG macro is used by developers to display debug information if the specified debug context is set to true.

example:

BESDEBUG( "bes", "function entered with values " << val1 << " and " << val2 << endl )

Parameters:
x the debug context to check
y information to send to the output stream

#define BESISDEBUG (  )     BESDebug::IsSet( x )

macro used to determine if the specified debug context is set

If there is a lot of debugging information, use this macro to determine if debug context is set.

example:

if( BESISDEBUG( "bes" ) ) { for( int i = 0; i < _list_size; i++ ) { BESDEBUG( "bes", " _list[" << i << "] = " << _list[i] << endl ) } }

Parameters:
x bes debug to check

#define I_BESDebug_h   1

top level BES object to house generic methods


Generated on Wed Nov 21 12:18:53 2007 for OPeNDAP Back End Server (BES) by  doxygen 1.4.7