WARPXM v1.10.0
Loading...
Searching...
No Matches
WxLoggerBase< T > Class Template Reference

Establishes basic interface of loggers. More...

#include <wxlogger.h>

Detailed Description

template<class T>
class WxLoggerBase< T >

Establishes basic interface of loggers.

Public Types

typedef std::map< std::string, T *, std::less< std::string > > LoggerMap_t
 
typedef std::pair< std::string, T * > LoggerPair_t
 

Static Public Member Functions

static T * get (const std::string &nm)
 Returns a logger with a given name.
 
static T * getSafe (const std::string &nm)
 Returns a logger with a given name.
 
static void cleanUp ()
 Delete all loggers registered in the system.
 

Member Typedef Documentation

◆ LoggerMap_t

template<class T >
typedef std::map<std::string, T*, std::less<std::string> > WxLoggerBase< T >::LoggerMap_t

◆ LoggerPair_t

template<class T >
typedef std::pair<std::string, T*> WxLoggerBase< T >::LoggerPair_t

Member Function Documentation

◆ cleanUp()

template<class T >
static void WxLoggerBase< T >::cleanUp ( )
inlinestatic

Delete all loggers registered in the system.

◆ get()

template<class T >
static T * WxLoggerBase< T >::get ( const std::string &  nm)
inlinestatic

Returns a logger with a given name.

If such a logger does not exist a new logger with that name is created and returned. Note that calling this method with the same name will always return the same logger object. Thus once loggers are created they become global objects.

◆ getSafe()

template<class T >
static T * WxLoggerBase< T >::getSafe ( const std::string &  nm)
inlinestatic

Returns a logger with a given name.

If such a logger does not exist an exception is thrown.


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