SaltAPI  1.1
An API for the HTTPd / Zia by Salty Studio.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
IModuleLoader.hpp
Go to the documentation of this file.
1 //
2 // Created by wery_a on 07/01/17.
3 //
4 
5 #ifndef API_V2_IMODULELOADER_HPP
6 #define API_V2_IMODULELOADER_HPP
7 
8 #include "Module/IModule.hpp"
9 
14 public:
20  virtual Module::IModule *Load(std::string const &path) = 0;
21 
27  virtual bool Unload(Module::IModule *module) = 0;
28 
34  virtual bool IsLoaded(std::string const &name) const = 0;
35 
41  virtual bool IsLoaded(Module::IModule::Type type) const = 0;
42 
43 public:
49  virtual Module::IModule *Get(std::string const &name) const = 0;
50 
55  virtual Module::IModule *Get(Module::IModule::Type) const = 0;
56 
57 };
58 
59 #endif //API_V2_IMODULELOADER_HPP
virtual bool IsLoaded(std::string const &name) const =0
check if module is loaded by name
virtual Module::IModule * Get(std::string const &name) const =0
virtual bool Unload(Module::IModule *module)=0
unload module by pointer
virtual Module::IModule * Load(std::string const &path)=0
load module by path