#include <gauge3d/plugins/plugin.h>
Inherits GAUGE3D::GObject.
Public Methods | |
virtual | ~GPlugin () |
virtual GString | Name ()=0 |
Returns the human-readable name of the plugin. | |
virtual GString | Description ()=0 |
Returns a human-readable description of the plugin. | |
virtual bool | InUse ()=0 |
Returns true if the plugin is in use. More... | |
virtual pGObject | CreateObject (const GString &className)=0 |
Creates an instance of the class with the given name. | |
virtual pGObject | CreateObject (const GString &className,pGFile file)=0 |
Creates an object of the class with the given name using the given file. More... | |
virtual GArray<ObjectInfo> | ObjectList ()=0 |
Gets ObjectInfos for every object available from this plugin. |
You only need to know about this class if you are writing a plugin, not if you are only using them.
Derivatives of GPlugin are used to describe what sort of objects a plugin contains, and create those objects for the object loader.
Here is what happens when a plugin is opened:
|
Returns true if the plugin is in use.
|
|
Creates an object of the class with the given name using the given file.
For example, if the class loads jpeg images, the file would be a jpeg image to load.
|