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 I_BESDebug_h   1
 top level BES object to house generic methods

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 63 of file BESDebug.h.

Referenced by BESMemoryGlobalArea::BESMemoryGlobalArea(), BESXMLInterface::build_data_request_plan(), BESCmdInterface::build_data_request_plan(), BESCgiInterface::build_data_request_plan(), BESBasicInterface::build_data_request_plan(), BESMemoryManager::check_memory_pool(), CSVRequestHandler::csv_build_data(), CSVRequestHandler::csv_build_dds(), BESInterface::end_request(), BESDDXResponseHandler::execute(), BESInterface::execute_data_request_plan(), PPTStreamBuf::finish(), TcpSocket::getRecvBufferSize(), TcpSocket::getSendBufferSize(), SSLServer::initConnection(), SSLClient::initConnection(), StandAloneApp::initialize(), ServerApp::initialize(), SampleModule::initialize(), DAPCommandModule::initialize(), CSVModule::initialize(), CmdApp::initialize(), BESXMLDefaultCommands::initialize(), BESXMLDapCommandModule::initialize(), BESInterface::initialize(), BESDefaultModule::initialize(), BESDefaultCommands::initialize(), BESDapModule::initialize(), BESBasicInterface::initialize(), BESApacheInterface::initialize(), BESInterface::invoke_aggregation(), BESXMLGetCommand::parse_basic_get(), BESXMLShowCommand::parse_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(), PPTStreamBuf::sync(), StandAloneApp::terminate(), ServerApp::terminate(), SampleModule::terminate(), DAPCommandModule::terminate(), CSVModule::terminate(), BESXMLDefaultCommands::terminate(), BESXMLDapCommandModule::terminate(), BESDefaultModule::terminate(), BESDefaultCommands::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 82 of file BESDebug.h.

Referenced by BESCache::purge().

#define I_BESDebug_h   1

top level BES object to house generic methods

Definition at line 37 of file BESDebug.h.


Generated on 27 Oct 2009 for OPeNDAP Hyrax Back End Server (BES) by  doxygen 1.6.1