System documentation of the GNU Image-Finding Tool

Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members

CAcURL2FTS Class Reference

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>

Inheritance diagram for CAcURL2FTS:

CAccessorImplementation CAccessor CAcInvertedFile CAcIFFileSystem List of all members.

Public Member Functions

const string & getURLToFeatureFileName () const
 gives back the content of mURLToFeatureFileName
 CAcURL2FTS (const CXMLElement &inContentElement)
virtual operator bool () const
virtual int size () const
pair< bool, string > URLToFFN (const string &inURL) const
pair< bool, string > IDToFFN (TID inID) const

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

Detailed Description

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


Constructor & Destructor Documentation

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 (

See also:
CXMLElement for how to access the attributes of this element). Currently this accessor understands the following attributes
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.


Member Function Documentation

pair<bool,string> CAcURL2FTS::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)

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.

pair<bool,string> CAcURL2FTS::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)


Member Data Documentation

CMutex CAcURL2FTS::mMutexURL2FTS [protected]
 

the mutex for multithreading the name is intended to be unique and immune against inheritance.

..


The documentation for this class was generated from the following file:
Need for discussion? Want to contribute? Contact
help-gift@gnu.org Generated using Doxygen