BESDebug.h File Reference

#include <iostream>
#include <map>
#include <string>
#include "BESUtil.h"

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()) << "[" << BESDebug::GetPidStr() << "] " << y ; }
 macro used to send debug information to the debut stream
#define BESISDEBUG(x)   BESDebug::IsSet( x )
 macro used to determine if the specified debug context is set


Define Documentation

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

#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

Referenced by CmdClient::executeCommand(), and BESCache::purge().

#define I_BESDebug_h   1

top level BES object to house generic methods


Generated on Wed Mar 4 04:32:29 2009 for OPeNDAP Back End Server (BES) by  doxygen 1.5.8