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

Definition at line 63 of file ncbidiag.hpp.

Constructor & Destructor Documentation

CDiagCompileInfo::CDiagCompileInfo ( void  )

CDiagCompileInfo::

Definition at line 1264 of file logging.cpp.

CDiagCompileInfo::CDiagCompileInfo ( const char *  file,
int  line,
const char *  curr_funct = NULL,
const char *  module = NULL 
)

Definition at line 552 of file ncbidiag.cpp.

References m_File, m_Module, util::strcmp(), and x_NeedModule().

CDiagCompileInfo::CDiagCompileInfo ( const string file,
int  line,
const string curr_funct,
const string module 
)

Definition at line 1289 of file logging.cpp.

References m_CurrFunctName, m_File, m_StrCurrFunctName, and m_StrFile.

CDiagCompileInfo::~CDiagCompileInfo ( void  )

Definition at line 1312 of file logging.cpp.

References m_StrCurrFunctName, and m_StrFile.

Member Function Documentation

const string& CDiagCompileInfo::GetClass ( void  ) const

Referenced by CException::x_Init().

const char* CDiagCompileInfo::GetFile ( void  ) const
const string& CDiagCompileInfo::GetFunction ( void  ) const

Referenced by CException::x_Init().

int CDiagCompileInfo::GetLine ( void  ) const
const char* CDiagCompileInfo::GetModule ( void  ) const
void CDiagCompileInfo::ParseCurrFunctName ( void  ) const
private
void CDiagCompileInfo::SetClass ( const string cls)
private

Definition at line 654 of file ncbidiag.cpp.

References m_ClassName, and m_ClassSet.

Referenced by CNcbiDiag::SetClass().

void CDiagCompileInfo::SetFile ( const string file)
private

Definition at line 619 of file ncbidiag.cpp.

References file, m_File, and m_StrFile.

Referenced by CNcbiDiag::SetFile().

void CDiagCompileInfo::SetFunction ( const string func)
private
void CDiagCompileInfo::SetLine ( int  line)
private

Definition at line 633 of file ncbidiag.cpp.

References m_Line.

void CDiagCompileInfo::SetModule ( const string module)
private

Definition at line 626 of file ncbidiag.cpp.

References m_Module, and m_StrModule.

Referenced by CNcbiDiag::SetModule().

bool CDiagCompileInfo::x_NeedModule ( void  ) const
private

Definition at line 594 of file ncbidiag.cpp.

References m_File, NULL, and util::strcmp().

Referenced by CDiagCompileInfo().

Friends And Related Function Documentation

friend class CNcbiDiag
friend

Definition at line 90 of file ncbidiag.hpp.

Member Data Documentation

string CDiagCompileInfo::m_ClassName
mutableprivate

Definition at line 115 of file ncbidiag.hpp.

Referenced by ParseCurrFunctName(), SetClass(), and SetFunction().

bool CDiagCompileInfo::m_ClassSet
mutableprivate

Definition at line 114 of file ncbidiag.hpp.

Referenced by SetClass(), and SetFunction().

const char* CDiagCompileInfo::m_CurrFunctName
private

Definition at line 112 of file ncbidiag.hpp.

Referenced by CDiagCompileInfo(), ParseCurrFunctName(), and SetFunction().

const char* CDiagCompileInfo::m_File
private

Definition at line 108 of file ncbidiag.hpp.

Referenced by CDiagCompileInfo(), SetFile(), and x_NeedModule().

string CDiagCompileInfo::m_FunctName
mutableprivate

Definition at line 116 of file ncbidiag.hpp.

Referenced by ParseCurrFunctName(), and SetFunction().

int CDiagCompileInfo::m_Line
private

Definition at line 110 of file ncbidiag.hpp.

Referenced by SetLine().

const char* CDiagCompileInfo::m_Module
private

Definition at line 109 of file ncbidiag.hpp.

Referenced by CDiagCompileInfo(), and SetModule().

bool CDiagCompileInfo::m_Parsed
mutableprivate

Definition at line 113 of file ncbidiag.hpp.

Referenced by ParseCurrFunctName(), and SetFunction().

string CDiagCompileInfo::m_StrCurrFunctName
private

Definition at line 121 of file ncbidiag.hpp.

Referenced by CDiagCompileInfo(), SetFunction(), and ~CDiagCompileInfo().

string CDiagCompileInfo::m_StrFile
private

Definition at line 119 of file ncbidiag.hpp.

Referenced by CDiagCompileInfo(), SetFile(), and ~CDiagCompileInfo().

string CDiagCompileInfo::m_StrModule
private

Definition at line 120 of file ncbidiag.hpp.

Referenced by SetModule().


The documentation for this class was generated from the following files:
Modified on Sat Mar 25 15:49:21 2017 by modify_doxy.py rev. 506947