Log Class Reference

Description: Log system. More...

#include <Log.h>

Inheritance diagram for Log:

Inheritance graph
[legend]
Collaboration diagram for Log:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Log ()
 Log (const char *pMethodName)
virtual ~Log ()
Logoperator<< (char *pText)
Logoperator<< (int32 value)
Logoperator<< (uint32 value)
Logoperator<< (bool value)
Logoperator<< (void *pObject)
void record (int32 align, const char *pText, const char *pMethodName)
const char * toString ()

Static Public Member Functions

static void memAlloc (char *pComponent, char *pFile, int32 line)
static void assertMsg (const char *pErrorType, const char *pFile, int32 line)
static void closeLogs ()

Static Public Attributes

static Log log


Detailed Description

Description: Log system.

Note:
There is already an static Log instance, see the Usage. See the Define.h to know how turn ON the file save.
Usage:
   01) New instance
     Log logging;
     logging << "Test";
 
   02) Static usage
     Log::log << "Test"; 

Constructor & Destructor Documentation

Log::Log (  ) 

Constructor

Log::Log ( const char *  pMethodName  )  [explicit]

Constructor

virtual Log::~Log (  )  [virtual]

Destructor


Member Function Documentation

Log& Log::operator<< ( char *  pText  ) 

Operator overload to string

Log& Log::operator<< ( int32  value  ) 

Operator overload to signed integer

Log& Log::operator<< ( uint32  value  ) 

Operator overload to unsigned integer

Log& Log::operator<< ( bool  value  ) 

Operator overload to boolean

Log& Log::operator<< ( void *  pObject  ) 

Operator overload to void*

void Log::record ( int32  align,
const char *  pText,
const char *  pMethodName 
)

This method is used to output stacktrace.

Parameters:
align align the line.
action the action of line.
methodName the method name.
See also:
TRACE_LOG definition

static void Log::memAlloc ( char *  pComponent,
char *  pFile,
int32  line 
) [static]

This method is used to output memory allocation statements.

Parameters:
pComponent the component name to be displayed.
pFile the caller file.
line the caller line.
ptr the pointer.
size the size.
See also:
MEMORY_LOG definition

MEMORY_FILE_LOG definition

static void Log::assertMsg ( const char *  pErrorType,
const char *  pFile,
int32  line 
) [static]

This method is used to output assertions.

Parameters:
pErrorType type of error.
pFile the caller file.
line the caller line.
See also:
ASSERTIOM_LOG definition

static void Log::closeLogs (  )  [static]

Used to close all the logs.

const char* Log::toString (  )  [virtual]

See also:
Object::toString()

Implements Object.


Member Data Documentation

Log Log::log [static]

Static instance


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

Generated on Mon Mar 3 10:53:09 2008 for Aika by  doxygen 1.5.5