ST_engine  0.3-ALPHA
Public Member Functions | Friends | List of all members
console Class Reference

This object represents the console window. More...

#include <console.hpp>

Public Member Functions

 console (message_bus &gMessageBus)
 
 ~console ()
 
void set_log_level (ST::log_type arg)
 
bool is_open () const
 
void update ()
 
void post_init () const
 

Friends

class drawing_manager
 
class console_test
 

Detailed Description

This object represents the console window.

Definition at line 17 of file console.hpp.

Constructor & Destructor Documentation

◆ console()

console::console ( message_bus gMessageBus)
explicit
Parameters
msg_busA pointer to the global message bus.

Definition at line 19 of file console.cpp.

◆ ~console()

console::~console ( )

Close the console.

Definition at line 248 of file console.cpp.

Member Function Documentation

◆ is_open()

bool console::is_open ( ) const
Returns
bool indicating if the console window is open.

Definition at line 227 of file console.cpp.

◆ set_log_level()

void console::set_log_level ( ST::log_type  arg)

Set the log level.

Parameters
argThe log level - this can be log_type::ERROR, log_type::INFO, log_type::SUCCESS or any of the three or'ed together.

For example: set_log_level(log_type::INFO | log_type::SUCCESS | log_type::ERROR);

Definition at line 190 of file console.cpp.

◆ update()

void console::update ( )

Consumes messages from the subscriber object.

Definition at line 346 of file console.cpp.


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