Cafu Engine
cf::CompositeConsoleT Class Reference

This class implements the ConsoleI interface as a composite console by sending all output to its attached sub-consoles. More...

#include "ConsoleComposite.hpp"

Inheritance diagram for cf::CompositeConsoleT:

Public Member Functions

 CompositeConsoleT ()
 Constructor for creating a composite console. More...
 
bool Attach (ConsoleI *c)
 Attaches the given console c to the set of sub-consoles. More...
 
bool Detach (ConsoleI *c)
 Removes the given console c from the set of sub-consoles. 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 as a composite console by sending all output to its attached sub-consoles.

Constructor & Destructor Documentation

CompositeConsoleT::CompositeConsoleT ( )

Constructor for creating a composite console.

Member Function Documentation

bool CompositeConsoleT::Attach ( ConsoleI c)

Attaches the given console c to the set of sub-consoles.

bool CompositeConsoleT::Detach ( ConsoleI c)

Removes the given console c from the set of sub-consoles.

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

Print dev message to console.

Implements cf::ConsoleI.

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

Print dev warning to console.

Implements cf::ConsoleI.

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

Print message to console.

Implements cf::ConsoleI.

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

Print warning to console.

Implements cf::ConsoleI.


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