#include <logid.h>
This class is used by macro log_SETFILE_m(). Macro uses CVS identifiers that are stored in the class' members.
Definition at line 50 of file logid.h.
Public Member Functions | |
| log_FileID () | |
| Default constructor. | |
| log_FileID (const char *a_author, const char *a_date, const char *a_file, const char *a_revision, const char *a_fullPath) | |
| virtual | ~log_FileID () |
Public Attributes | |
| string | m_author |
| string | m_date |
| string | m_file |
| string | m_revision |
| string | m_fullPath |
Private Attributes | |
| log_CLASSID_m | |
| Macro for class name member. | |
| log_FileID::log_FileID | ( | ) |
| log_FileID::log_FileID | ( | const char * | a_author, | |
| const char * | a_date, | |||
| const char * | a_file, | |||
| const char * | a_revision, | |||
| const char * | a_fullPath | |||
| ) |
Definition at line 36 of file log_fileid.cpp.
References len, m_author, m_date, m_file, m_fullPath, and m_revision.
00042 { 00043 00044 const UInt32_t authTokLen_c = 9; // "$Author: " 00045 size_t len = strlen(a_author); 00046 if (len > (authTokLen_c+2)) { 00047 m_author = string(a_author + authTokLen_c, len - (authTokLen_c+2)); 00048 } 00049 else { 00050 m_author = string(a_author); 00051 } 00052 00053 const UInt32_t dateTokLen_c = 7; // "$Date: " 00054 len = strlen(a_date); 00055 if (len > (dateTokLen_c+2)) { 00056 m_date = string(a_date + dateTokLen_c, len - (dateTokLen_c+2)); 00057 } 00058 else { 00059 m_date = string(a_date); 00060 } 00061 00062 const UInt32_t fileTokLen_c = 10; // "$RCSfile: " 00063 len = strlen(a_file); 00064 if (len > (fileTokLen_c+2)) { 00065 m_file = string(a_file + fileTokLen_c, len - (fileTokLen_c+2)); 00066 } 00067 else { 00068 m_file = string(a_file); 00069 } 00070 00071 const UInt32_t revTokLen_c = 11; // "$Revision: " 00072 len = strlen(a_revision); 00073 if (len > (revTokLen_c+2)) { 00074 m_revision = string(a_revision + revTokLen_c, len - (revTokLen_c+2)); 00075 } 00076 else { 00077 m_revision = string(a_revision); 00078 } 00079 00080 const UInt32_t pathTokLen_c = 9; // "$Source: " 00081 len = strlen(a_fullPath); 00082 if (len > (pathTokLen_c+2)) { 00083 m_fullPath = string(a_fullPath + pathTokLen_c, len - (pathTokLen_c+2)); 00084 } 00085 else { 00086 m_fullPath = string(a_fullPath); 00087 } 00088 }
| log_FileID::~log_FileID | ( | ) | [virtual] |
| string log_FileID::m_author |
| string log_FileID::m_date |
| string log_FileID::m_file |
Definition at line 68 of file logid.h.
Referenced by log_FunctionTracer::DumpStack(), ivd_BaseException::FormatText(), log_FileID(), operator<<(), and log_Debugger::WriteHeader().
| string log_FileID::m_revision |
Definition at line 69 of file logid.h.
Referenced by log_FunctionTracer::DumpStack(), log_FileID(), operator<<(), and log_Debugger::WriteHeader().
| string log_FileID::m_fullPath |
log_FileID::log_CLASSID_m [private] |
1.5.6