Cafu Engine
cf::GuiSys::ConsoleByWindowT Class Reference

This class implements the cf::ConsoleI interface by means of a cf::GuiSys::WindowT, thus providing us with a GuiSys-based console. More...

#include "ConsoleByWindow.hpp"

Inheritance diagram for cf::GuiSys::ConsoleByWindowT:

Public Member Functions

 ConsoleByWindowT (IntrusivePtrT< WindowT > Win)
 Constructor for a console that is implemented by means of the given WindowT object. 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 cf::ConsoleI interface by means of a cf::GuiSys::WindowT, thus providing us with a GuiSys-based console.

It quasi acts as a kind of "mediator" between the cf::ConsoleI interface and the WindowT instance. Note that the target window must live longer than instances of this class!

Constructor & Destructor Documentation

ConsoleByWindowT::ConsoleByWindowT ( IntrusivePtrT< WindowT Win)

Constructor for a console that is implemented by means of the given WindowT object.

Member Function Documentation

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

Print dev message to console.

Implements cf::ConsoleI.

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

Print dev warning to console.

Implements cf::ConsoleI.

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

Print message to console.

Implements cf::ConsoleI.

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

Print warning to console.

Implements cf::ConsoleI.


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