#include <subprocessorfactory.h>
Static Public Member Functions | |
| static const QStringList | available () |
| static const bool | available (const QString &type) |
| static SubProcessor * | create (const QString &type) |
| static DomProcessor * | createDom (const QString &type) |
| static QString | version (const QString &type) |
| static const int | versionId (const QString &type) |
The fact that it embodies a singleton is hidden behind the API. The only methods available to the developer are static.
Typical usage requires a program to first check if a given class is available with available(), then perhaps to check the version provided with version (). Having ascertained that the correct class is available a DomProcessor object whose primary SubProcessor is an object of the given type may be instantiated with createDom().
| const bool Geddei::SubProcessorFactory::available | ( | const QString & | type | ) | [static] |
Queries availablity of a SubProcessor type.
| type | The type of SubProcessor (i.e. class name) to be queried. |
| const int Geddei::SubProcessorFactory::versionId | ( | const QString & | type | ) | [static] |
Gets (latest available) version of a SubProcessor -derived class.
| type | The type of SubProcessor (i.e. class name) to be queried. |
| static QString Geddei::SubProcessorFactory::version | ( | const QString & | type | ) | [inline, static] |
Gets (latest available) version of a SubProcessor -derived class.
| type | The type of SubProcessor (i.e. class name) to be queried. |
| static const QStringList Geddei::SubProcessorFactory::available | ( | ) | [inline, static] |
Retrieves a list of the types of SubProcessor available for creation.
| SubProcessor * Geddei::SubProcessorFactory::create | ( | const QString & | type | ) | [static] |
Creates a SubProcessor object of type type.
| DomProcessor * Geddei::SubProcessorFactory::createDom | ( | const QString & | type | ) | [static] |
Creates a DomProcessor object, whose primary is a SubProcessor of type type.
1.4.7