#include <EntryExit.h>
Public Member Functions | |
EntryExit (const char *className, const char *methodName, const void *addr, unsigned recurse_level=0) | |
~EntryExit () | |
Private Attributes | |
char | class_ [26] |
char | method_ [26] |
unsigned | recurse_level_ |
const void * | addr_ |
bool | addr_set_ |
Definition at line 75 of file EntryExit.h.
EntryExit::EntryExit | ( | const char * | className, | |
const char * | methodName, | |||
const void * | addr, | |||
unsigned | recurse_level = 0 | |||
) | [inline] |
Definition at line 77 of file EntryExit.h.
References addr_set_, class_, method_, and OpenDDS::DCPS::Transport_debug_level.
00079 : recurse_level_(recurse_level) 00080 , addr_(addr) 00081 , addr_set_(true) { 00082 00083 ACE_UNUSED_ARG(addr_set_); 00084 00085 // No processing unless debugging turned on. 00086 if (OpenDDS::DCPS::Transport_debug_level > 0) { 00087 class_[25] = method_[25] = 0; 00088 00089 ACE_OS::strncpy(this->class_, className, 25); 00090 ACE_OS::strncpy(this->method_, methodName, 25); 00091 00092 if (this->recurse_level_ == 0) { 00093 ACE_DEBUG((LM_DEBUG, "(%P|%t) DBG: ENTRY: [%s::%s() ::%@]\n" 00094 , this->class_, this->method_, this->addr_)); 00095 00096 } else { 00097 ACE_DEBUG((LM_DEBUG, "(%P|%t) DBG: ENTRY: [%s::%s() ::%@ :%d]\n" 00098 , this->class_, this->method_, this->addr_ 00099 , this->recurse_level_)); 00100 } 00101 } 00102 };
EntryExit::~EntryExit | ( | ) | [inline] |
Definition at line 104 of file EntryExit.h.
References OpenDDS::DCPS::Transport_debug_level.
00104 { 00105 if (OpenDDS::DCPS::Transport_debug_level > 0) { 00106 if (this->recurse_level_ == 0) { 00107 ACE_DEBUG((LM_DEBUG, "(%P|%t) DBG: EXIT : [%s::%s() ::%@]\n" 00108 , this->class_, this->method_, this->addr_)); 00109 00110 } else { 00111 ACE_DEBUG((LM_DEBUG, "(%P|%t) DBG: EXIT : [%s::%s() ::%@:%d]\n" 00112 , this->class_, this->method_, this->addr_ 00113 , this->recurse_level_)); 00114 } 00115 } 00116 };
const void* EntryExit::addr_ [private] |
Definition at line 123 of file EntryExit.h.
bool EntryExit::addr_set_ [private] |
char EntryExit::class_[26] [private] |
char EntryExit::method_[26] [private] |
unsigned EntryExit::recurse_level_ [private] |
Definition at line 122 of file EntryExit.h.