23 #ifndef __ccxx_PluginLoader_hxx 24 #define __ccxx_PluginLoader_hxx 58 { _module.setPath(path); }
62 {
return(_module.getPath()); }
83 {
return(_module.isOpen()); }
151 plugin =
dynamic_cast<T *
>(p);
160 String _fetchString(
const char* symbol);
170 #endif // __ccxx_PluginLoader_hxx void load()
Load the plugin.
Definition: PluginLoader.h++:71
T * newInstance()
Construct a new instance of a plugin of type T, where T is a subclass of Plugin.
Definition: PluginLoader.h++:138
bool isLoaded() const
Determine if the plugin is loaded.
Definition: PluginLoader.h++:82
void setPath(const String &path)
Set the plugin file path.
Definition: PluginLoader.h++:57
A convenience class for loading Plugin objects.
Definition: PluginLoader.h++:38
A class representing a dynamically loaded plugin.
Definition: Plugin.h++:40
#define COMMONCPP_API
Definition: Common.h++:126
A flexible, reference counted, copy-on-write, thread-safe, nullable string.
Definition: String.h++:50
#define CCXX_COPY_DECLS(CLASS)
Inlines declarations of a copy constructor and assignment operator for the class CLASS.
Definition: Common.h++:295
static const String null
The null string.
Definition: String.h++:1128
String getPath() const
Get the plugin file path.
Definition: PluginLoader.h++:61
Definition: AllocationMap.c++:25
An encapsulation of a dynamically loadable module, such as a shared library or object file on UNIX sy...
Definition: LoadableModule.h++:41
void unload()
Unload the plugin.
Definition: PluginLoader.h++:78