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 BESDEBUG(x, y)   if( BESDebug::IsSet( x ) ) *(BESDebug::GetStrm()) << "[" << BESDebug::GetPidStr() << "] " << y
 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

Define Documentation

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

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:
x the debug context to check
y information 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(), BESDDXResponseHandler::execute(), BESDataDDXResponseHandler::execute(), BESInterface::execute_data_request_plan(), PPTStreamBuf::finish(), TcpSocket::getRecvBufferSize(), TcpSocket::getSendBufferSize(), SSLServer::initConnection(), SSLClient::initConnection(), StandAloneApp::initialize(), ServerApp::initialize(), CmdApp::initialize(), BESXMLDefaultCommands::initialize(), BESXMLDapCommandModule::initialize(), BESInterface::initialize(), BESDefaultModule::initialize(), BESDapModule::initialize(), BESBasicInterface::initialize(), BESApacheInterface::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(), BESDapTransmit::send_basic_dataddx(), BESCatalogDirectory::show_catalog(), BESStopWatch::start(), BESStopWatch::stop(), StandAloneApp::terminate(), ServerApp::terminate(), BESXMLDefaultCommands::terminate(), BESXMLDapCommandModule::terminate(), BESDefaultModule::terminate(), BESDapModule::terminate(), BESXMLInterface::transmit_data(), BESInterface::transmit_data(), BESUncompressZ::uncompress(), and BESUncompressManager::uncompress().

#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

Definition at line 83 of file BESDebug.h.

Referenced by BESCache::purge().

Generated by  doxygen 1.6.2-20100208