CAccessorProxy Class Reference

[CADIHash.h Index] [CADIHash.h Hierarchy]


CAccessorProxy: 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 <../libInvertedFile/include/CAccessorProxy.h>

Public Members

Protected Members


Detailed Description

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


CAccessor* 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:

void closeAccessor(string inType)

closing an accessor.

void setCollectionElement(CXMLElement*)

Once this is working this will replaceabout every set/get function which follows

string toXML(bool isPrivate=false)

generate out put for shandshake message

CXMLElement* toXMLElement()

pack the content of this into an CXMLElement with elementname "collection"

CAccessorProxy()

Constructor

friend class CSortByName_pAP

for sorting

CAccessorFactoryContainer mFactoryContainer

Factory for making all kinds of accessors


Documentation generated by muellerw@pc7170 on Son Okt 8 16:04:40 CEST 2000
Kdoc