SaltAPI  1.1
An API for the HTTPd / Zia by Salty Studio.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Module::ACore Class Reference

#include <ACore.hpp>

Inheritance diagram for Module::ACore:
Collaboration diagram for Module::ACore:

Public Member Functions

 ACore (ICore &core, std::string const &name)
 
virtual ~ACore ()
 
bool Run (std::vector< std::string > const &opts, IModuleLoader *moduleLoader) override
 
IConfig const & GetConfig () const override
 
IModuleGet (std::string const &name) const override
 Get the module by name from the list in ModuleLoader. More...
 
IModuleGet (IModule::Type type) const override
 Get the module by Type from the list in ModuleLoader. More...
 
virtual IModuleGetModule (ICore &core) const override
 The function return an instance of the module. More...
 
- Public Member Functions inherited from Module::AModule
 AModule (ICore &core, Type type, std::string const &name)
 
virtual ~AModule ()
 
std::string const & GetName () const override
 
Type GetType () const override
 
bool Load () override
 Method for futur use. More...
 
bool Unload () override
 Method for futur use. More...
 

Protected Attributes

IModuleLoaderm_moduleLoader = nullptr
 
IConfigLoaderm_configLoader = nullptr
 
ILoggerm_logger = nullptr
 
INetworkm_network = nullptr
 
IFileServem_fileServe = nullptr
 
IConfigm_config = nullptr
 
- Protected Attributes inherited from Module::AModule
ICorem_core
 
std::string m_name
 
Type m_type
 

Additional Inherited Members

- Public Types inherited from Module::IModule
enum  Type {
  Core, Logger, ConfigLoader, Network,
  FileServe, HTTP, Default
}
 

Detailed Description

Definition at line 21 of file ACore.hpp.

Constructor & Destructor Documentation

Module::ACore::ACore ( ICore core,
std::string const &  name 
)

Definition at line 8 of file ACore.cpp.

Here is the caller graph for this function:

Module::ACore::~ACore ( )
virtual

Definition at line 12 of file ACore.cpp.

Member Function Documentation

IModule * Module::ACore::Get ( std::string const &  name) const
overridevirtual

Get the module by name from the list in ModuleLoader.

Parameters
nameof the module
Returns
pointer on the module founded

Implements Module::ICore.

Definition at line 26 of file ACore.cpp.

Here is the call graph for this function:

IModule * Module::ACore::Get ( IModule::Type  type) const
overridevirtual

Get the module by Type from the list in ModuleLoader.

Parameters
typeof the module
Returns
pointer on the module founded

Implements Module::ICore.

Definition at line 30 of file ACore.cpp.

Here is the call graph for this function:

IConfig const & Module::ACore::GetConfig ( ) const
overridevirtual
Returns
const reference on Config

Implements Module::ICore.

Definition at line 22 of file ACore.cpp.

IModule * Module::ACore::GetModule ( ICore core) const
overridevirtual

The function return an instance of the module.

Parameters
core
Returns
pointer on module instance

Reimplemented from Module::AModule.

Definition at line 34 of file ACore.cpp.

Here is the call graph for this function:

bool Module::ACore::Run ( std::vector< std::string > const &  opts,
IModuleLoader moduleLoader 
)
overridevirtual
Parameters
optsarguments from main
moduleLoaderpointer on moduleLoader
Returns

Implements Module::ICore.

Definition at line 16 of file ACore.cpp.

Member Data Documentation

IConfig* Module::ACore::m_config = nullptr
protected

Definition at line 34 of file ACore.hpp.

IConfigLoader* Module::ACore::m_configLoader = nullptr
protected

Definition at line 29 of file ACore.hpp.

IFileServe* Module::ACore::m_fileServe = nullptr
protected

Definition at line 32 of file ACore.hpp.

ILogger* Module::ACore::m_logger = nullptr
protected

Definition at line 30 of file ACore.hpp.

IModuleLoader* Module::ACore::m_moduleLoader = nullptr
protected

Definition at line 28 of file ACore.hpp.

INetwork* Module::ACore::m_network = nullptr
protected

Definition at line 31 of file ACore.hpp.


The documentation for this class was generated from the following files: