Unary predicate that matches a Exifdatum with a given key
| 34 | namespace { |
| 35 | //! Unary predicate that matches a Exifdatum with a given key |
| 36 | class FindExifdatumByKey { |
| 37 | public: |
| 38 | //! Constructor, initializes the object with the key to look for |
| 39 | explicit FindExifdatumByKey(std::string key) : key_(std::move(key)) { |
| 40 | } |
| 41 | /*! |
| 42 | @brief Returns true if the key of \em exifdatum is equal |
| 43 | to that of the object. |
| 44 | */ |
| 45 | bool operator()(const Exiv2::Exifdatum& exifdatum) const { |
| 46 | return key_ == exifdatum.key(); |
| 47 | } |
| 48 | |
| 49 | private: |
| 50 | std::string key_; |
| 51 | }; // class FindExifdatumByKey |
| 52 | |
| 53 | /*! |
| 54 | @brief Exif %Thumbnail image. This abstract base class provides the |