NCBI C++ ToolKit
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
CDiagCompileInfo Class Reference

Search Toolkit Book for CDiagCompileInfo

Incapsulate compile time information such as __FILE__, __LINE__, NCBI_MODULE, current function. More...

#include <corelib/ncbidiag.hpp>

Public Member Functions

 CDiagCompileInfo (void)
 CDiagCompileInfo:: More...
 
 CDiagCompileInfo (const char *file, int line, const char *curr_funct=NULL, const char *module=NULL)
 
 CDiagCompileInfo (const string &file, int line, const string &curr_funct, const string &module)
 
 ~CDiagCompileInfo (void)
 
const char * GetFile (void) const
 
const char * GetModule (void) const
 
int GetLine (void) const
 
const stringGetClass (void) const
 
const stringGetFunction (void) const
 

Private Member Functions

void SetFile (const string &file)
 
void SetModule (const string &module)
 
void SetLine (int line)
 
void SetFunction (const string &func)
 
void SetClass (const string &cls)
 
void ParseCurrFunctName (void) const
 
bool x_NeedModule (void) const
 

Private Attributes

const char * m_File
 
const char * m_Module
 
int m_Line
 
const char * m_CurrFunctName
 
bool m_Parsed
 
bool m_ClassSet
 
string m_ClassName
 
string m_FunctName
 
string m_StrFile
 
string m_StrModule
 
string m_StrCurrFunctName
 

Friends

class CNcbiDiag
 

Detailed Description

Incapsulate compile time information such as __FILE__, __LINE__, NCBI_MODULE, current function.

Note
NCBI_MODULE is used only in .cpp files
See also
DIAG_COMPILE_INFO
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 64 of file ncbidiag.hpp.


The documentation for this class was generated from the following files:
Modified on Sat May 11 13:53:27 2024 by modify_doxy.py rev. 669887