Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Member Functions | Protected Attributes

vl::StandardLog Class Reference

The StandardLog class outputs the log messages on the stdout device and optionally also on a specified file. More...

#include <Log.hpp>

Inheritance diagram for vl::StandardLog:
vl::Log vl::Object

List of all members.

Public Member Functions

virtual const char * className ()
 Returns the name of the class.
void setLogFile (const String &file)
const StringlogFile () const

Protected Member Functions

virtual void printImplementation (ELogLevel level, const String &message)

Protected Attributes

String mLogFile
std::ofstream mFile

Detailed Description

The StandardLog class outputs the log messages on the stdout device and optionally also on a specified file.

Definition at line 128 of file Log.hpp.


Member Function Documentation

virtual const char* vl::StandardLog::className (  ) [inline, virtual]

Returns the name of the class.

Reimplemented from vl::Log.

Definition at line 131 of file Log.hpp.

void StandardLog::setLogFile ( const String file )

Definition at line 262 of file Log.cpp.

References vl::String::empty(), mFile, mLogFile, and vl::String::toStdString().

const String& vl::StandardLog::logFile (  ) const [inline]

Definition at line 133 of file Log.hpp.

void StandardLog::printImplementation ( ELogLevel  level,
const String message 
) [protected, virtual]

Implements vl::Log.

Definition at line 273 of file Log.cpp.

References vl::String::empty(), mFile, and vl::String::toStdString().


Member Data Documentation

Definition at line 137 of file Log.hpp.

Referenced by setLogFile().

std::ofstream vl::StandardLog::mFile [protected]

Definition at line 138 of file Log.hpp.

Referenced by printImplementation(), and setLogFile().


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

Visualization Library v2011.05.1144 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Tue Sep 13 2011 21:59:07.
Permission is granted to use this page to write and publish articles regarding Visualization Library.