OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
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

Macros

#define BESDEBUG(x, y)   do { if( BESDebug::IsSet( x ) ) *(BESDebug::GetStrm()) << "[" << BESDebug::GetPidStr() << "] " << y ; } while( 0 )
 macro used to send debug information to the debug stream
#define BESISDEBUG(x)   BESDebug::IsSet( x )
 macro used to determine if the specified debug context is set

Macro Definition Documentation

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

macro used to send debug information to the debug 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:
xthe debug context to check
yinformation to send to the output stream

Definition at line 64 of file BESDebug.h.

Referenced by BESMemoryGlobalArea::BESMemoryGlobalArea(), BESXMLInterface::build_data_request_plan(), BESBasicInterface::build_data_request_plan(), BESMemoryManager::check_memory_pool(), BESInterface::end_request(), BESDDSResponseHandler::execute(), BESDataResponseHandler::execute(), BESDataDDXResponseHandler::execute(), BESDDXResponseHandler::execute(), BESInterface::execute_data_request_plan(), PPTStreamBuf::finish(), TcpSocket::getRecvBufferSize(), TcpSocket::getSendBufferSize(), DapModule::initialize(), BESDefaultModule::initialize(), BESXMLDefaultCommands::initialize(), BESDapModule::initialize(), BESXMLDapCommandModule::initialize(), StandAloneApp::initialize(), ServerApp::initialize(), CmdApp::initialize(), BESBasicInterface::initialize(), BESApacheInterface::initialize(), BESInterface::initialize(), BESInterface::invoke_aggregation(), BESXMLGetCommand::parse_basic_get(), BESXMLShowCommand::parse_request(), BESXMLDefineCommand::prep_request(), BESCache::purge(), PPTConnection::receive(), BESMemoryManager::release_global_pool(), BESInterface::report_request(), StandAloneApp::run(), ServerApp::run(), CmdApp::run(), PPTConnection::send(), BESCatalogDirectory::show_catalog(), BESStopWatch::start(), BESStopWatch::stop(), DapModule::terminate(), BESXMLDefaultCommands::terminate(), BESDefaultModule::terminate(), BESDapModule::terminate(), BESXMLDapCommandModule::terminate(), StandAloneApp::terminate(), ServerApp::terminate(), BESXMLInterface::transmit_data(), BESInterface::transmit_data(), BESUncompressZ::uncompress(), BESUncompressManager::uncompress(), and BESPlugin< C >::~BESPlugin().

#define BESISDEBUG (   x)    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:
xbes debug to check

Definition at line 83 of file BESDebug.h.

Referenced by BESCache::purge().