SaltAPI
1.1
An API for the HTTPd / Zia by Salty Studio.
Main Page
Namespaces
Classes
Files
Examples
File List
File Members
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
{
26
Core
,
27
Logger
,
28
ConfigLoader
,
29
Network
,
30
FileServe
,
31
HTTP
,
32
Default
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
Module::IModule::Unload
virtual bool Unload()=0
Method for futur use.
Module::IModule::Load
virtual bool Load()=0
Method for futur use.
Module::IModule::ConfigLoader
Definition:
IModule.hpp:28
Module::IModule::Network
Definition:
IModule.hpp:29
Module::IModule::GetType
virtual Type GetType() const =0
Module::IModule
Definition:
IModule.hpp:20
Module::IModule::FileServe
Definition:
IModule.hpp:30
Module::IModule::Default
Definition:
IModule.hpp:32
Module::IModule::GetName
virtual std::string const & GetName() const =0
Module::IModule::GetModule
virtual IModule * GetModule(ICore &core) const =0
The function return an instance of the module.
Module::IModule::Logger
Definition:
IModule.hpp:27
Module::IModule::HTTP
Definition:
IModule.hpp:31
Module::IModule::Core
Definition:
IModule.hpp:26
Module::IModule::Type
Type
Definition:
IModule.hpp:25
Module::ICore
Definition:
ICore.hpp:19
API
include
Module
IModule.hpp
Generated on Tue Jan 10 2017 17:44:53 for SaltAPI by
1.8.6