47 #include "libGIFTAcURL2FTS/include/uses-declarations.h"
49 #include "libMRML/include/TID.h"
58 #include "libMRML/include/CAccessorImplementation.h"
59 #include "libMRML/include/CMutex.h"
69 bool mWellConstructed;
129 virtual operator bool()
const;
135 virtual int size()
const;
142 pair<bool,string>
URLToFFN(
const string& inURL)
const;
149 pair<bool,string>
IDToFFN(TID inID)
const;
152 const char *inElementName,
153 const char **inAttributes);
156 const char *inElementName);
convenience typedef
Definition: CAccessorImplementation.h:49
An accessor to an inverted file.
Definition: CAcIFFileSystem.h:93
virtual int size() const
Give the number of elements stored in this accessor.
string mURLPrefix
the url-prefix for the image list
Definition: CAcURL2FTS.h:78
This class captures the structure of an XML element.
Definition: CXMLElement.h:51
const string & getURLToFeatureFileName() const
gives back the content of mURLToFeatureFileName
TID mID
the ID of the next element
Definition: CAcURL2FTS.h:74
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 fea...
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 fea...
friend void newStartURL2FTSElement(void *inUserData, const char *inElementName, const char **inAttributes)
we construct this with a little help from this friend
convenience typedef
Definition: CAccessorImplementation.h:65
friend void newEndURL2FTSElement(void *inUserData, const char *inElementName)
we construct this with a little help from this friend
string mURLToFeatureFileName
Name of the file that contains pairs of URL and the Feature file that belongs to the URL...
Definition: CAcURL2FTS.h:98
TID_string_map mIDToFFN
map from the id of an image to the name of the feature file for this image
Definition: CAcURL2FTS.h:92
CMutex mMutexURL2FTS
the mutex for multithreading the name is intended to be unique and immune against inheritance...
Definition: CAcURL2FTS.h:88
ifstream mURLToFeatureFile
URL -> FeatureFileName.
Definition: CAcURL2FTS.h:94
This class offers an abstraction from the locking method used.
Definition: CMutex.h:40
string mThumbnailURLPrefix
the thumbnail-url-prefix for the image list
Definition: CAcURL2FTS.h:82
CAccessorImplementation - a base class for everything accessing a GIFT database.
Definition: CAccessorImplementation.h:92
CAcURL2FTS(const CXMLElement &inContentElement)
Constructor: slurp in an url2fts file and fill the maps.
This accessor is a base class for accessors which use an URL2FTS file to implement the interface of t...
Definition: CAcURL2FTS.h:66
string_string_map mURLToFFN
map from the url of an image to the name of the feature file for this image
Definition: CAcURL2FTS.h:90