#include <gauge3d/plugins/objectloader.h>
Inherits GAUGE3D::GObject.
Public Methods | |
GObjectLoader () | |
~GObjectLoader () | |
pGObject | LoadObject (const GString &className) |
Find an object with the given class name and create it. More... | |
pGObject | LoadObjectOfType (const GString &baseClass) |
Find an object derived from the specified class and create it. More... | |
pGObject | LoadObjectWithKeyword (const GString &keyWord,const GString &baseClass) |
Find an object with the given keyword and create it. More... | |
pGObject | LoadObjectForFile (pGFile file,const GString &baseClass) |
Find an object that can load the given file and that is derived from the given base class and create it. More... | |
void | AddPlugin (pGFile library) |
Add a library to the list of plugins to search for objects. |
This class acts sort of like a CORBA ORB, except for GAUGE plugin objects. (Disclaimer: I've never used CORBA, so I don't actually know how a CORBA ORB works. Let me know if that last statement was wrong.) The class loads plugins and queries them to see what objects can be loaded from them, and what functions those objects can perform. It then fields requests for objects that perform certain types of functions by matching the request with a plugin object that performs the task and getting an instance of the object from the corresponding plugin.
|
Find an object with the given class name and create it.
|
|
Find an object derived from the specified class and create it.
|
|
Find an object with the given keyword and create it.
|
|
Find an object that can load the given file and that is derived from the given base class and create it.
|