MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / FindExifdatumByKey

Class FindExifdatumByKey

src/exif.cpp:36–51  ·  view source on GitHub ↗

Unary predicate that matches a Exifdatum with a given key

Source from the content-addressed store, hash-verified

34namespace {
35//! Unary predicate that matches a Exifdatum with a given key
36class 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

Callers 1

findKeyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected