icore
The skeleton an application is built on
Loading...
Searching...
No Matches
IAppModule.hpp
Go to the documentation of this file.
1
11#ifndef IAPP_MODULE_HPP
12#define IAPP_MODULE_HPP
13
14#include "ICore.hpp"
15#include "IModule.hpp"
16#include "IModuleManager.hpp"
17
29class IAppModule : public IModule {
30
31public:
33 static constexpr const char *entry = "getAppModule";
34
36 static constexpr const char *contract = "game";
37
39 static constexpr const char *accepts[] = {"game", nullptr};
40
41 virtual ~IAppModule() = default;
42
52 virtual IApp *createApp(IModuleManager &modules) = 0;
53
59 virtual void deleteApp(IApp *app) = 0;
60};
61
64#endif /* !IAPP_MODULE_HPP */
Le socle d'un programme : ICore (une action) et IApp (une boucle).
La fabrique qu'exporte une application chargeable.
Definition IAppModule.hpp:29
virtual void deleteApp(IApp *app)=0
La detruit. Toujours par la bibliotheque qui l'a construite.
static constexpr const char * contract
Ce que type() doit rendre.
Definition IAppModule.hpp:36
static constexpr const char * entry
Le symbole que le chargeur cherche.
Definition IAppModule.hpp:33
virtual IApp * createApp(IModuleManager &modules)=0
Construit l'application.
static constexpr const char * accepts[]
Les contrats que ce type accepte.
Definition IAppModule.hpp:39
virtual ~IAppModule()=default
Une application a boucle. Elle tourne seule, ou se fait ticker.
Definition ICore.hpp:65