CAcURL2FTS Class

# CAcURL2FTS Class Reference

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

This accessor is a base class for accessors which use an URL2FTS file to implement the interface of the CAccessor base class More...

`#include <../libInvertedFile/include/CAcURL2FTS.h>`

Inherits: CAccessorImplementation

## Public Members

- const string& getURLToFeatureFileName () const
- CAcURL2FTS (const CXMLElement& inContentElement)
- virtual operator bool ()
- virtual int size ()
- pair<bool,string> URLToFFN (const string& inURL)
- pair<bool,string> IDToFFN (TID inID)

## Protected Members

- string_string_map mURLToFFN
- TID_string_map mIDToFFN
- mutable ifstream mURLToFeatureFile
- string mURLToFeatureFileName

## Detailed Description

This accessor is a base class for accessors which use an URL2FTS file to implement the interface of the CAccessor base class.

## const string& getURLToFeatureFileName() const

gives back the content of mURLToFeatureFileName

## CAcURL2FTS(const CXMLElement& inContentElement)

Constructor: slurp in an url2fts file and fill the maps.

## virtual operator bool()

Is this accessor up and working?

## virtual int size()

Give the number of elements stored in this accessor

## pair<bool,string> URLToFFN(const string& inURL)

gives the feature file name which corresponds to a given URL return value: pair of bool (does the feature file exsist) string (the feature file name)

## pair<bool,string> IDToFFN(TID inID)

gives the feature file name which corresponds to a given URL return value: pair of bool (does the feature file exsist) string (the feature file name)

## string_string_map mURLToFFN

map from the url of an image to the name of the feature file for this image

## TID_string_map mIDToFFN

map from the id of an image to the name of the feature file for this image

## mutable ifstream mURLToFeatureFile

URL -> FeatureFileName

## string mURLToFeatureFileName

Name of the file that contains pairs of URL and the Feature file that belongs to the URL

| Kdoc