Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OVR::Log Class Reference

#include "OVR_Log.h"

Collaboration diagram for OVR::Log:
Collaboration graph

Public Types

enum  { MaxLogBufferMessageSize = 4096 }
 

Public Member Functions

 Log (unsigned logMask=LogMask_Debug)
 
virtual ~Log ()
 
unsigned GetLoggingMask () const
 
void SetLoggingMask (unsigned logMask)
 
virtual void LogMessageVarg (LogMessageType messageType, const char *fmt, va_list argList)
 
void LogMessage (LogMessageType messageType, const char *fmt,...) OVR_LOG_VAARG_ATTRIBUTE(3
 

Static Public Member Functions

void static void FormatLog (char *buffer, unsigned bufferSize, LogMessageType messageType, const char *fmt, va_list argList)
 
static void DefaultLogOutput (const char *textBuffer, bool debug)
 
static bool IsDebugMessage (LogMessageType messageType)
 
static void SetGlobalLog (Log *log)
 
static LogGetGlobalLog ()
 
static LogGetDefaultLog ()
 
static LogConfigureDefaultLog (unsigned logMask=LogMask_Debug)
 

Private Attributes

unsigned LoggingMask
 

Friends

class System
 

Detailed Description

Definition at line 103 of file OVR_Log.h.

Member Enumeration Documentation

anonymous enum
Enumerator
MaxLogBufferMessageSize 

Definition at line 111 of file OVR_Log.h.

Constructor & Destructor Documentation

OVR::Log::Log ( unsigned  logMask = LogMask_Debug)
inline

Definition at line 107 of file OVR_Log.h.

OVR::Log::~Log ( )
virtual

Definition at line 46 of file OVR_Log.cpp.

Member Function Documentation

static Log* OVR::Log::ConfigureDefaultLog ( unsigned  logMask = LogMask_Debug)
inlinestatic

Definition at line 157 of file OVR_Log.h.

void OVR::Log::DefaultLogOutput ( const char *  textBuffer,
bool  debug 
)
static

Definition at line 106 of file OVR_Log.cpp.

void OVR::Log::FormatLog ( char *  buffer,
unsigned  bufferSize,
LogMessageType  messageType,
const char *  fmt,
va_list  argList 
)
static

Definition at line 79 of file OVR_Log.cpp.

Log * OVR::Log::GetDefaultLog ( )
static

Definition at line 152 of file OVR_Log.cpp.

Log * OVR::Log::GetGlobalLog ( )
static

Definition at line 143 of file OVR_Log.cpp.

unsigned OVR::Log::GetLoggingMask ( ) const
inline

Definition at line 113 of file OVR_Log.h.

static bool OVR::Log::IsDebugMessage ( LogMessageType  messageType)
inlinestatic

Definition at line 137 of file OVR_Log.h.

void OVR::Log::LogMessage ( LogMessageType  messageType,
const char *  fmt,
  ... 
)

Definition at line 70 of file OVR_Log.cpp.

void OVR::Log::LogMessageVarg ( LogMessageType  messageType,
const char *  fmt,
va_list  argList 
)
virtual

Definition at line 56 of file OVR_Log.cpp.

void OVR::Log::SetGlobalLog ( Log log)
static

Definition at line 138 of file OVR_Log.cpp.

void OVR::Log::SetLoggingMask ( unsigned  logMask)
inline

Definition at line 114 of file OVR_Log.h.

Friends And Related Function Documentation

friend class System
friend

Definition at line 105 of file OVR_Log.h.

Field Documentation

unsigned OVR::Log::LoggingMask
private

Definition at line 166 of file OVR_Log.h.


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