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

The AbstractFactory class implements some of the more general methods that are in de FactoryInterface. More...

#include <abstractfactory.h>

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

Public Member Functions

QString description () const
 
QString type () const
 
QString subtype () const
 
QString key () const
 
bool prepare ()
 
bool canUse (const Resource &resource) const
 

Protected Member Functions

 AbstractFactory (const QString &ty, const QString &sub, const QString &desc="")
 

Detailed Description

The AbstractFactory class implements some of the more general methods that are in de FactoryInterface.

Member Function Documentation

bool AbstractFactory::canUse ( const Resource resource) const
virtual

checks if a resource can be used by this factory. The method is optional as not all factories do need it.

Parameters
resource
Returns

Implements Ilwis::FactoryInterface.

QString Ilwis::AbstractFactory::description ( ) const
virtual

returns an optional description of the functionality of the factory

Returns

Implements Ilwis::FactoryInterface.

QString Ilwis::AbstractFactory::key ( ) const
virtual

The combination of subtype and type in the format <subtype>::<type>, e.g. ilwis3::ilwisobjectfactory. Keys are always in lower case.

Returns
a string with the unique key for this factory

Implements Ilwis::FactoryInterface.

bool AbstractFactory::prepare ( )
virtual

initialization of the factory. The method is optional as not all factories need it.

Returns
true if succesfull. Any errors can be found on the issuelog

Implements Ilwis::FactoryInterface.

Reimplemented in Ilwis::GeoRefImplementationFactory.

QString Ilwis::AbstractFactory::subtype ( ) const
virtual

while the type describes the general type, the subtype usualy points to the plug-in were it can be located. E.g. there is an IlwisObjectFactory in both the Ilwis3 connector plugin as in the Gdal connector plugin. The subtype "ilwis3" and "gdal" discriminates between them

Returns
the subtype of the factory

Implements Ilwis::FactoryInterface.

QString Ilwis::AbstractFactory::type ( ) const
virtual

return the type of the factory. The combination, type+subtype ( AbstractFactory::key) is used to locate factories in the master-factory

Returns

Implements Ilwis::FactoryInterface.


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