DSPatch  v.5.01
Public Member Functions | List of all members
DSPatch::Plugin Class Referencefinal

Component plugin loader. More...

#include <Plugin.h>

Public Member Functions

 Plugin (std::string const &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.

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 50 of file Plugin.h.

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