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::IlwisObjectFactory Class Referenceabstract

creates ilwisobjects More...

#include <ilwisobjectfactory.h>

Inheritance diagram for Ilwis::IlwisObjectFactory:
Ilwis::AbstractFactory Ilwis::FactoryInterface

Public Member Functions

 IlwisObjectFactory (const QString &ty, const QString &sub, const QString &desc="")
 constructor for a factory object More...
 
virtual IlwisObjectcreate (const Resource &resource, const PrepareOptions &options=PrepareOptions()) const =0
 prototype for the mandatory creation method that all ilwisobject factories must suport More...
 
virtual IlwisObjectcreate (IlwisTypes, const QString &sub=sUNDEF) const
 
- Public Member Functions inherited from Ilwis::AbstractFactory
QString description () const
 
QString type () const
 
QString subtype () const
 
QString key () const
 
bool prepare ()
 
bool canUse (const Resource &resource) const
 

Protected Member Functions

IlwisObjectcreateObject (IlwisObjectConnector *connector, const PrepareOptions &options=PrepareOptions()) const
 
- Protected Member Functions inherited from Ilwis::AbstractFactory
 AbstractFactory (const QString &ty, const QString &sub, const QString &desc="")
 

Detailed Description

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

Constructor & Destructor Documentation

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

Parameters
tymaintype of the factory. The type usualy signifies which kind objects it can produce though there is no special reason for it.
subsubtype of the factory. Usualy used to make a choice between several types of factories that can produce the same kind of objects
descoptional description of the factory.

Member Function Documentation

virtual IlwisObject* Ilwis::IlwisObjectFactory::create ( const Resource resource,
const PrepareOptions options = PrepareOptions() 
) const
pure virtual

prototype for the mandatory creation method that all ilwisobject factories must suport

Parameters
resourcea pointer the location of the resource from which the ilwisobject is created
Returns
IlwisObject the created ilwisobject or 0 if something went wrong

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