Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
BIAS::LogFacility Class Reference

#include <Base/Debug/LogFacility.hh>

Public Member Functions

bool GetAbortOnFatal ()
 
BIAS_LOG_LEVEL GetLogLevel ()
 
bool GetLogStream (std::ostream &zStream)
 
std::ostream & GetLogStream ()
 
bool GetShowCodeInfo ()
 
bool OpenLogFile (const std::string &sFileName)
 
void PrintLogLevel ()
 
bool ResetStream ()
 
void SetAbortOnFatal (bool b)
 
bool SetLogLevel (BIAS_LOG_LEVEL dLogLevel)
 
bool SetLogStream (std::ostream zStream)
 
void SetShowCodeInfo (bool b)
 

Static Public Member Functions

static void DeleteInstance ()
 avoid memory leaks by explicit delete on instance JW More...
 
static LogFacilityInstance ()
 
static void SetInstance (LogFacility *other)
 

Protected Member Functions

 LogFacility (void)
 no one can inherit from me More...
 
 LogFacility (const LogFacility &l)
 no one can copy me More...
 
LogFacilityoperator= (const LogFacility &l)
 
 ~LogFacility (void)
 

Protected Attributes

bool bAbortOnFatal_
 
bool bCodeInfo_
 
BIAS_LOG_LEVEL dLogLevel_
 
std::ofstream zLogFileStream_
 
std::ostream zLogStream_
 

Static Protected Attributes

static LogFacilitypInstance_ = NULL
 

Detailed Description

Definition at line 120 of file LogFacility.hh.

Constructor & Destructor Documentation

LogFacility::LogFacility ( void  )
protected

no one can inherit from me

Definition at line 12 of file LogFacility.cpp.

References bAbortOnFatal_, bCodeInfo_, BIAS::BIAS_LOG_DEBUG, and dLogLevel_.

LogFacility::LogFacility ( const LogFacility l)
protected

no one can copy me

Definition at line 22 of file LogFacility.cpp.

BIAS::LogFacility::~LogFacility ( void  )
inlineprotected

Definition at line 214 of file LogFacility.hh.

Member Function Documentation

void LogFacility::DeleteInstance ( )
static

avoid memory leaks by explicit delete on instance JW

Definition at line 40 of file LogFacility.cpp.

References SetInstance().

bool BIAS::LogFacility::GetAbortOnFatal ( )
inline

Definition at line 202 of file LogFacility.hh.

BIAS_LOG_LEVEL BIAS::LogFacility::GetLogLevel ( )
inline

Definition at line 152 of file LogFacility.hh.

bool BIAS::LogFacility::GetLogStream ( std::ostream &  zStream)
inline
Examples:
ExampleLogFacility.cpp.

Definition at line 163 of file LogFacility.hh.

std::ostream& BIAS::LogFacility::GetLogStream ( )
inline

Definition at line 168 of file LogFacility.hh.

bool BIAS::LogFacility::GetShowCodeInfo ( )
inline

Definition at line 195 of file LogFacility.hh.

static LogFacility* BIAS::LogFacility::Instance ( )
inlinestatic
Examples:
ExampleLogFacility.cpp.

Definition at line 124 of file LogFacility.hh.

Referenced by operator=().

bool BIAS::LogFacility::OpenLogFile ( const std::string &  sFileName)
inline
Examples:
ExampleLogFacility.cpp.

Definition at line 135 of file LogFacility.hh.

LogFacility & LogFacility::operator= ( const LogFacility l)
protected

Definition at line 26 of file LogFacility.cpp.

References Instance().

void BIAS::LogFacility::PrintLogLevel ( )
inline
bool BIAS::LogFacility::ResetStream ( )
inline

Definition at line 173 of file LogFacility.hh.

void BIAS::LogFacility::SetAbortOnFatal ( bool  b)
inline
Examples:
ExampleLogFacility.cpp.

Definition at line 199 of file LogFacility.hh.

void LogFacility::SetInstance ( LogFacility other)
static

Definition at line 31 of file LogFacility.cpp.

References pInstance_.

Referenced by DeleteInstance().

bool BIAS::LogFacility::SetLogLevel ( BIAS_LOG_LEVEL  dLogLevel)
inline
Examples:
ExampleLogFacility.cpp.

Definition at line 147 of file LogFacility.hh.

bool BIAS::LogFacility::SetLogStream ( std::ostream  zStream)
inline

Definition at line 156 of file LogFacility.hh.

void BIAS::LogFacility::SetShowCodeInfo ( bool  b)
inline
Examples:
ExampleLogFacility.cpp.

Definition at line 192 of file LogFacility.hh.

Member Data Documentation

bool BIAS::LogFacility::bAbortOnFatal_
protected

Definition at line 230 of file LogFacility.hh.

Referenced by LogFacility().

bool BIAS::LogFacility::bCodeInfo_
protected

Definition at line 229 of file LogFacility.hh.

Referenced by LogFacility().

BIAS_LOG_LEVEL BIAS::LogFacility::dLogLevel_
protected

Definition at line 226 of file LogFacility.hh.

Referenced by LogFacility().

BIAS::LogFacility * BIAS::LogFacility::pInstance_ = NULL
staticprotected

Definition at line 232 of file LogFacility.hh.

Referenced by SetInstance().

std::ofstream BIAS::LogFacility::zLogFileStream_
protected

Definition at line 228 of file LogFacility.hh.

std::ostream BIAS::LogFacility::zLogStream_
protected

Definition at line 220 of file LogFacility.hh.


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