#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 | |
CAccessor * | openAccessor (string inType) |
open an accessor. | |
void | closeAccessor (string inType) |
closing an accessor. | |
void | setCollectionElement (CXMLElement *) |
Once this is working this will replace about every set/get function which follows. | |
const CXMLElement * | getCollectionElement () const |
const CXMLElement * | getQueryParadigmList () const |
list< string > * | getAvailableIndices () const |
string | toXML (bool isPrivate=false) const |
generate out put for shandshake message | |
CXMLElement * | toXMLElement () 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 | |
CAccessorFactoryContainer & | mFactoryContainer |
Factory for making all kinds of accessors. | |
CSelfDestroyPointer< CXMLElement > | mCollectionElement |
CContent | mContent |
The content is a map of string to content element. | |
Friends | |
class | CSortByName_pAP |
for sorting |
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.
void CAccessorAdmin::closeAccessor | ( | string | inType | ) |
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: