Cafu Engine
cf::ConsoleStdoutT Class Reference

This class implements the ConsoleI interface by printing the console output to stdout. More...

#include "ConsoleStdout.hpp"

Inheritance diagram for cf::ConsoleStdoutT:

Public Member Functions

 ConsoleStdoutT (bool AutoFlush_=false)
 Constructor for creating an instance of a ConsoleStdoutT. More...
 
void EnableAutoFlush (bool AutoFlush_)
 Enables or diables auto-flushing. More...
 
void Flush ()
 Flushes the stdout stream. 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 printing the console output to stdout.

Constructor & Destructor Documentation

ConsoleStdoutT::ConsoleStdoutT ( bool  AutoFlush_ = false)

Constructor for creating an instance of a ConsoleStdoutT.

Parameters
AutoFlush_Whether auto-flushing is enabled or not.

Member Function Documentation

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

Print dev message to console.

Implements cf::ConsoleI.

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

Print dev warning to console.

Implements cf::ConsoleI.

void ConsoleStdoutT::EnableAutoFlush ( bool  AutoFlush_)

Enables or diables auto-flushing.

If enabled, each call to the ConsoleI output functions is followed by a flush of the stdout stream.

void ConsoleStdoutT::Flush ( )

Flushes the stdout stream.

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

Print message to console.

Implements cf::ConsoleI.

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

Print warning to console.

Implements cf::ConsoleI.


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