#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 BESDEBUG | ( | x, | |||
y | ) | 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 ) ;
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(), CSVRequestHandler::csv_build_data(), CSVRequestHandler::csv_build_dds(), 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(), CSVModule::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(), 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(), PPTStreamBuf::sync(), StandAloneApp::terminate(), ServerApp::terminate(), CSVModule::terminate(), BESXMLDefaultCommands::terminate(), BESXMLDapCommandModule::terminate(), BESDefaultModule::terminate(), BESDapModule::terminate(), BESXMLInterface::transmit_data(), BESInterface::transmit_data(), BESUncompressZ::uncompress(), and BESUncompressManager::uncompress().
#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 ) ; } }
x | bes debug to check |
Definition at line 83 of file BESDebug.h.
Referenced by BESCache::purge().
#define I_BESDebug_h 1 |