Ilwis-Objects  1.0
GIS and Remote Sensing framework for data access and processing
 All Classes Functions Enumerations Pages
Public Member Functions | List of all members
Ilwis::FactoryInterface Class Referenceabstract

The FactoryInterface class general placeholder interface for all factory classes in Ilwis. More...

#include <factory.h>

Inheritance diagram for Ilwis::FactoryInterface:
Ilwis::AbstractFactory Ilwis::CatalogConnectorFactory Ilwis::ConnectorFactory Ilwis::FeatureFactory Ilwis::GeoRefImplementationFactory Ilwis::IlwisObjectFactory Ilwis::ProjectionFactory

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...
 

Detailed Description

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

Member Function Documentation

virtual bool Ilwis::FactoryInterface::canUse ( const Resource resource) const
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

Parameters
resourcethe resource to be tested
Returns
bool true if the object type indicated by the resource can be created by the factory

Implemented in Ilwis::AbstractFactory.

virtual QString Ilwis::FactoryInterface::description ( ) const
pure virtual

description

Returns
a brief description whata certain factory is supposed to do. It is optional

Implemented in Ilwis::AbstractFactory.

virtual QString Ilwis::FactoryInterface::key ( ) const
pure virtual

string combinations of type subtype

Convenience method for creating a full type description for a factory

Returns
QString conbined name

Implemented in Ilwis::AbstractFactory.

virtual bool Ilwis::FactoryInterface::prepare ( )
pure virtual

prepare initializes the factory

Returns

Implemented in Ilwis::AbstractFactory, and Ilwis::GeoRefImplementationFactory.

virtual QString Ilwis::FactoryInterface::subtype ( ) const
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.

Returns
the name of the subtype;

Implemented in Ilwis::AbstractFactory.

virtual QString Ilwis::FactoryInterface::type ( ) const
pure virtual

type the main type of the factory.

*This member, together with the subtype is used to select factories from the masterfactory.

Returns
the name of the type

Implemented in Ilwis::AbstractFactory.


The documentation for this class was generated from the following file: