![]() |
Exiv2
|
Search the composite for a component with tag and group. Return a pointer to the component or 0, if not found. The class is ready for a first search after construction and can be re-initialized with init(). More...
#include <tiffvisitor_int.hpp>

Public Member Functions | |
Creators | |
| constexpr | TiffFinder (uint16_t tag, IfdId group) |
| Constructor, taking tag and group of the component to find. | |
| TiffFinder (const TiffFinder &)=delete | |
| TiffFinder & | operator= (const TiffFinder &)=delete |
| ~TiffFinder () override=default | |
| Virtual destructor. | |
Manipulators | |
| void | visitEntry (TiffEntry *object) override |
| Find tag and group in a TIFF entry. | |
| void | visitDataEntry (TiffDataEntry *object) override |
| Find tag and group in a TIFF data entry. | |
| void | visitImageEntry (TiffImageEntry *object) override |
| Find tag and group in a TIFF image entry. | |
| void | visitSizeEntry (TiffSizeEntry *object) override |
| Find tag and group in a TIFF size entry. | |
| void | visitDirectory (TiffDirectory *object) override |
| Find tag and group in a TIFF directory. | |
| void | visitSubIfd (TiffSubIfd *object) override |
| Find tag and group in a TIFF sub-IFD. | |
| void | visitMnEntry (TiffMnEntry *object) override |
| Find tag and group in a TIFF makernote. | |
| void | visitIfdMakernote (TiffIfdMakernote *object) override |
| Find tag and group in an IFD makernote. | |
| void | visitBinaryArray (TiffBinaryArray *object) override |
| Find tag and group in a binary array. | |
| void | visitBinaryElement (TiffBinaryElement *object) override |
| Find tag and group in an element of a binary array. | |
| void | findObject (TiffComponent *object) |
| Check if object matches tag and group. | |
| void | init (uint16_t tag, IfdId group) |
| Initialize the Finder for a new search. | |
| Public Member Functions inherited from Exiv2::Internal::TiffVisitor | |
| virtual | ~TiffVisitor ()=default |
| Virtual destructor. | |
| void | setGo (GoEvent event, bool go) |
| Set the stop/go flag: true for go, false for stop. | |
| virtual void | visitDirectoryNext (TiffDirectory *object) |
| Operation to perform for a TIFF directory, after all components and before the next entry is processed. | |
| virtual void | visitDirectoryEnd (TiffDirectory *object) |
| Operation to perform for a TIFF directory, at the end of the processing. | |
| virtual void | visitIfdMakernoteEnd (TiffIfdMakernote *object) |
| Operation to perform after processing an IFD makernote. | |
| virtual void | visitBinaryArrayEnd (TiffBinaryArray *object) |
| Operation to perform for a TIFF binary array, at the end of the processing. | |
| bool | go (GoEvent event) const |
| Check if stop flag for event is clear, return true if it's clear. | |
Accessors | |
| TiffComponent * | result () const |
| Return the search result. 0 if no TIFF component was found for the tag and group combination. | |
Additional Inherited Members | |
| Public Types inherited from Exiv2::Internal::TiffVisitor | |
| enum | GoEvent { geTraverse = 0 , geKnownMakernote = 1 } |
| Events for the stop/go flag. See setGo(). More... | |
Search the composite for a component with tag and group. Return a pointer to the component or 0, if not found. The class is ready for a first search after construction and can be re-initialized with init().
|
overridedefault |
Virtual destructor.
References findObject(), init(), visitBinaryArray(), visitBinaryElement(), visitDataEntry(), visitDirectory(), visitEntry(), visitIfdMakernote(), visitImageEntry(), visitMnEntry(), visitSizeEntry(), and visitSubIfd().
| void Exiv2::Internal::TiffFinder::findObject | ( | TiffComponent * | object | ) |
Check if object matches tag and group.
References Exiv2::Internal::TiffVisitor::geTraverse, Exiv2::Internal::TiffComponent::group(), Exiv2::Internal::TiffVisitor::setGo(), and Exiv2::Internal::TiffComponent::tag().
Referenced by visitBinaryArray(), visitBinaryElement(), visitDataEntry(), visitDirectory(), visitEntry(), visitIfdMakernote(), visitImageEntry(), visitMnEntry(), visitSizeEntry(), visitSubIfd(), and ~TiffFinder().
| void Exiv2::Internal::TiffFinder::init | ( | uint16_t | tag, |
| IfdId | group ) |
Initialize the Finder for a new search.
References Exiv2::Internal::TiffVisitor::geTraverse, and Exiv2::Internal::TiffVisitor::setGo().
Referenced by Exiv2::Internal::nikonCrypt(), and ~TiffFinder().
|
inlinenodiscard |
Return the search result. 0 if no TIFF component was found for the tag and group combination.
Referenced by Exiv2::Internal::TiffEncoder::add(), Exiv2::Internal::TiffEncoder::encodeImageEntry(), Exiv2::Internal::nikonCrypt(), Exiv2::Internal::TiffReader::readDataEntryBase(), Exiv2::Internal::TiffDecoder::TiffDecoder(), Exiv2::Internal::TiffEncoder::TiffEncoder(), Exiv2::Internal::TiffReader::visitBinaryArray(), Exiv2::Internal::TiffReader::visitMnEntry(), and Exiv2::Internal::TiffReader::visitSizeEntry().
|
overridevirtual |
Find tag and group in a binary array.
Implements Exiv2::Internal::TiffVisitor.
References findObject().
Referenced by ~TiffFinder().
|
overridevirtual |
Find tag and group in an element of a binary array.
Implements Exiv2::Internal::TiffVisitor.
References findObject().
Referenced by ~TiffFinder().
|
overridevirtual |
Find tag and group in a TIFF data entry.
Implements Exiv2::Internal::TiffVisitor.
References findObject().
Referenced by ~TiffFinder().
|
overridevirtual |
Find tag and group in a TIFF directory.
Implements Exiv2::Internal::TiffVisitor.
References findObject().
Referenced by ~TiffFinder().
|
overridevirtual |
Find tag and group in a TIFF entry.
Implements Exiv2::Internal::TiffVisitor.
References findObject().
Referenced by ~TiffFinder().
|
overridevirtual |
Find tag and group in an IFD makernote.
Implements Exiv2::Internal::TiffVisitor.
References findObject().
Referenced by ~TiffFinder().
|
overridevirtual |
Find tag and group in a TIFF image entry.
Implements Exiv2::Internal::TiffVisitor.
References findObject().
Referenced by ~TiffFinder().
|
overridevirtual |
Find tag and group in a TIFF makernote.
Implements Exiv2::Internal::TiffVisitor.
References findObject().
Referenced by ~TiffFinder().
|
overridevirtual |
Find tag and group in a TIFF size entry.
Implements Exiv2::Internal::TiffVisitor.
References findObject().
Referenced by ~TiffFinder().
|
overridevirtual |
Find tag and group in a TIFF sub-IFD.
Implements Exiv2::Internal::TiffVisitor.
References findObject().
Referenced by ~TiffFinder().