CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 namespace catapult {
namespace plugins {
34 PluginModule(
const std::string& directory,
const std::string& name);
43 template<
typename TFunc>
44 TFunc
symbol(
const char* symbolName)
const {
45 return reinterpret_cast<TFunc>(
symbolVoid(symbolName));
49 void*
symbolVoid(
const char* symbolName)
const;
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
std::shared_ptr< void > m_pModule
Definition: PluginModule.h:56
def debug(*args)
Definition: Parser.py:46
bool isLoaded() const
Returns true if this module wraps a loaded system module.
Definition: PluginModule.h:38
A plugin module.
Definition: PluginModule.h:28
#define CATAPULT_THROW_RUNTIME_ERROR_1(MESSAGE, PARAM1)
Macro used to throw a catapult runtime error with a single parameter.
Definition: exceptions.h:171
TFunc symbol(const char *symbolName) const
Gets a symbol of the specified type named symbolName.
Definition: PluginModule.h:44
def info(*args)
Definition: forwardsValidation.py:12
PluginModule()=default
Creates an unloaded module.
#define CATAPULT_THROW_INVALID_ARGUMENT_1(MESSAGE, PARAM1)
Macro used to throw a catapult invalid argument with a single parameter.
Definition: exceptions.h:183
#define CATAPULT_THROW_RUNTIME_ERROR(MESSAGE)
Macro used to throw a catapult runtime error.
Definition: exceptions.h:167
Definition: AddressExtractionExtension.cpp:28
void * symbolVoid(const char *symbolName) const
Definition: PluginModule.cpp:95
void release()
Releases the module.
Definition: PluginModule.cpp:106