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

OFX::Log Namespace Reference


Detailed Description

this namespace wraps up logging functionality


Functions

void indent (void)
 Indent it, not MP sane at the moment.
void outdent (void)
 Outdent it, not MP sane at the moment.
void setFileName (const std::string &value)
 Sets the name of the log file.
bool open (void)
 Opens the log file, returns whether this was sucessful or not.
void close (void)
 Closes the log file.
void print (const char *format,...)
 Prints to the log file.
void warning (bool condition, const char *format,...)
 Prints to the log file only if the condition is true and prepends a warning notice.
void error (bool condition, const char *format,...)
 Prints to the log file only if the condition is true and prepends an error notice.
std::string gLogFileName (getenv(kLogFileEnvVar)?getenv(kLogFileEnvVar):"ofxTestLog.txt")
 the global logfile name
void doIndent (void)
 do the indenting

Variables

FILE * gLogFP = 0
 log file
int gIndent = 0
 global indent level, not MP sane


Function Documentation

void OFX::Log::close void   ) 
 

Closes the log file.

void doIndent void   )  [static]
 

do the indenting

void OFX::Log::error bool  condition,
const char *  format,
  ...
 

Prints to the log file only if the condition is true and prepends an error notice.

std::string gLogFileName getenv(kLogFileEnvVar)?getenv(kLogFileEnvVar):"ofxTestLog.txt"   )  [static]
 

the global logfile name

void OFX::Log::indent void   ) 
 

Indent it, not MP sane at the moment.

bool OFX::Log::open void   ) 
 

Opens the log file, returns whether this was sucessful or not.

void OFX::Log::outdent void   ) 
 

Outdent it, not MP sane at the moment.

void OFX::Log::print const char *  format,
  ...
 

Prints to the log file.

void OFX::Log::setFileName const std::string &  value  ) 
 

Sets the name of the log file.

void OFX::Log::warning bool  condition,
const char *  format,
  ...
 

Prints to the log file only if the condition is true and prepends a warning notice.


Variable Documentation

int OFX::Log::gIndent = 0 [static]
 

global indent level, not MP sane

FILE* OFX::Log::gLogFP = 0 [static]
 

log file


Generated on Thu Oct 9 13:03:50 2008 for OFX Support by  doxygen 1.3.9.1