#include <vuUtilityFactory.h>
Static Public Member Functions | |
vuUtilityWindow * | create (const char *name) |
Creates vuUtilityWindow implementations by name. | |
bool | isAvailable (const char *name) |
Returns true if the named utility is available from the factory. | |
wxStringList | listAvailable (const char *FileType) |
Lists the available vuUtilityWindow implementations that the factory can create. |
The vuUtilityFactory class is responsible for creating/instantiating all the vuUtilityWindow implementations. It creates them by name using the create() method, then returns the implementation as a vuUtilityWindow class. It can also list all the vuUtilityWindow implementations that it can create. The class is a singleton, so all the methods are static and the class doesn't have to be instantiated.
Definition at line 16 of file vuUtilityFactory.h.
|
Creates vuUtilityWindow implementations by name. The caller assumes control of the pointer and is responsible for deleting it. The method returns Null (0) if there are no vuUtilityWindow implementations of the given name.
Definition at line 72 of file vuUtilityFactory.cpp. Referenced by vuMainWindow::addUtility(). |
|
Returns true if the named utility is available from the factory.
Definition at line 154 of file vuUtilityFactory.cpp. |
|
Lists the available vuUtilityWindow implementations that the factory can create. Allows the caller to check the functionality of the factory at runtime. This would be useful for creating a list of all possible vuUtilityWindow implementations available.
Definition at line 235 of file vuUtilityFactory.cpp. Referenced by vuMainWindow::createUtilityMenu(), and vuMainWindow::OnAddUtility(). |