DSPatch v.9.7.5
No Matches
Public Member Functions | List of all members
DSPatch::Plugin Class Referencefinal

Component plugin loader. More...

#include <Plugin.h>

Public Member Functions

 Plugin (const std::string &pluginPath)
bool IsLoaded () const
Component::SPtr Create () const

Detailed Description

Component plugin loader.

A component, packaged into a shared library (.so / .dylib / .dll) and exported via the EXPORT_PLUGIN macro, can be dynamically loaded into a host application using the Plugin class. Each Plugin object represents one Component class. (Example component plugins)

A Plugin should be constructed with the absolute path of the plugin (shared library) to be loaded. Once instantiated you should check that the plugin was successfully loaded by calling IsLoaded(). Thereafter, the contained component type can be instantiated (mutiple times) via the Create() method.

Definition at line 65 of file Plugin.h.

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