|
Arcade architecture
|
Manages DisplayModule objects. More...
#include <Program.hpp>

Public Member Functions | |
| void | displayAllLib () |
| Display All lib. More... | |
| void | loadDisplayModule (const std::string &displayLib) |
| Load a display module. More... | |
| void | initDisplay () |
| Initializes the Program. More... | |
| void | stopDisplay () |
| Stops all display modules. More... | |
| Program () | |
| Constructs a new Program object. More... | |
| ~Program () | |
| Destroys the Program object. More... | |
Private Attributes | |
| Loader::LibLoader | _displayLoader |
| Unique pointer to the DisplayLoader LibLoader. | |
| std::unique_ptr< DisplayModule > | display |
| Unique pointer to the display DisplayModule. | |
Manages DisplayModule objects.
The Program class is responsible for initializing and managing three DisplayModule objects: Bar, Foo, and Gra.
| Program::Program | ( | ) |
Constructs a new Program object.
The constructor initializes the unique pointers to the DisplayModule objects.
| Program::~Program | ( | ) |
| void Program::displayAllLib | ( | ) |
Display All lib.
This function permit to display all lib availables
| void Program::initDisplay | ( | ) |
Initializes the Program.
This function initializes the Program and its DisplayModule objects.
| void Program::loadDisplayModule | ( | const std::string & | displayLib | ) |
Load a display module.
This function permit to load a display Module
| void Program::stopDisplay | ( | ) |
Stops all display modules.
This function is responsible for stopping all the display modules that are currently running. It ensures that all resources associated with the display modules are properly released.