Cafu Engine
cf::ConsoleFileT Class Reference

This class implements the ConsoleI interface by writing the console output into a text file. More...

#include "ConsoleFile.hpp"

Inheritance diagram for cf::ConsoleFileT:

Public Member Functions

 ConsoleFileT (const std::string &FileName)
 Constructor for creating an instance of a ConsoleFileT. More...
 
void SetAutoFlush (bool AutoFlush)
 Sets if the console buffer should be auto-flushed after each call to one of the Print() or Warning() methods. More...
 
void Flush ()
 Flushes the buffers so that all contents is immediately written into the file. More...
 
void Print (const std::string &s)
 Print message to console. More...
 
void DevPrint (const std::string &s)
 Print dev message to console. More...
 
void Warning (const std::string &s)
 Print warning to console. More...
 
void DevWarning (const std::string &s)
 Print dev warning to console. More...
 
- Public Member Functions inherited from cf::ConsoleI
virtual ~ConsoleI ()
 Virtual dtor so that derived classes properly destroy. More...
 

Detailed Description

This class implements the ConsoleI interface by writing the console output into a text file.

Constructor & Destructor Documentation

ConsoleFileT::ConsoleFileT ( const std::string &  FileName)

Constructor for creating an instance of a ConsoleFileT.

Parameters
FileNamePath and name of the file that the console output is to be written to.

Member Function Documentation

void ConsoleFileT::DevPrint ( const std::string &  s)
virtual

Print dev message to console.

Implements cf::ConsoleI.

void ConsoleFileT::DevWarning ( const std::string &  s)
virtual

Print dev warning to console.

Implements cf::ConsoleI.

void ConsoleFileT::Flush ( )

Flushes the buffers so that all contents is immediately written into the file.

void ConsoleFileT::Print ( const std::string &  s)
virtual

Print message to console.

Implements cf::ConsoleI.

void cf::ConsoleFileT::SetAutoFlush ( bool  AutoFlush)
inline

Sets if the console buffer should be auto-flushed after each call to one of the Print() or Warning() methods.

void ConsoleFileT::Warning ( const std::string &  s)
virtual

Print warning to console.

Implements cf::ConsoleI.


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