SaltAPI  1.1
An API for the HTTPd / Zia by Salty Studio.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
IModule.hpp
Go to the documentation of this file.
1 //
2 // Created by wery_a on 07/01/17.
3 //
4 
5 #ifndef API_V2_IMODULE_HPP
6 #define API_V2_IMODULE_HPP
7 
8 #include <string>
9 
14 namespace Module {
15  class ICore;
16 
20  class IModule {
21  public:
25  enum Type {
33  };
34 
35  public:
40  virtual std::string const &GetName() const = 0;
41 
46  virtual Type GetType() const = 0;
47 
48  public:
53  virtual bool Load() = 0;
54 
59  virtual bool Unload() = 0;
60 
61  public:
67  virtual IModule *GetModule(ICore &core) const = 0;
68  };
69 
70 }
71 
72 #endif //API_V2_IMODULE_HPP
virtual bool Unload()=0
Method for futur use.
virtual bool Load()=0
Method for futur use.
virtual Type GetType() const =0
virtual std::string const & GetName() const =0
virtual IModule * GetModule(ICore &core) const =0
The function return an instance of the module.