VR-Engage  2.3
Loading...
Searching...
No Matches
makVre::DtVrePlugin Class Reference

#include <vrePluginManager.h>

Public Member Functions

 DtVrePlugin (const std::string &libName)
 
virtual ~DtVrePlugin ()
 
virtual void init ()
 
virtual bool initializePlugin (DtPlayerStationApp *app)
 
virtual bool postInitializePlugin (DtPlayerStationApp *app)
 
virtual void shutdownPlugin (DtPlayerStationApp *app)
 
virtual bool isValid () const
 
virtual bool hasValidEntryPoints () const
 
virtual bool hasInit () const
 
virtual bool hasPostInit () const
 
virtual bool hasShutdown () const
 
virtual std::string libraryName () const
 

Protected Attributes

DtDynamicLibrary * myDynamicLibrary
 
std::string myLibraryName
 
InitPlayerStationDllFunction myInitFunc
 
PostInitPlayerStationDllFunction myPostInitFunc
 
ShutdownPlayerStationDllFunction myShutdownFunc
 

Constructor & Destructor Documentation

◆ DtVrePlugin()

makVre::DtVrePlugin::DtVrePlugin ( const std::string & libName)

Constructs a plugin wrapper for the specified library.

Parameters
libNameName or path of the plugin library to load.

◆ ~DtVrePlugin()

virtual makVre::DtVrePlugin::~DtVrePlugin ( )
virtual

Destroys the plugin wrapper without unloading recognized plugin libraries.

Libraries with resolved plugin entry points and their loader objects are intentionally retained until process exit because disconnected Boost.Signals2 connections can still reference plugin code. Failed or incompatible loads are released.

Member Function Documentation

◆ init()

virtual void makVre::DtVrePlugin::init ( )
virtual

Resolves the plugin entry points.

Returns
True if the required init entry point was found.

◆ initializePlugin()

virtual bool makVre::DtVrePlugin::initializePlugin ( DtPlayerStationApp * app)
virtual

Calls the plugin init entry point.

Parameters
appThe player-station application.
Returns
True if plugin initialization succeeded.

◆ postInitializePlugin()

virtual bool makVre::DtVrePlugin::postInitializePlugin ( DtPlayerStationApp * app)
virtual

Calls the plugin post-init entry point when available.

Parameters
appThe player-station application.
Returns
True if plugin post-initialization succeeded or was not present.

◆ shutdownPlugin()

virtual void makVre::DtVrePlugin::shutdownPlugin ( DtPlayerStationApp * app)
virtual

Calls the plugin shutdown entry point when available.

Parameters
appThe player-station application.

◆ isValid()

virtual bool makVre::DtVrePlugin::isValid ( ) const
virtual

Returns whether the underlying dynamic library loaded successfully.

Returns
True if the wrapped dynamic library is valid.

◆ hasValidEntryPoints()

virtual bool makVre::DtVrePlugin::hasValidEntryPoints ( ) const
virtual

Returns whether the underlying dynamic library loaded successfully.

Returns
True if the wrapped dynamic library is valid.

◆ hasInit()

virtual bool makVre::DtVrePlugin::hasInit ( ) const
virtual

Returns whether the plugin exposes the required init entry point.

Returns
True if the init entry point was resolved during init().

◆ hasPostInit()

virtual bool makVre::DtVrePlugin::hasPostInit ( ) const
virtual

Returns whether the plugin exposes the optional post-init entry point.

Returns
True if the post-init entry point was resolved during init().

◆ hasShutdown()

virtual bool makVre::DtVrePlugin::hasShutdown ( ) const
virtual

Returns whether the plugin exposes the optional shutdown entry point.

Returns
True if the shutdown entry point was resolved during init().

◆ libraryName()

virtual std::string makVre::DtVrePlugin::libraryName ( ) const
virtual

Returns the original plugin library name.

Returns
The library name or path used to construct the plugin.

Member Data Documentation

◆ myDynamicLibrary

DtDynamicLibrary* makVre::DtVrePlugin::myDynamicLibrary
protected

The dynamic-library loader for this plugin.

Note
Retained for process lifetime once a plugin entry point has been resolved.

◆ myLibraryName

std::string makVre::DtVrePlugin::myLibraryName
protected

The original library name used to load the plugin.

◆ myInitFunc

InitPlayerStationDllFunction makVre::DtVrePlugin::myInitFunc
protected

The required plugin init entry point.

◆ myPostInitFunc

PostInitPlayerStationDllFunction makVre::DtVrePlugin::myPostInitFunc
protected

The optional plugin post-init entry point.

◆ myShutdownFunc

ShutdownPlayerStationDllFunction makVre::DtVrePlugin::myShutdownFunc
protected

The optional plugin shutdown entry point.


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