OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TDiagBase Class Referenceabstract

#include <owl/private/checks.h>

Public Member Functions

virtual ~TDiagBase ()
 
void Trace (const tstring &msg, int level, LPCSTR file, int line)
 
void Warn (const tstring &msg, int level, LPCSTR file, int line)
 
LPCSTR GetName () const
 
void Enable (bool enable=true)
 
bool IsEnabled () const
 
void SetLevel (int level)
 
int GetLevel () const
 
void SetLocalHook (TDiagBaseHook *hook)
 
virtual TModule * GetDiagModule ()=0
 

Static Public Member Functions

static TDiagBase * GetDiagGroup (TDiagBase *curr=nullptr)
 
static TDiagBaseHook * SetGlobalHook (TDiagBaseHook *hook=nullptr)
 

Protected Member Functions

 TDiagBase (LPCSTR name, bool enable, int level)
 

Protected Attributes

LPCSTR Name
 
bool Enabled
 
int Level
 
TDiagBaseHook * LocalHook
 

Friends

class TDiagFunction
 

Detailed Description

Definition at line 52 of file checks.h.

Constructor & Destructor Documentation

◆ ~TDiagBase()

owl::TDiagBase::~TDiagBase ( )
virtual

Definition at line 192 of file checks.cpp.

◆ TDiagBase()

owl::TDiagBase::TDiagBase ( LPCSTR name,
bool enable,
int level )
protected

Definition at line 181 of file checks.cpp.

Member Function Documentation

◆ Enable()

void owl::TDiagBase::Enable ( bool enable = true)
inline

Definition at line 61 of file checks.h.

◆ GetDiagGroup()

TDiagBase * owl::TDiagBase::GetDiagGroup ( TDiagBase * curr = nullptr)
static

Definition at line 235 of file checks.cpp.

◆ GetDiagModule()

virtual TModule * owl::TDiagBase::GetDiagModule ( )
pure virtual

◆ GetLevel()

int owl::TDiagBase::GetLevel ( ) const
inline

Definition at line 64 of file checks.h.

◆ GetName()

LPCSTR owl::TDiagBase::GetName ( ) const
inline

Definition at line 60 of file checks.h.

◆ IsEnabled()

bool owl::TDiagBase::IsEnabled ( ) const
inline

Definition at line 62 of file checks.h.

◆ SetGlobalHook()

TDiagBaseHook * owl::TDiagBase::SetGlobalHook ( TDiagBaseHook * hook = nullptr)
static

Definition at line 173 of file checks.cpp.

◆ SetLevel()

void owl::TDiagBase::SetLevel ( int level)
inline

Definition at line 63 of file checks.h.

◆ SetLocalHook()

void owl::TDiagBase::SetLocalHook ( TDiagBaseHook * hook)
inline

Definition at line 65 of file checks.h.

◆ Trace()

void owl::TDiagBase::Trace ( const tstring & msg,
int level,
LPCSTR file,
int line )

Definition at line 161 of file checks.cpp.

◆ Warn()

void owl::TDiagBase::Warn ( const tstring & msg,
int level,
LPCSTR file,
int line )

Definition at line 167 of file checks.cpp.

Friends And Related Symbol Documentation

◆ TDiagFunction

Definition at line 101 of file checks.h.

Member Data Documentation

◆ Enabled

bool owl::TDiagBase::Enabled
protected

Definition at line 81 of file checks.h.

◆ Level

int owl::TDiagBase::Level
protected

Definition at line 82 of file checks.h.

◆ LocalHook

TDiagBaseHook* owl::TDiagBase::LocalHook
protected

Definition at line 83 of file checks.h.

◆ Name

LPCSTR owl::TDiagBase::Name
protected

Definition at line 80 of file checks.h.


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