Maps SDK for C++ 1.0.0
Loading...
Searching...
No Matches
gem::PluginModule Class Reference

Services manager plugin. More...

Inheritance diagram for gem::PluginModule:

Public Member Functions

 PluginModule (const PluginModule &)=delete
 Deleted copy Ctor.
 PluginModule (PluginModule &&m)
 Move Ctor.
PluginModuleoperator= (const PluginModule &)=delete
 Deleted assign operator.
PluginModuleoperator= (PluginModule &&m)
 Move operator.
void * getProcAddress (const String &name)
 Get the address of the function.

Static Public Member Functions

static std::pair< PluginModule *, int > produce (const String &path)
 Plugin producer.

Protected Member Functions

int loadModule (const String &path)
 Load module from path.
void unloadModule ()
 Unload module.

Detailed Description

Services manager plugin.

Constructor & Destructor Documentation

◆ PluginModule()

gem::PluginModule::PluginModule ( PluginModule && m)
inline

Move Ctor.

Parameters
mThe plugin module to move from

Member Function Documentation

◆ getProcAddress()

void * gem::PluginModule::getProcAddress ( const String & name)
inline

Get the address of the function.

Parameters
nameThe name of the function
Returns
The address of the function

◆ loadModule()

int gem::PluginModule::loadModule ( const String & path)
inlineprotected

Load module from path.

Parameters
pathThe path to the module
Returns
Error code.
See also
error KNoError

◆ produce()

std::pair< PluginModule *, int > gem::PluginModule::produce ( const String & path)
inlinestatic

Plugin producer.

Parameters
pathThe path to the plugin
Returns
A pair containing the plugin and the error code