System documentation of the GNU Image-Finding Tool

Classes | Public Member Functions | Protected Types | Protected Attributes | Friends | List of all members
CAccessorAdmin Class Reference

CAccessorAdmin: The goal of this is to make it possible to have a list containing accessors to all possible collections, without really opening the accessors. More...

#include <CAccessorAdmin.h>

Classes

class  CContentElement
 Content is pointer to a factory, a pointer to the actual Accessor (if already made) and the open-close-counter. More...
 

Public Member Functions

CAccessoropenAccessor (string inType)
 open an accessor. More...
 
void closeAccessor (string inType)
 closing an accessor. More...
 
void setCollectionElement (CXMLElement *)
 Once this is working this will replace about every set/get function which follows.
 
const CXMLElementgetCollectionElement () const
 
const CXMLElementgetQueryParadigmList () const
 
list< string > * getAvailableIndices () const
 
string toXML (bool isPrivate=false) const
 generate out put for shandshake message
 
CXMLElementtoXMLElement () const
 pack the content of this into an CXMLElement with elementname "collection"
 
 CAccessorAdmin (CAccessorFactoryContainer &inFactoryContainer)
 Constructor.
 
 ~CAccessorAdmin ()
 destructor
 
string getAlgorithmIDListID () const
 
string getName () const
 
string getID () const
 

Protected Types

typedef map< string,
CContentElement
CContent
 Typedef: The content is a map of string to content element In this map is noted, which accessors are open for the collection with the given ID.
 

Protected Attributes

CAccessorFactoryContainermFactoryContainer
 Factory for making all kinds of accessors.
 
CSelfDestroyPointer< CXMLElementmCollectionElement
 
CContent mContent
 The content is a map of string to content element.
 

Friends

class CSortByName_pAP
 for sorting
 

Detailed Description

CAccessorAdmin: The goal of this is to make it possible to have a list containing accessors to all possible collections, without really opening the accessors.

The accessor proxy is in fact an open/close counter for accessors. This permits multiple query structures to share just one accessor, and it avoids having to open all kinds of accessors when starting the program.

Member Function Documentation

void CAccessorAdmin::closeAccessor ( string  inType)

closing an accessor.

See also
openAccessor
CAccessor* CAccessorAdmin::openAccessor ( string  inType)

open an accessor.

This is the important part for the outside: Open or close inverted file accessors. Several queries can share one accessor, the accessor will be constructed when the first CQuery needs it, and it will be deleted, when the last one does not need it any more:


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

Need for discussion? Want to contribute? Contact
help-gift@gnu.org Generated using Doxygen