Ilwis-Objects
1.0
GIS and Remote Sensing framework for data access and processing
|
creates ilwisobjects More...
#include <ilwisobjectfactory.h>
Public Member Functions | |
IlwisObjectFactory (const QString &ty, const QString &sub, const QString &desc="") | |
constructor for a factory object More... | |
virtual IlwisObject * | create (const Resource &resource, const PrepareOptions &options=PrepareOptions()) const =0 |
prototype for the mandatory creation method that all ilwisobject factories must suport More... | |
virtual IlwisObject * | create (IlwisTypes, const QString &sub=sUNDEF) const |
![]() | |
QString | description () const |
QString | type () const |
QString | subtype () const |
QString | key () const |
bool | prepare () |
bool | canUse (const Resource &resource) const |
Protected Member Functions | |
IlwisObject * | createObject (IlwisObjectConnector *connector, const PrepareOptions &options=PrepareOptions()) const |
![]() | |
AbstractFactory (const QString &ty, const QString &sub, const QString &desc="") | |
creates ilwisobjects
A general interface for factories for all kinds of ilwisobject. Note that is not needed that a factory can produce all types of objects. For example there exists a projectionfactory that only can produce projection objects. Factories are registered to the kernel and others can request a factory of a certain type from the kernel
IlwisObjectFactory::IlwisObjectFactory | ( | const QString & | ty, |
const QString & | sub, | ||
const QString & | desc = "" |
||
) |
constructor for a factory object
The method 2 first parameters are used to choose which factory is used
ty | maintype of the factory. The type usualy signifies which kind objects it can produce though there is no special reason for it. |
sub | subtype of the factory. Usualy used to make a choice between several types of factories that can produce the same kind of objects |
desc | optional description of the factory. |
|
pure virtual |
prototype for the mandatory creation method that all ilwisobject factories must suport
resource | a pointer the location of the resource from which the ilwisobject is created |