VR-Forces 4.2 Class Documentation
List of all members | Public Member Functions | Protected Attributes
DtTMPlugin Class Reference

The plugin manager will load external loadable objects in order to provide additional functionality to the front-end. More...

Public Member Functions

 DtTMPlugin (const DtString &libName, bool addPlatExt=true, bool useLazyEval=true)
virtual ~DtTMPlugin ()
virtual bool init ()
virtual bool init (DtTMApplication *)
virtual bool postAppInitialize (DtTMApplication *)
virtual void unloadPlugin ()
DtTMApplicationcreateApplication (int argc, char **argv)
const DtPluginInformationpluginInformation () const
virtual void pluginInformation (std::string &str) const
virtual bool checkVersion (const QString &curVersion)
 Returns false if there is a version mismatch.
virtual bool isValid () const
virtual DtString libraryName () const
virtual const char * error () const

Protected Attributes

DtPluginInformation myPluginInformation
DtInitializePluginFcn myPluginInit
DtPostAppInitializeFcn myPostAppInitialize
DtUnloadPluginFcn myUnloadPlugin
DtDynamicLibrary * myDynamicLibrary

Detailed Description

The plugin manager will load external loadable objects in order to provide additional functionality to the front-end.

The file pluginExtension.h defines the template for what you can and/or need to define in order to be considered a plugin to the front-end.

The plugin manager will, upon calling the init() method, read plugins from the supplied .mtl file. It will also scan the argv command line for the –loadPlugin command to schedule to load a plugin. Once the list of loadable plugins has been created, the plugins will be found and loaded into the system, calling initializePlugin for each plugin supplied. ! Once all the plugins have been loaded and initialized, the application object will be created and returned to the user. This application will be in an uninitialized state, and it will be up to the developer to init the application from the factory. Also, it is up to the developer to delete the application object

Constructor & Destructor Documentation

DtTMPlugin::DtTMPlugin ( const DtString libName,
bool  addPlatExt = true,
bool  useLazyEval = true 
)
virtual DtTMPlugin::~DtTMPlugin ( )
virtual

Member Function Documentation

virtual bool DtTMPlugin::init ( )
virtual
virtual bool DtTMPlugin::init ( DtTMApplication )
virtual
virtual bool DtTMPlugin::postAppInitialize ( DtTMApplication )
virtual
virtual void DtTMPlugin::unloadPlugin ( )
virtual
DtTMApplication* DtTMPlugin::createApplication ( int  argc,
char **  argv 
)
const DtPluginInformation & DtTMPlugin::pluginInformation ( ) const
inline

References myPluginInformation.

virtual void DtTMPlugin::pluginInformation ( std::string &  str) const
virtual
virtual bool DtTMPlugin::checkVersion ( const QString &  curVersion)
virtual

Returns false if there is a version mismatch.

virtual bool DtTMPlugin::isValid ( ) const
virtual
virtual DtString DtTMPlugin::libraryName ( ) const
virtual
virtual const char* DtTMPlugin::error ( ) const
virtual

Member Data Documentation

DtPluginInformation DtTMPlugin::myPluginInformation
protected

Referenced by pluginInformation().

DtInitializePluginFcn DtTMPlugin::myPluginInit
protected
DtPostAppInitializeFcn DtTMPlugin::myPostAppInitialize
protected
DtUnloadPluginFcn DtTMPlugin::myUnloadPlugin
protected
DtDynamicLibrary* DtTMPlugin::myDynamicLibrary
protected

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

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)