SaltAPI  1.1
An API for the HTTPd / Zia by Salty Studio.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
AModule.hpp
Go to the documentation of this file.
1 //
2 // Created by wery_a on 07/01/17.
3 //
4 
5 #ifndef API_V2_AMODULE_HPP
6 #define API_V2_AMODULE_HPP
7 
8 #include "IModule.hpp"
9 
10 namespace Module {
11  class ICore;
12 
13  class AModule : public IModule {
14  public:
15  AModule(ICore &core, Type type, std::string const &name);
16 
17  virtual ~AModule();
18 
19  protected:
21  std::string m_name;
23 
24  public:
25  std::string const &GetName() const override;
26 
27  Type GetType() const override;
28 
29  public:
30  bool Load() override;
31 
32  bool Unload() override;
33 
34  public:
35  virtual IModule *GetModule(ICore &core) const override;
36  };
37 }
38 
39 #endif //API_V2_AMODULE_HPP
std::string const & GetName() const override
Definition: AModule.cpp:17
ICore & m_core
Definition: AModule.hpp:20
bool Load() override
Method for futur use.
Definition: AModule.cpp:25
AModule(ICore &core, Type type, std::string const &name)
Definition: AModule.cpp:8
virtual IModule * GetModule(ICore &core) const override
The function return an instance of the module.
Definition: AModule.cpp:33
std::string m_name
Definition: AModule.hpp:21
virtual ~AModule()
Definition: AModule.cpp:13
bool Unload() override
Method for futur use.
Definition: AModule.cpp:29
Type GetType() const override
Definition: AModule.cpp:21