log_Stack Class Reference

List of all members.


Detailed Description

Definition at line 47 of file log_functiontracer.cpp.


Public Member Functions

 log_Stack ()
 ~log_Stack ()

Public Attributes

log_TraceStack m_stack

Private Attributes

log_Stack_l_i m_listPosition
 log_CLASSID_m

Constructor & Destructor Documentation

log_Stack::log_Stack (  ) 

Definition at line 63 of file log_functiontracer.cpp.

References cmn_Global::dbg, dbg_LOW, g_cmn, g_idKey, cmn_Global::IsDbgActive(), ivd_GETTID, log_FUNCTAG_m, m_stack, log_Debugger::Write(), and log_Debugger::WriteHeader().

Referenced by ivd_GetThreadStack().

00063                      {
00064 
00065 
00066 #if IVD_POSIX_OS
00067     int result = pthread_setspecific(g_idKey, reinterpret_cast<void*>(this) );
00068     if (result != 0) {
00069         throw ivd_SysError(
00070             result,
00071             "FATAL ERROR: g_idKey is not valid!",
00072             false); // DO NOT LOG: class used in logging!
00073     }
00074 #endif
00075     // reserves more space to prevent realocating of vector 
00076     m_stack.reserve(256);
00077     
00078     if (g_cmn.IsDbgActive()) {
00079         log_FUNCTAG_m(log_Stack);
00080         ostringstream sstr;
00081         g_cmn.dbg.WriteHeader(sstr, dbg_LOW, s_fcnID, __LINE__);
00082         sstr << "<Thread start: " << ivd_GETTID() << ">";
00083         g_cmn.dbg.Write(dbg_LOW, sstr);
00084     }
00085 }

Here is the call graph for this function:

Here is the caller graph for this function:

log_Stack::~log_Stack (  ) 

Definition at line 87 of file log_functiontracer.cpp.

References cmn_Global::dbg, dbg_LOW, g_cmn, cmn_Global::IsDbgActive(), IVD_COUT_LOG_m, ivd_GETTID, log_FUNCTAG_m, log_Debugger::Write(), and log_Debugger::WriteHeader().

00087                       {
00088     IVD_COUT_LOG_m("log_Stack::~log_Stack()" << this)
00089 
00090     if (g_cmn.IsDbgActive()) {
00091         log_FUNCTAG_m(~log_Stack);
00092         ostringstream sstr;
00093         g_cmn.dbg.WriteHeader(sstr, dbg_LOW, s_fcnID, __LINE__);
00094         sstr << "<Thread end: " << ivd_GETTID() << ">";
00095         g_cmn.dbg.Write(dbg_LOW, sstr);
00096     }
00097 }

Here is the call graph for this function:


Member Data Documentation

Definition at line 54 of file log_functiontracer.cpp.

Referenced by ivd_GetThreadStack(), and log_Stack().

Definition at line 57 of file log_functiontracer.cpp.

Definition at line 58 of file log_functiontracer.cpp.


The documentation for this class was generated from the following file:

Generated on Mon Feb 27 19:43:02 2012 for OPENARCHIVE by  doxygen 1.5.6