Ilwis-Objects
1.0
GIS and Remote Sensing framework for data access and processing
|
The FactoryInterface class general placeholder interface for all factory classes in Ilwis. More...
#include <factory.h>
Public Member Functions | |
virtual QString | description () const =0 |
description More... | |
virtual QString | type () const =0 |
type the main type of the factory. More... | |
virtual QString | subtype () const =0 |
subtype further specializes the search key for factories More... | |
virtual QString | key () const =0 |
string combinations of type subtype More... | |
virtual bool | canUse (const Resource &resource) const =0 |
test if a resource can be used by this factory to create something from the resource More... | |
virtual bool | prepare ()=0 |
prepare initializes the factory More... | |
The FactoryInterface class general placeholder interface for all factory classes in Ilwis.
*The masterfactory stores pointers with this interface. It is a very generic interface so it must be cased toa specific type to become useful
|
pure virtual |
test if a resource can be used by this factory to create something from the resource
Not all factories can create all the objects of course. This method checks if a resource is usefull for a factory
resource | the resource to be tested |
Implemented in Ilwis::AbstractFactory.
|
pure virtual |
description
Implemented in Ilwis::AbstractFactory.
|
pure virtual |
string combinations of type subtype
Convenience method for creating a full type description for a factory
Implemented in Ilwis::AbstractFactory.
|
pure virtual |
prepare initializes the factory
Implemented in Ilwis::AbstractFactory, and Ilwis::GeoRefImplementationFactory.
|
pure virtual |
subtype further specializes the search key for factories
*The subtype usualy limits the factory to a module were this factory is implemented. It is used when they are nameclashes about the type of the factory.
Implemented in Ilwis::AbstractFactory.
|
pure virtual |
type the main type of the factory.
*This member, together with the subtype is used to select factories from the masterfactory.
Implemented in Ilwis::AbstractFactory.