CAcHierarchy Class Reference

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


A very simple accessor for hierarchies of images Stored in an XML file More...

#include <../libInvertedFile/include/CAcHierarchy.h>

Inherits: CAccessorImplementation

Public Members

Protected Members


Detailed Description

A very simple accessor for hierarchies of images Stored in an XML file.

This is the ultra simple example system for the browser benchmarking paper.

Please note that IDs must start at 1 (ONE!!!).


CAcHierarchy(const CXMLElement& inConfiguration)

constructor opens a hierarchy file and reads it.

CIDRelevanceLevelPairList* getChildren(const CPath& inID)

gets the children of an element

void addElement(TID inID, string inLocation, string inThumbnail)

Adds an element to the collection

void push(TID inNode)

pushes the node onto the stack

void popNodeAndRegisterEdge()

pops the node and registers the edge from new top to old top and back

operator bool()

has this been successfully read?

bool isOK

is this well constructed ?

CPath mNodeStack

A stack of the nodes visited when building the hierarchy

CGraph mEdges

Edges: The edges from father to son. The edges from son to father are not needed, because it means simply popping from the path.

void init(string inFileName)

called immediately by the constructor, this function does the main construction work. Starts the xml parser for reading the hierarchy file etc.

void addEdge(const CPath& inFather, TID inSon)

adds an edge from father to son and an edge from son to father


  • Author: Wolfgang Müller
  • Documentation generated by muellerw@pc7170 on Son Okt 8 16:04:40 CEST 2000
Kdoc