Arcade architecture
DisplayModule.hpp
Go to the documentation of this file.
1
13#ifndef DISPLAYMODULE_HPP
14#define DISPLAYMODULE_HPP
15
16#include "IDisplayModule.hpp"
17#include "LibLoader.hpp"
27private:
28 std::unique_ptr<IDisplayModule> _object;
30public:
38
42 ~DisplayModule() override;
43
51 void init() override;
52
60 void stop() override;
61
70 const std::string &getName() const override;
71};
72
73#endif // LIBMODULE_HPP
Interface for display modules in the barcade project.
Header file for the LibLoader class, responsible for dynamically loading modules.
A class that implements the IDisplayModule interface.
Definition: DisplayModule.hpp:26
void stop() override
Stops the currently loaded display module.
Definition: DisplayModule.cpp:17
DisplayModule(IDisplayModule *)
Constructor for the DisplayModule class.
Definition: DisplayModule.cpp:29
void init() override
Initializes the display module.
Definition: DisplayModule.cpp:10
const std::string & getName() const override
Retrieves the name of the display module.
Definition: DisplayModule.cpp:24
std::unique_ptr< IDisplayModule > _object
Definition: DisplayModule.hpp:28
~DisplayModule() override
Destructor for the DisplayModule class.
Definition: DisplayModule.cpp:34
Interface for display modules.
Definition: IDisplayModule.hpp:26