CAccessorFactory Class Reference

#include <CAccessorFactory.h>

Inheritance diagram for CAccessorFactory:

CAFDistanceMatrix CAFHierarchy CAFInvertedFile CAFPlugin CAFSpecialised< TAccessorSubType, TName > CAFURL2FTS

List of all members.

Public Member Functions

virtual void registerFactory (CAccessorFactoryContainer &outContainer)
virtual CAccessormakeAccessor (const class CXMLElement &inConfiguration) const =0
virtual void closeAccessor ()

Protected Attributes

string mName


Detailed Description

This is a common abstract base class for all specialised CAccessorFactories

See also:
CAFSpecialised Wolfgang Müller

Definition at line 42 of file CAccessorFactory.h.


Member Function Documentation

void CAccessorFactory::registerFactory ( CAccessorFactoryContainer outContainer  )  [virtual]

(*this) has to register with a container. The container gets destruction responsability

Reimplemented in CAFPlugin.

Definition at line 4 of file CAccessorFactory.cc.

References mName, and CAccessorFactoryContainer::registerFactory().

00004                                                                              {
00005   outContainer.registerFactory(this,
00006              mName);
00007 };

virtual CAccessor* CAccessorFactory::makeAccessor ( const class CXMLElement inConfiguration  )  const [pure virtual]

As the name sais: this makes an accessor. The parameter contains all attributes needes for a successful construction.

void CAccessorFactory::closeAccessor (  )  [virtual]

This function does plain nothing in this class, however, it becomes interesting for plugins that have to free shared libraries presently this is unused. All plugins will be loaded at load time, there will be no unloading of plugins during runtime.

Definition at line 8 of file CAccessorFactory.cc.

00008                                     {
00009   //does plain nothing in the base class
00010 };


Member Data Documentation

string CAccessorFactory::mName [protected]

This variable contains the name used for registration

Reimplemented in CAFPlugin.

Definition at line 45 of file CAccessorFactory.h.

Referenced by CAFDistanceMatrix::CAFDistanceMatrix(), CAFHierarchy::CAFHierarchy(), CAFInvertedFile::CAFInvertedFile(), CAFURL2FTS::CAFURL2FTS(), and registerFactory().


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

Generated on Wed Jan 7 00:30:59 2009 for Gift by  doxygen 1.5.6