Arcade architecture
Program.hpp
Go to the documentation of this file.
1
12#ifndef PROGRAM_HPP
13#define PROGRAM_HPP
14
15#include <memory>
16#include "DisplayModule.hpp"
17
25class Program {
26private:
28 // std::unique_ptr<Loader::LibLoader> _gameLoader; ///< Unique pointer to the GameLoader LibLoader.
29
30 std::unique_ptr<DisplayModule> display;
31 // std::unique_ptr<GameModule> game; ///< Unique pointer to the game GameModule.
32
33public:
39 void displayAllLib();
40
46 void loadDisplayModule(const std::string &displayLib);
47
53 void initDisplay();
54
61 void stopDisplay();
62
68 Program();
69
75 ~Program();
76};
77
78#endif // PROGRAM_HPP
79
Declaration of the DisplayModule class.
A class for dynamically loading and managing modules.
Definition: LibLoader.hpp:32
Manages DisplayModule objects.
Definition: Program.hpp:25
void initDisplay()
Initializes the Program.
Definition: Program.cpp:57
void stopDisplay()
Stops all display modules.
Definition: Program.cpp:64
Loader::LibLoader _displayLoader
Unique pointer to the DisplayLoader LibLoader.
Definition: Program.hpp:27
std::unique_ptr< DisplayModule > display
Unique pointer to the display DisplayModule.
Definition: Program.hpp:30
~Program()
Destroys the Program object.
Definition: Program.cpp:12
Program()
Constructs a new Program object.
Definition: Program.cpp:10
void loadDisplayModule(const std::string &displayLib)
Load a display module.
Definition: Program.cpp:46
void displayAllLib()
Display All lib.
Definition: Program.cpp:15