Public Member Functions | Public Attributes | Friends

log_FunctionID Class Reference
[File, class and function identification]

#include <logid.h>

Collaboration diagram for log_FunctionID:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 log_FunctionID (const char *a_funcName, const char *a_className, const log_FileID &a_fileID, const int m_line)
 Container for function ID.
virtual ~log_FunctionID ()
void SetLine (const int a_line) const

Public Attributes

const char * m_funcName
const char * m_className
const log_FileIDm_fileID
int m_line
char m_buff [log_FUNC_NAME_BUFF_LEN]

Friends

ostream & operator<< (ostream &a_os, const log_FunctionID &a_fcnID)

Detailed Description

Definition at line 90 of file logid.h.


Constructor & Destructor Documentation

log_FunctionID::log_FunctionID ( const char *  a_funcName,
const char *  a_className,
const log_FileID a_fileID,
const int  a_line 
)

Container for function ID.

Warning:
No checking for NULL pointers is performed for performance reasons.

Definition at line 63 of file log_functionid.cpp.

References log_FUNC_NAME_BUFF_LEN, m_buff, and snprintf.

    : m_funcName(a_funcName),
      m_className(a_className),
      m_fileID(a_fileID),
      m_line(a_line) {
      
        snprintf(m_buff, log_FUNC_NAME_BUFF_LEN, "%s::%s",
                    a_className,
                    a_funcName);
}

log_FunctionID::~log_FunctionID (  )  [virtual]

Definition at line 78 of file log_functionid.cpp.

                               {
}


Member Function Documentation

void log_FunctionID::SetLine ( const int  a_line  )  const [inline]

Definition at line 103 of file logid.h.

Referenced by log_Output(), and log_Debugger::WriteHeader().

        {m_line = a_line;};

Here is the caller graph for this function:


Friends And Related Function Documentation

ostream& operator<< ( ostream &  a_os,
const log_FunctionID a_fcnID 
) [friend]

Definition at line 95 of file log_functionid.cpp.

                                                                   {
    ostringstream sStr;
    sStr << a_fcnID;
    a_os << sStr.str();
    return a_os;
}


Member Data Documentation

char log_FunctionID::m_buff[log_FUNC_NAME_BUFF_LEN]
int log_FunctionID::m_line [mutable]

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