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

#include <AModuleLoader.hpp>

Inheritance diagram for AModuleLoader:
Collaboration diagram for AModuleLoader:

Public Member Functions

 AModuleLoader ()
 
virtual ~AModuleLoader ()
 
Module::IModuleLoad (std::string const &path) override
 load module by path More...
 
bool Unload (Module::IModule *module) override
 unload module by pointer More...
 
bool IsLoaded (std::string const &name) const override
 check if module is loaded by name More...
 
bool IsLoaded (Module::IModule::Type type) const override
 check if module is loaded by type More...
 
- Public Member Functions inherited from IModuleLoader
virtual Module::IModuleGet (std::string const &name) const =0
 
virtual Module::IModuleGet (Module::IModule::Type) const =0
 

Protected Attributes

std::map< std::string,
Module::IModule * > 
m_modules
 

Detailed Description

Definition at line 11 of file AModuleLoader.hpp.

Constructor & Destructor Documentation

AModuleLoader::AModuleLoader ( )
virtual AModuleLoader::~AModuleLoader ( )
virtual

Member Function Documentation

bool AModuleLoader::IsLoaded ( std::string const &  name) const
overridevirtual

check if module is loaded by name

Parameters
name
Returns
is module loaded

Implements IModuleLoader.

bool AModuleLoader::IsLoaded ( Module::IModule::Type  type) const
overridevirtual

check if module is loaded by type

Parameters
type
Returns
is module loaded

Implements IModuleLoader.

Module::IModule* AModuleLoader::Load ( std::string const &  path)
overridevirtual

load module by path

Parameters
path
Returns
loaded module

Implements IModuleLoader.

bool AModuleLoader::Unload ( Module::IModule module)
overridevirtual

unload module by pointer

Parameters
module
Returns

Implements IModuleLoader.

Member Data Documentation

std::map<std::string, Module::IModule *> AModuleLoader::m_modules
protected

Definition at line 18 of file AModuleLoader.hpp.


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