System documentation of the GNU Image-Finding Tool

CAccessorElement.h
1 // -*- mode: c++ -*-
2 #ifndef _CACCESSORELEMENT
3 #define _CACCESSORELEMENT
4 #include "libMRML/include/uses-declarations.h"
5 #include <string>
6 #include <functional>
7 #include <iostream>
8 #include "libMRML/include/TID.h"
14  TID mID;
16  string mURL;
18  string mThumbnailURL;
20  string mFeatureFileName;
21 public:
23  CAccessorElement(const TID inID,
24  const string& inURL,
25  const string& inThumbnailURL,
26  const string& inFeatureFileName);
28  TID getID()const;
30  string getURL()const;
32  string getThumbnailURL()const;
34  string getFeatureFileName()const;
35 
37  friend class CSortByID_CAE;
39  friend class CSortByURL_CAE;
42 };
43 
45 class CSortByID_CAE:public binary_function<CAccessorElement,CAccessorElement,bool>{
46 public:
48  bool operator()(const CAccessorElement& l,
49  const CAccessorElement& t)const;
50 };
52 class CSortByURL_CAE:public binary_function<CAccessorElement,CAccessorElement,bool>{
53 public:
55  bool operator()(const CAccessorElement& l,
56  const CAccessorElement& t)const;
57 };
59 class CSortByThumbnailURL_CAE:public binary_function<CAccessorElement,CAccessorElement,bool>{
60 public:
62  bool operator()(const CAccessorElement& l,
63  const CAccessorElement& t)const;
64 };
65 
66 ostream& operator<<(ostream& outStream,
67  const CAccessorElement& inElement);
68 
69 #endif
Quadruplet of Image-ID, image-URL, thumbnail-URL, feature file name and assorted sorting functions...
Definition: CAccessorElement.h:12
TID getID() const
get mURL
sort CAccessorElements by their ThumbnailURL
Definition: CAccessorElement.h:59
sort CAccessorElements by their URL
Definition: CAccessorElement.h:52
string getURL() const
get mURL
CAccessorElement(const TID inID, const string &inURL, const string &inThumbnailURL, const string &inFeatureFileName)
Constructor.
sort CAccessorElements by their ID
Definition: CAccessorElement.h:45

Need for discussion? Want to contribute? Contact
help-gift@gnu.org Generated using Doxygen