#include <FreeImagePlus.h>
Inheritance diagram for fipTag:
FreeImage uses this structure to store metadata information.
Public Member Functions | |
operator FITAG * () | |
Returns a pointer to the FITAG data. | |
BOOL | isValid () const |
Returns TRUE if the tag is allocated, FALSE otherwise. | |
const char * | toString (FREE_IMAGE_MDMODEL model, char *Make=NULL) const |
Converts a FreeImage tag structure to a string that represents the interpreted tag value. | |
Creation & Destruction | |
fipTag () | |
Constructor. | |
~fipTag () | |
Destructor. | |
Copying | |
fipTag (const fipTag &tag) | |
Copy constructor. | |
fipTag & | operator= (const fipTag &tag) |
Copy constructor. | |
fipTag & | operator= (FITAG *tag) |
Assignement operator Copy the input pointer and manage its destruction | |
Tag accessors | |
const char * | getKey () const |
Returns the tag field name (unique inside a metadata model). | |
const char * | getDescription () const |
Returns the tag description if available, returns NULL otherwise. | |
WORD | getID () const |
Returns the tag ID if available, returns 0 otherwise. | |
FREE_IMAGE_MDTYPE | getType () const |
Returns the tag data type. | |
DWORD | getCount () const |
Returns the number of components in the tag (in tag type units). | |
DWORD | getLength () const |
Returns the length of the tag value in bytes. | |
const void * | getValue () const |
Returns the tag value. | |
BOOL | setKey (const char *key) |
Set the tag field name. | |
BOOL | setDescription (const char *description) |
Set the (usually optional) tag description. | |
BOOL | setID (WORD id) |
Set the (usually optional) tad ID. | |
BOOL | setType (FREE_IMAGE_MDTYPE type) |
Set the tag data type. | |
BOOL | setCount (DWORD count) |
Set the number of data in the tag. | |
BOOL | setLength (DWORD length) |
Set the length of the tag value, in bytes. | |
BOOL | setValue (const void *value) |
Set the tag value. | |
Protected Attributes | |
FITAG * | _tag |
Pointer to a FreeImage tag. |
|
Constructor.
|
|
Destructor.
|
|
Copy constructor.
|
|
Returns the number of components in the tag (in tag type units).
|
|
Returns the tag description if available, returns NULL otherwise.
|
|
Returns the tag ID if available, returns 0 otherwise.
|
|
Returns the tag field name (unique inside a metadata model).
|
|
Returns the length of the tag value in bytes.
|
|
Returns the tag data type.
|
|
Returns the tag value.
|
|
Returns TRUE if the tag is allocated, FALSE otherwise.
Implements fipObject. |
|
Returns a pointer to the FITAG data. Used for direct access from FREEIMAGE functions or from your own low level C functions.
|
|
Assignement operator
|
|
Copy constructor.
|
|
Set the number of data in the tag.
|
|
Set the (usually optional) tag description.
|
|
Set the (usually optional) tad ID.
|
|
Set the tag field name.
|
|
Set the length of the tag value, in bytes.
|
|
Set the tag data type.
|
|
Set the tag value.
|
|
Converts a FreeImage tag structure to a string that represents the interpreted tag value.
|
|
Pointer to a FreeImage tag.
|