Arcade architecture
Program Class Reference

Manages DisplayModule objects. More...

#include <Program.hpp>

Collaboration diagram for Program:

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< DisplayModuledisplay
 Unique pointer to the display DisplayModule.
 

Detailed Description

Manages DisplayModule objects.

The Program class is responsible for initializing and managing three DisplayModule objects: Bar, Foo, and Gra.

Constructor & Destructor Documentation

◆ Program()

Program::Program ( )

Constructs a new Program object.

The constructor initializes the unique pointers to the DisplayModule objects.

◆ ~Program()

Program::~Program ( )

Destroys the Program object.

The destructor cleans up the resources used by the Program.

Member Function Documentation

◆ displayAllLib()

void Program::displayAllLib ( )

Display All lib.

This function permit to display all lib availables

◆ initDisplay()

void Program::initDisplay ( )

Initializes the Program.

This function initializes the Program and its DisplayModule objects.

◆ loadDisplayModule()

void Program::loadDisplayModule ( const std::string &  displayLib)

Load a display module.

This function permit to load a display Module

◆ stopDisplay()

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.


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