Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Log Class Reference

#include <Log.h>

List of all members.

Public Member Functions

void clear ()
void setFile (char *p_filename)
void printError (char *p_text,...)
void printSuccess (char *p_text,...)
void printMisc (char *p_text,...)
void printNewline ()

Static Public Member Functions

static Loginstance ()

Private Member Functions

 Log ()
 ~Log ()
void printFile (int flag, char *p_msg)

Private Attributes

FILE * mp_file
charmp_filename

Static Private Attributes

static Logmp_instance = NULL


Detailed Description

Definition at line 29 of file Log.h.


Constructor & Destructor Documentation

Log::Log  )  [private]
 

Definition at line 13 of file Log.cpp.

References mp_file, and mp_filename.

Referenced by instance().

Log::~Log  )  [private]
 

Definition at line 18 of file Log.cpp.

References clear().

Here is the call graph for this function:


Member Function Documentation

void Log::clear  ) 
 

Definition at line 29 of file Log.cpp.

References mp_instance.

Referenced by ~Log().

Log * Log::instance  )  [static]
 

Definition at line 22 of file Log.cpp.

References Log(), and mp_instance.

Here is the call graph for this function:

void Log::printError char p_text,
  ...
 

Definition at line 53 of file Log.cpp.

References LOG_MAX_LEN, LOG_MSG_ERROR, and printFile().

Here is the call graph for this function:

void Log::printFile int  flag,
char p_msg
[private]
 

Definition at line 95 of file Log.cpp.

References LOG_MSG_ERROR, LOG_MSG_MISC, LOG_MSG_SUCCESS, mp_file, mp_filename, and setFile().

Referenced by printError(), printMisc(), and printSuccess().

Here is the call graph for this function:

void Log::printMisc char p_text,
  ...
 

Definition at line 81 of file Log.cpp.

References LOG_MAX_LEN, LOG_MSG_MISC, and printFile().

Here is the call graph for this function:

void Log::printNewline  ) 
 

Definition at line 119 of file Log.cpp.

References mp_file, mp_filename, and setFile().

Here is the call graph for this function:

void Log::printSuccess char p_text,
  ...
 

Definition at line 67 of file Log.cpp.

References LOG_MAX_LEN, LOG_MSG_SUCCESS, and printFile().

Here is the call graph for this function:

void Log::setFile char p_filename  ) 
 

Definition at line 34 of file Log.cpp.

References LOG_SUCCESS, mp_file, and mp_filename.

Referenced by printFile(), and printNewline().


Member Data Documentation

FILE* Log::mp_file [private]
 

Definition at line 46 of file Log.h.

Referenced by Log(), printFile(), printNewline(), and setFile().

char* Log::mp_filename [private]
 

Definition at line 47 of file Log.h.

Referenced by Log(), printFile(), printNewline(), and setFile().

Log * Log::mp_instance = NULL [static, private]
 

Log.cpp

Author: Petter Alstermark, petter@alstermark.com

Definition at line 10 of file Log.cpp.

Referenced by clear(), and instance().


Generated on Sun Jun 5 15:49:57 2005 for Defacto by  doxygen 1.4.3