Static Public Member Functions | Private Types | Static Private Member Functions | Static Private Attributes | List of all members
GENICAM_NAMESPACE::CLog Class Reference

This logging class initializes the logger. More...

#include <CLog.h>

Static Public Member Functions

static bool Exist (const gcstring &LoggerName)
 Checks if a category/logger exists First checks the local logger map Finally checks via ILoggerFactory::Exist() in the ILoggerFactory implementation. More...
 
static bool Exist (const char *LoggerName)
 
static ILoggerGetLogger (const gcstring &LoggerName)
 Retrieves (and if necessary create) a category by name Stores logger which have been requested before in a map. More...
 
static ILoggerGetLogger (const char *LoggerName)
 
static ILoggerFactoryGetLoggerFactory ()
 
static void OmitLogger ()
 
static void PopIndent ()
 
static void PushIndent ()
 
static void SetLoggerFactory (ILoggerFactory &)
 
static void ShutDown (void)
 de-initializes the logging framework More...
 

Private Types

typedef void * lib_handle_t
 A type corresponds to a library handle which can be platform specific. More...
 

Static Private Member Functions

static void DefaultInitializer ()
 
static void DeleteLoggerMap ()
 
static bool ExistInMap (gcstring loggerName)
 
static void * FindSymbol (lib_handle_t Handle, const gcstring Name)
 Finds a symbol and return its pointer. More...
 
static void MakeSureLoggerHasBeenFound ()
 Makes sure log4cpp has been found. More...
 
static lib_handle_t OpenLibrary (const gcstring Name)
 Opens a library. More...
 

Static Private Attributes

static lib_handle_t g_pLibHandle
 A handle to an associated logger library. More...
 
static ILoggerFactorym_LogFactory
 
static bool m_LoggerHasBeenFound
 
static bool m_OmitLogger
 

Detailed Description

This logging class initializes the logger.

By default that would be Log4cpp

Definition at line 54 of file CLog.h.

Member Typedef Documentation

A type corresponds to a library handle which can be platform specific.

Definition at line 88 of file CLog.h.

Member Function Documentation

static void GENICAM_NAMESPACE::CLog::DefaultInitializer ( )
staticprivate
static void GENICAM_NAMESPACE::CLog::DeleteLoggerMap ( )
staticprivate
static bool GENICAM_NAMESPACE::CLog::Exist ( const gcstring LoggerName)
static

Checks if a category/logger exists First checks the local logger map Finally checks via ILoggerFactory::Exist() in the ILoggerFactory implementation.

static bool GENICAM_NAMESPACE::CLog::Exist ( const char *  LoggerName)
static
static bool GENICAM_NAMESPACE::CLog::ExistInMap ( gcstring  loggerName)
staticprivate
static void* GENICAM_NAMESPACE::CLog::FindSymbol ( lib_handle_t  Handle,
const gcstring  Name 
)
staticprivate

Finds a symbol and return its pointer.

static ILogger& GENICAM_NAMESPACE::CLog::GetLogger ( const gcstring LoggerName)
static

Retrieves (and if necessary create) a category by name Stores logger which have been requested before in a map.

static ILogger& GENICAM_NAMESPACE::CLog::GetLogger ( const char *  LoggerName)
static
static ILoggerFactory* GENICAM_NAMESPACE::CLog::GetLoggerFactory ( )
static
static void GENICAM_NAMESPACE::CLog::MakeSureLoggerHasBeenFound ( )
staticprivate

Makes sure log4cpp has been found.

static void GENICAM_NAMESPACE::CLog::OmitLogger ( )
static
static lib_handle_t GENICAM_NAMESPACE::CLog::OpenLibrary ( const gcstring  Name)
staticprivate

Opens a library.

static void GENICAM_NAMESPACE::CLog::PopIndent ( )
static
static void GENICAM_NAMESPACE::CLog::PushIndent ( )
static
static void GENICAM_NAMESPACE::CLog::SetLoggerFactory ( ILoggerFactory )
static
static void GENICAM_NAMESPACE::CLog::ShutDown ( void  )
static

de-initializes the logging framework

Member Data Documentation

lib_handle_t GENICAM_NAMESPACE::CLog::g_pLibHandle
staticprivate

A handle to an associated logger library.

Definition at line 113 of file CLog.h.

ILoggerFactory* GENICAM_NAMESPACE::CLog::m_LogFactory
staticprivate

Definition at line 108 of file CLog.h.

bool GENICAM_NAMESPACE::CLog::m_LoggerHasBeenFound
staticprivate

Definition at line 116 of file CLog.h.

bool GENICAM_NAMESPACE::CLog::m_OmitLogger
staticprivate

Definition at line 117 of file CLog.h.


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


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Mar 17 2021 02:48:42