Public Member Functions | Public Attributes | Private Attributes

log_Stack Class Reference

List of all members.

Public Member Functions

 log_Stack ()
 ~log_Stack ()

Public Attributes

log_TraceStack m_stack

Private Attributes

log_Stack_l_i m_listPosition
 log_CLASSID_m

Detailed Description

Definition at line 61 of file log_functiontracer.cpp.


Constructor & Destructor Documentation

log_Stack::log_Stack (  ) 

Definition at line 77 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().

                     {


#if IVD_POSIX_OS
    int result = pthread_setspecific(g_idKey, reinterpret_cast<void*>(this) );
    if (result != 0) {
        throw ivd_SysError(
            result,
            "FATAL ERROR: g_idKey is not valid!",
            false); // DO NOT LOG: class used in logging!
    }
#endif
    // reserves more space to prevent realocating of vector 
    m_stack.reserve(256);
    
    if (g_cmn.IsDbgActive()) {
        log_FUNCTAG_m(log_Stack);
        ostringstream sstr;
        g_cmn.dbg.WriteHeader(sstr, dbg_LOW, s_fcnID, __LINE__);
        sstr << "<Thread start: " << ivd_GETTID() << ">";
        g_cmn.dbg.Write(dbg_LOW, sstr);
    }
}

Here is the call graph for this function:

log_Stack::~log_Stack (  ) 

Definition at line 101 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().

                      {
    IVD_COUT_LOG_m("log_Stack::~log_Stack()" << this)

    if (g_cmn.IsDbgActive()) {
        log_FUNCTAG_m(~log_Stack);
        ostringstream sstr;
        g_cmn.dbg.WriteHeader(sstr, dbg_LOW, s_fcnID, __LINE__);
        sstr << "<Thread end: " << ivd_GETTID() << ">";
        g_cmn.dbg.Write(dbg_LOW, sstr);
    }
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 72 of file log_functiontracer.cpp.

Definition at line 71 of file log_functiontracer.cpp.

Definition at line 68 of file log_functiontracer.cpp.

Referenced by ivd_GetThreadStack(), and log_Stack().


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