EntryExit Class Reference

#include <EntryExit.h>

List of all members.

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_


Detailed Description

Definition at line 75 of file EntryExit.h.


Constructor & Destructor Documentation

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   };


Member Data Documentation

const void* EntryExit::addr_ [private]

Definition at line 123 of file EntryExit.h.

bool EntryExit::addr_set_ [private]

Definition at line 124 of file EntryExit.h.

Referenced by EntryExit().

char EntryExit::class_[26] [private]

Definition at line 116 of file EntryExit.h.

Referenced by EntryExit().

char EntryExit::method_[26] [private]

Definition at line 121 of file EntryExit.h.

Referenced by EntryExit().

unsigned EntryExit::recurse_level_ [private]

Definition at line 122 of file EntryExit.h.


The documentation for this class was generated from the following file:
Generated on Fri Feb 12 20:05:56 2016 for OpenDDS by  doxygen 1.4.7