Keos::ILogger Class Reference

Abstract class for loggers. More...

#include <KeosLogger.h>

Inheritance diagram for Keos::ILogger:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~ILogger ()
 Destructor.

Static Public Member Functions

static void SetLogger (ILogger *pLogger)
 Change logger instance.
static void Log (const char *strFormat,...)
 Log a message.

Protected Member Functions

String CurrentDate () const
 Return the current date.
String CurrentTime () const
 Return the current time.

Friends

class CRoot

Detailed Description

Abstract class for loggers.

Definition at line 33 of file KeosLogger.h.


Constructor & Destructor Documentation

Keos::ILogger::~ILogger (  )  [virtual]

Destructor.

Definition at line 35 of file KeosLogger.cpp.


Member Function Documentation

void Keos::ILogger::SetLogger ( ILogger pLogger  )  [static]

Change logger instance.

The instance past here will be destroyed by Logger, it must have dynamically been allocated.

Parameters:
pLogger New logger.

Definition at line 39 of file KeosLogger.cpp.

void Keos::ILogger::Log ( const char *  strFormat,
  ... 
) [static]

Log a message.

Parameters:
strFormat Format of the message.
... Optional parameters

Definition at line 53 of file KeosLogger.cpp.

References Assert, and Write().

Referenced by Keos::CResourceManager::Add(), Keos::CWin32Window::Create(), Keos::CD3D9Window::Create(), Keos::COGLRenderSystem::CreateRenderWindow(), Keos::CD3D9RenderSystem::CreateRenderWindow(), Keos::CMaterial::CreateTexture(), Keos::IRenderTarget::Init(), Keos::COGLRenderSystem::InitGL(), Keos::COGLRenderSystem::Initialise(), Keos::CD3D9RenderSystem::Initialise(), Keos::CRoot::Initialise(), Keos::CXMLConfigFile::Load(), Keos::CDynLib::Load(), Keos::CFontManager::LoadFont(), Keos::CMDLQ1Loader::LoadFromFile(), Keos::CMDLQ1AnimatedLoader::LoadFromFile(), Keos::CMD2Loader::LoadFromFile(), Keos::CMD2AnimatedLoader::LoadFromFile(), Keos::CImagesLoader::LoadFromFile(), Keos::C3DSLoader::LoadFromFile(), Keos::CRenderSystemCapabilities::Log(), Keos::CResourceManager::Remove(), Keos::CRoot::RestoreConfig(), Keos::CRoot::SaveConfig(), Keos::CImagesLoader::SaveToFile(), Keos::IRenderSystem::SetConfigOption(), Keos::CRoot::Shutdown(), Keos::IRenderSystem::Shutdown(), Keos::CDynLib::Unload(), and Keos::IRenderTarget::~IRenderTarget().

String Keos::ILogger::CurrentDate (  )  const [protected]

Return the current date.

Returns:
Current date in a string.

Definition at line 72 of file KeosLogger.cpp.

References CurrentTime().

Referenced by Keos::CLoggerFile::CLoggerFile().

String Keos::ILogger::CurrentTime (  )  const [protected]

Return the current time.

Returns:
Current time in a string.

Definition at line 83 of file KeosLogger.cpp.

Referenced by Keos::CLoggerFile::CLoggerFile(), and CurrentDate().


Friends And Related Function Documentation

friend class CRoot [friend]

Definition at line 82 of file KeosLogger.h.


The documentation for this class was generated from the following files:
Generated on Fri Mar 9 14:29:24 2007 for Keos by  doxygen 1.5.1-p1