![]() |
Documentation of UrbanFireXDT
Documentation of UrbanFireXDT
|
A thread-safe logging and status output system using ncurses. More...
#include <status_output.hpp>
Static Public Member Functions | |
| static void | add_status_output (const std::string &message) |
| Adds a message to the simulation output log. | |
| static void | add_error_message (const std::string &error) |
| Adds an error message to the error log. | |
| static void | initialize_ncurses () |
| Initializes the ncurses interface. | |
| static void | shutdown_ncurses () |
| Shuts down the ncurses interface. | |
| static void | start_status_updater_thread () |
| Starts the background thread that periodically updates the status display. | |
| static void | stop_status_updater_thread () |
| Stops the background status updater thread. | |
A thread-safe logging and status output system using ncurses.
This class provides a singleton-style interface for handling real-time status output in a terminal window divided into three panes:
It also logs messages to separate log files.
|
static |
Adds an error message to the error log.
| error | The error message to be logged. |
|
static |
Adds a message to the simulation output log.
| message | The message to be logged. |
|
static |
Initializes the ncurses interface.
This must be called at the start of main() before any output is displayed.
|
static |
Shuts down the ncurses interface.
This should be called before the program terminates to restore the terminal state.
|
static |
Starts the background thread that periodically updates the status display.
This should be called when the main simulation run starts.
|
static |
Stops the background status updater thread.
This should be called when the simulation ends to properly clean up resources.