SaltAPI  1.1
An API for the HTTPd / Zia by Salty Studio.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
AModule.cpp
Go to the documentation of this file.
1 //
2 // Created by wery_a on 09/01/17.
3 //
4 
5 #include "Module/AModule.hpp"
6 
7 namespace Module {
8  AModule::AModule(ICore &core, Type type, std::string const &name)
9  : m_core(core), m_type(type), m_name(name) {
10 
11  }
12 
14 
15  }
16 
17  std::string const &AModule::GetName() const {
18  return m_name;
19  }
20 
22  return m_type;
23  }
24 
25  bool AModule::Load() {
26 
27  }
28 
29  bool AModule::Unload() {
30 
31  }
32 
34  return new AModule(core, Default, "Module");
35  }
36 }
std::string const & GetName() const override
Definition: AModule.cpp:17
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