IQRF Gateway Daemon
|
Holds pointers to component loader functions. More...
#include <LaunchUtils.h>
Public Member Functions | |
virtual | ~StaticBuildFunctionMap () |
void * | getFunction (const std::string &fceName) const |
Get pointer to function. More... | |
void | setFunction (const std::string &fceName, void *fcePtr) |
Set pointer to function. More... | |
Static Public Member Functions | |
static StaticBuildFunctionMap & | get () |
StaticBuildFunctionMap singleton getter. More... | |
Holds pointers to component loader functions.
|
inlinevirtual |
|
inlinestatic |
StaticBuildFunctionMap singleton getter.
|
inline |
Get pointer to function.
[in] | fceName | function name |
Searches the map and returns pointer to function with passed nameFile. If the name doesn't exist it return nullptr
|
inline |
Set pointer to function.
[in] | fceName | function name |
[in] | fcePtr | function pointer |
std::logic_error | in case the name is already stored |
Insert pair [name, pointer] to the map. If the map already contains name it throws std::logic_error