Metadata iterator. More...
#include <FreeImagePlus.h>
Public Member Functions | |
BOOL | isValid () const |
Returns TRUE if the search handle is allocated, FALSE otherwise. More... | |
fipMetadataFind () | |
Constructor. More... | |
~fipMetadataFind () | |
Destructor. More... | |
BOOL | findFirstMetadata (FREE_IMAGE_MDMODEL model, fipImage &image, fipTag &tag) |
Provides information about the first instance of a tag that matches the metadata model specified in the model argument. More... | |
BOOL | findNextMetadata (fipTag &tag) |
Find the next tag, if any, that matches the metadata model argument in a previous call to findFirstMetadata. More... | |
Information functions |
Protected Attributes | |
FIMETADATA * | _mdhandle |
Pointer to a search handle. More... | |
Metadata iterator.
Usage :
fipImage image; // ... fipTag tag; fipMetadataFind finder; if( finder.findFirstMetadata(FIMD_EXIF_MAIN, image, tag) ) { do { // process the tag cout << tag.getKey() << "\n";
} while( finder.findNextMetadata(tag) ); } // the class can be called again with another metadata model if( finder.findFirstMetadata(FIMD_EXIF_EXIF, image, tag) ) { do { // process the tag cout << tag.getKey() << "\n";
} while( finder.findNextMetadata(tag) ); }
fipMetadataFind::fipMetadataFind | ( | ) |
Constructor.
fipMetadataFind::~fipMetadataFind | ( | ) |
Destructor.
BOOL fipMetadataFind::findFirstMetadata | ( | FREE_IMAGE_MDMODEL | model, |
fipImage & | image, | ||
fipTag & | tag | ||
) |
Provides information about the first instance of a tag that matches the metadata model specified in the model argument.
model | Metadata model |
image | Input image |
tag | Returned tag |
BOOL fipMetadataFind::findNextMetadata | ( | fipTag & | tag | ) |
Find the next tag, if any, that matches the metadata model argument in a previous call to findFirstMetadata.
tag | Returned tag |
|
virtual |
Returns TRUE if the search handle is allocated, FALSE otherwise.
Implements fipObject.
|
protected |
Pointer to a search handle.