This accessor is a base class for accessors which use an URL2FTS file to implement the interface of the CAccessor base class. More...
#include <CAcURL2FTS.h>
Public Member Functions | |
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 () const |
Is this accessor up and working? | |
virtual int | size () const |
Give the number of elements stored in this accessor. | |
pair< bool, string > | URLToFFN (const string &inURL) const |
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) const |
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) | |
Protected Attributes | |
TID | mID |
the ID of the next element | |
string | mURLPrefix |
the url-prefix for the image list | |
string | mThumbnailURLPrefix |
the thumbnail-url-prefix for the image list | |
CMutex | mMutexURL2FTS |
the mutex for multithreading the name is intended to be unique and immune against inheritance... | |
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 | |
ifstream | mURLToFeatureFile |
URL -> FeatureFileName. | |
string | mURLToFeatureFileName |
Name of the file that contains pairs of URL and the Feature file that belongs to the URL. | |
Friends | |
class | CAcIFFileSystem |
void | newStartURL2FTSElement (void *inUserData, const char *inElementName, const char **inAttributes) |
we construct this with a little help from this friend | |
void | newEndURL2FTSElement (void *inUserData, const char *inElementName) |
we construct this with a little help from this friend |
This accessor is a base class for accessors which use an URL2FTS file to implement the interface of the CAccessor base class.
CAcURL2FTS::CAcURL2FTS | ( | const CXMLElement & | inContentElement | ) |
Constructor: slurp in an url2fts file and fill the maps.
Like every accessor, this accessor takes a <collection> MRML element as input (
cui-base-dir: the directory containing the following files cui-feature-file-location: the location of the "url2fts" file which translates urls to feature file names.
virtual CAcURL2FTS::operator bool | ( | ) | const [virtual] |
Is this accessor up and working?
Implements CAccessorImplementation.
Reimplemented in CAcIFFileSystem.
virtual int CAcURL2FTS::size | ( | ) | const [virtual] |
Give the number of elements stored in this accessor.
Reimplemented from CAccessorImplementation.
Reimplemented in CAcIFFileSystem.