Celartem::TIFF6 Struct Reference

#include <pxl_metadata.h>

List of all members.

Public Types

enum  FieldType {
  BYTE = 1, ASCII = 2, SHORT = 3, LONG = 4,
  RATIONAL = 5, SBYTE = 6, UNDEFINED = 7, SSHORT = 8,
  SLONG = 9, SRATIONAL = 10, FLOAT = 11, DOUBLE = 12,
  IFD = 13
}

Static Public Member Functions

static const size_t sizeOf (u16 inType)
static const char * getTypeName (u16 inType)
static String getTagName (u16 inTag)
static u16 getTagFromName (const String &inTagName)
static bool isAcceptableType (u16 inTag, u16 inType)
static u16 getPrimaryTypeForTag (u16 inTag)
static String extractTagNameFromPath (const String &inPath)
static size_t getStdCountForTag (u16 inTag)
static bool isIFD (u16 inTag)
static bool isImageIFD (u16 inTag)
static void set (DataStore *inDataStore, u16 inTag, u16 inType, size_t inCount, const void *inData, Endian inEndian=endianHost)
static void set (DataStore *inDataStore, const String &inTag, u16 inType, size_t inCount, const void *inData, Endian inEndian=endianHost)
static void set (DataStore *inDataStore, const DATA &inData, Endian inEndian=endianHost)
static void set (DataStore *inDataStore, const String &inTag, const String &inString)
static void set (DataStore *inDataStore, u16 inTag, const String &inString)
static bool verify (const DataStore *inDataStore, const String &inTag, u16 inType=0, size_t inCount=0)
static bool verify (const DataStore *inDataStore, u16 inTag, u16 inType=0, size_t inCount=0)
static const void * get (const DataStore *inDataStore, const String &inTag, u16 &outType, size_t &outCount)
static const void * get (const DataStore *inDataStore, u16 inTag, u16 &outType, size_t &outCount)
static DATA get (const DataStore *inDataStore, u16 inTag)
static DATA get (const DataStore *inDataStore, const String &inTag)
static bool isLegal (const DATA &inData)
static const u8getAsBYTE (const DataStore *inDataStore, u16 inTag, size_t *outCount=NULL)
static const char * getAsASCII (const DataStore *inDataStore, u16 inTag, size_t *outCount=NULL)
static const u16getAsSHORT (const DataStore *inDataStore, u16 inTag, size_t *outCount=NULL)
static const u32getAsLONG (const DataStore *inDataStore, u16 inTag, size_t *outCount=NULL)
static const TIFF_RATIONALgetAsRATIONAL (const DataStore *inDataStore, u16 inTag, size_t *outCount=NULL)
static const i8getAsSBYTE (const DataStore *inDataStore, u16 inTag, size_t *outCount=NULL)
static const u8getAsUNDEFINED (const DataStore *inDataStore, u16 inTag, size_t *outCount=NULL)
static const i16getAsSSHORT (const DataStore *inDataStore, u16 inTag, size_t *outCount=NULL)
static const i32getAsSLONG (const DataStore *inDataStore, u16 inTag, size_t *outCount=NULL)
static const TIFF_SRATIONALgetAsSRATIONAL (const DataStore *inDataStore, u16 inTag, size_t *outCount=NULL)
static const float * getAsFLOAT (const DataStore *inDataStore, u16 inTag, size_t *outCount=NULL)
static const double * getAsDOUBLE (const DataStore *inDataStore, u16 inTag, size_t *outCount=NULL)
static String getAsString (const DataStore *inDataStore, u16 inTag)
static const u8getAsBYTE (const DataStore *inDataStore, const String &inTag, size_t *outCount=NULL)
static const char * getAsASCII (const DataStore *inDataStore, const String &inTag, size_t *outCount=NULL)
static const u16getAsSHORT (const DataStore *inDataStore, const String &inTag, size_t *outCount=NULL)
static const u32getAsLONG (const DataStore *inDataStore, const String &inTag, size_t *outCount=NULL)
static const TIFF_RATIONALgetAsRATIONAL (const DataStore *inDataStore, const String &inTag, size_t *outCount=NULL)
static const i8getAsSBYTE (const DataStore *inDataStore, const String &inTag, size_t *outCount=NULL)
static const u8getAsUNDEFINED (const DataStore *inDataStore, const String &inTag, size_t *outCount=NULL)
static const i16getAsSSHORT (const DataStore *inDataStore, const String &inTag, size_t *outCount=NULL)
static const i32getAsSLONG (const DataStore *inDataStore, const String &inTag, size_t *outCount=NULL)
static const TIFF_SRATIONALgetAsSRATIONAL (const DataStore *inDataStore, const String &inTag, size_t *outCount=NULL)
static const float * getAsFLOAT (const DataStore *inDataStore, const String &inTag, size_t *outCount=NULL)
static const double * getAsDOUBLE (const DataStore *inDataStore, const String &inTag, size_t *outCount=NULL)
static String getAsString (const DataStore *inDataStore, const String &inTag)

Classes

struct  DATA


Detailed Description

This structure provides the utilities to ease use of TIFF 6.0 metadata.
For more information about TIFF 6.0, refer to the following document:
"TIFF(TM) 6.0 Revision 2.0 Final - June 3, 1992"
1992, Adobe Systems Incorporated.
http://partners.adobe.com/asn/developer/pdfs/tn/TIFF6.pdf

For more information about metadata handling, see Metadata Handling.
For the list of supported TIFF tags, see Supported TIFF Tags.

See also:
Metadata Handling

Supported TIFF Tags

Definition at line 39 of file pxl_metadata.h.


Member Enumeration Documentation

enum Celartem::TIFF6::FieldType

This enumeration defines the field types defined in TIFF 6.0 specification.
All types enumerated here is defined in TIFF 6.0 except IFD type. IFD type is defined in the following document:
"Adobe PageMaker(R) 6.0 TIFF Technical Notes"
1995, Adobe Systems Incorporated.
http://partners.adobe.com/asn/developer/pdfs/tn/TIFFPM6.pdf

Enumerator:
BYTE  8-bit unsigned integer.
ASCII  8-bit byte that contains a 7-bit ASCII code; the last byte must be NUL (binary zero).
SHORT  16-bit (2-byte) unsigned integer.
LONG  32-bit (4-byte) unsigned integer.
RATIONAL  Two LONGs: the first represents the numerator of a fraction; the second, the denominator.
SBYTE  An 8-bit signed (twos-complement) integer.
UNDEFINED  An 8-bit byte that may contain anything, depending on the definition of the field.
SSHORT  A 16-bit (2-byte) signed (twos-complement) integer.
SLONG  A 32-bit (4-byte) signed (twos-complement) integer.
SRATIONAL  Two SLONGfs: the first represents the numerator of a fraction, the second the denominator.
FLOAT  Single precision (4-byte) IEEE format.
DOUBLE  Double precision (8-byte) IEEE format.
IFD  IFD is otherwise identical to LONG, but is only used to point to other valid IFDs.

Definition at line 51 of file pxl_metadata.h.


Member Function Documentation

static const size_t Celartem::TIFF6::sizeOf ( u16  inType  )  [static]

This function returns the size of the specified type in bytes.
If this function does not know the specified type, this function throws errInvalidParam.

Parameters:
inType One of the FieldType value or any other field types that are defined in TIFF related specifications.
Returns:
The size of the field type.
See also:
FieldType

Referenced by Celartem::TIFF6::DATA::getSize().

static const char* Celartem::TIFF6::getTypeName ( u16  inType  )  [static]

This function returns the human readable notation of the specified field type. For instance, "BYTE" is returned for 1 and "LONG" for 4. If this function does not know the specified type, this function throws errInvalidParam.

Parameters:
inType One of the FieldType value or any other field types that are defined in TIFF related specifications.
Returns:
The notation of the type.
See also:
FieldType

static String Celartem::TIFF6::getTagName ( u16  inTag  )  [static]

This function returns the human readable notation of the specified tag. If this function does not know the specified tag, this function returns NULL.

Parameters:
inTag The tag in number.
Returns:
The name of the tag.
See also:
getTagFromName, Supported TIFF Tags

Referenced by Celartem::TIFF6::DATA::getTagName().

static u16 Celartem::TIFF6::getTagFromName ( const String inTagName  )  [static]

This function returns the tag number corresponding to the specified name. If this function does not know about the specified tag name, this function returns 0xffff.

Parameters:
inTagName The tag name.
Returns:
The tag value if available, otherwise 0xffff.
See also:
getTagName, Supported TIFF Tags

Referenced by Celartem::TIFF6::DATA::setTagName().

static bool Celartem::TIFF6::isAcceptableType ( u16  inTag,
u16  inType 
) [static]

This function checks the specified type is valid for the specified tag. This function verifies the consistensy based on the internal TIFF tag table and if this function does not know about the tag, this function return false.

Parameters:
inTag The tag in number.
inType The field type.
See also:
FieldType

static u16 Celartem::TIFF6::getPrimaryTypeForTag ( u16  inTag  )  [static]

This function returns the primary field type for the specified tag. As you know, TIFF 6.0 allows some tags to use several field types, and then this function returns a suitable field type.

Parameters:
inTag The tag in number.
Returns:
The field type.
See also:
FieldType

static String Celartem::TIFF6::extractTagNameFromPath ( const String inPath  )  [static]

This function extracts tag name from the specified path. For "Exif IFD Pointer:WhiteBalance", this function returns "WhiteBalance". Please note that all TIFF6 functions accepts DataStore path separated by ':'.

static size_t Celartem::TIFF6::getStdCountForTag ( u16  inTag  )  [static]

This function returns the count of values of the specified tag. If the count of the values are not fixed, this function returns 0.

Parameters:
inTag The tag in number.
Returns:
The count of the values.

static bool Celartem::TIFF6::isIFD ( u16  inTag  )  [static]

This function returns true if the specified tag acts as IFD pointer. This function returns true for all IDF(13) type tags, and also returns true for some LONG(4) type tags.

Parameters:
inTag The tag in number.
Returns:
true if the tag acts as IFD pointer, otherwise false.

static bool Celartem::TIFF6::isImageIFD ( u16  inTag  )  [static]

This function returns true if the specified tag acts as IFD pointer and the IFD pointed has an image data.

Parameters:
inTag The tag in number.
Returns:
true if the tag acts as IFD pointer, otherwise false.

static void Celartem::TIFF6::set ( DataStore inDataStore,
u16  inTag,
u16  inType,
size_t  inCount,
const void *  inData,
Endian  inEndian = endianHost 
) [static]

This function sets the specified data to the specified DataStore instance.

Parameters:
inDataStore The DataStore instance.
inTag The TIFF tag in number.
inType The type of the TIFF tag.
inCount The count of the entries on the array specified by inData.
inData Pointer to the data array.
inEndian The endianness to write the data.
See also:
DataStore

static void Celartem::TIFF6::set ( DataStore inDataStore,
const String inTag,
u16  inType,
size_t  inCount,
const void *  inData,
Endian  inEndian = endianHost 
) [static]

This function sets the specified data to the specified DataStore instance.

Parameters:
inDataStore The DataStore instance.
inTag The TIFF tag name.
inType The type of the TIFF tag.
inCount The count of the entries on the array specified by inData.
inData Pointer to the data array.
inEndian The endianness to write the data.
See also:
DataStore

static void Celartem::TIFF6::set ( DataStore inDataStore,
const DATA inData,
Endian  inEndian = endianHost 
) [static]

This function sets the specified data to the specified DataStore instance.

Parameters:
inDataStore The DataStore instance.
inData Reference to the data to be written.
inEndian The endianness to write the data.
See also:
DataStore

static void Celartem::TIFF6::set ( DataStore inDataStore,
const String inTag,
const String inString 
) [static]

This function sets the specified string to the specified DataStore instance as TIFF6::ASCII type.
Please note that PixelLive SDK actually set UTF-8 strings as ASCII strings and it may cause any charset/encoding problems.

Parameters:
inDataStore The DataStore instance.
inTag The TIFF tag name.
inString The string to be set.
See also:
DataStore

static void Celartem::TIFF6::set ( DataStore inDataStore,
u16  inTag,
const String inString 
) [static]

This function sets the specified string to the specified DataStore instance as TIFF6::ASCII type.
Please note that PixelLive SDK actually set UTF-8 strings as ASCII strings and it may cause any charset/encoding problems.

Parameters:
inDataStore The DataStore instance.
inTag The TIFF tag name.
inString The string to be set.
See also:
DataStore

static bool Celartem::TIFF6::verify ( const DataStore inDataStore,
const String inTag,
u16  inType = 0,
size_t  inCount = 0 
) [static]

This function check the existance and type, count of the specified tag. You can assume that this function never throws any exceptions.

Parameters:
inDataStore The DataStore instance.
inTag The TIFF tag name.
inType If you want to verify the type of tag, set this parameter to the type. If you specify 0 to it, the function does not verify the type.
inCount If you want to verify the number of elements, set this parameter to the number of elements. If you specify 0 to it, the function does not verify the count.
Returns:
true if the verification success, otherwise false.
See also:
DataStore

static bool Celartem::TIFF6::verify ( const DataStore inDataStore,
u16  inTag,
u16  inType = 0,
size_t  inCount = 0 
) [static]

This function check the existance and type, count of the specified tag. You can assume that this function never throws any exceptions.

Parameters:
inDataStore The DataStore instance.
inTag The TIFF tag name.
inType If you want to verify the type of tag, set this parameter to the type. If you specify 0 to it, the function does not verify the type.
inCount If you want to verify the number of elements, set this parameter to the number of elements. If you specify 0 to it, the function does not verify the count.
Returns:
true if the verification success, otherwise false.
See also:
DataStore

static const void* Celartem::TIFF6::get ( const DataStore inDataStore,
const String inTag,
u16 outType,
size_t &  outCount 
) [static]

This function returns the specified TIFF tag data from the DataStore instance.

Parameters:
inDataStore The DataStore instance.
inTag The TIFF tag name.
outType The variable specified here obtains the TIFF field type of the specified tag on return.
outCount The variable specified here obtains the count of the data on return.
Returns:
Pointer to the array that contains the data.
See also:
DataStore

static const void* Celartem::TIFF6::get ( const DataStore inDataStore,
u16  inTag,
u16 outType,
size_t &  outCount 
) [static]

This function returns the specified TIFF tag data from the DataStore instance.

Parameters:
inDataStore The DataStore instance.
inTag The tag to search.
outType The variable specified here obtains the TIFF field type of the specified tag on return.
outCount The variable specified here obtains the count of the data on return.
Returns:
Pointer to the array that contains the data.
See also:
DataStore

static DATA Celartem::TIFF6::get ( const DataStore inDataStore,
u16  inTag 
) [static]

This function returns the specified TIFF tag data from the DataStore instance. This function throws an exception if the tag specified is not found.

Parameters:
inDataStore The DataStore instance.
inTag The tag to search.
Returns:
The data of the tag.
See also:
DATA, DataStore

static DATA Celartem::TIFF6::get ( const DataStore inDataStore,
const String inTag 
) [static]

This function returns the specified TIFF tag data from the DataStore instance. This function throws an exception if the tag specified is not found.

Parameters:
inDataStore The DataStore instance.
inTag The tag to search.
Returns:
The data of the tag.
See also:
DATA, DataStore

static bool Celartem::TIFF6::isLegal ( const DATA inData  )  [static]

This function verifies the specified data.

Parameters:
inData The data to be verified.
Returns:
true if the data is valid, otherwise false.

static const u8* Celartem::TIFF6::getAsBYTE ( const DataStore inDataStore,
u16  inTag,
size_t *  outCount = NULL 
) [static]

This function returns the specified TIFF tag data as a u8 array from the DataStore instance if the array type is TIFF6::BYTE. You can assume that the function does not throw any exceptions.

Parameters:
inDataStore The DataStore instance.
inTag The tag to search.
outCount Pointer to a size_t variable that receives the count of the data. It can be NULL if you don't need the count.
Returns:
The data of the tag. If any errors (the value is not found, the type mismatchs, ...), this function returns NULL.
See also:
getAsBYTE (String version) , DataStore

static const char* Celartem::TIFF6::getAsASCII ( const DataStore inDataStore,
u16  inTag,
size_t *  outCount = NULL 
) [static]

This function returns the specified TIFF tag data as a char array from the DataStore instance if the array type is TIFF6::ASCII. You can assume that the function does not throw any exceptions.
Please note that this function may return strings that contain non-ASCII characters if the original data contains them.

Parameters:
inDataStore The DataStore instance.
inTag The tag to search.
outCount Pointer to a size_t variable that receives the count of the data. It can be NULL if you don't need the count.
Returns:
The data of the tag. If any errors (the value is not found, the type mismatchs, ...), this function returns NULL.
See also:
getAsASCII (String version) , DataStore

static const u16* Celartem::TIFF6::getAsSHORT ( const DataStore inDataStore,
u16  inTag,
size_t *  outCount = NULL 
) [static]

This function returns the specified TIFF tag data as a u16 array from the DataStore instance if the array type is TIFF6::SHORT. You can assume that the function does not throw any exceptions.

Parameters:
inDataStore The DataStore instance.
inTag The tag to search.
outCount Pointer to a size_t variable that receives the count of the data. It can be NULL if you don't need the count.
Returns:
The data of the tag. If any errors (the value is not found, the type mismatchs, ...), this function returns NULL.
See also:
getAsSHORT (String version) , DataStore

Referenced by Celartem::MetadataUtils::getResolutionUnit(), Celartem::MetadataUtils::getXResolution(), and Celartem::MetadataUtils::getYResolution().

static const u32* Celartem::TIFF6::getAsLONG ( const DataStore inDataStore,
u16  inTag,
size_t *  outCount = NULL 
) [static]

This function returns the specified TIFF tag data as a u32 array from the DataStore instance if the array type is TIFF6::LONG. You can assume that the function does not throw any exceptions.

Parameters:
inDataStore The DataStore instance.
inTag The tag to search.
outCount Pointer to a size_t variable that receives the count of the data. It can be NULL if you don't need the count.
Returns:
The data of the tag. If any errors (the value is not found, the type mismatchs, ...), this function returns NULL.
See also:
getAsLONG (String version) , DataStore

static const TIFF_RATIONAL* Celartem::TIFF6::getAsRATIONAL ( const DataStore inDataStore,
u16  inTag,
size_t *  outCount = NULL 
) [static]

This function returns the specified TIFF tag data as a TIFF_RATIONAL array from the DataStore instance if the array type is TIFF6::RATIONAL. You can assume that the function does not throw any exceptions.

Parameters:
inDataStore The DataStore instance.
inTag The tag to search.
outCount Pointer to a size_t variable that receives the count of the data. It can be NULL if you don't need the count.
Returns:
The data of the tag. If any errors (the value is not found, the type mismatchs, ...), this function returns NULL.
See also:
getAsRATIONAL (String version) , DataStore

Referenced by Celartem::MetadataUtils::getXResolution(), and Celartem::MetadataUtils::getYResolution().

static const i8* Celartem::TIFF6::getAsSBYTE ( const DataStore inDataStore,
u16  inTag,
size_t *  outCount = NULL 
) [static]

This function returns the specified TIFF tag data as a i8 array from the DataStore instance if the array type is TIFF6::SBYTE. You can assume that the function does not throw any exceptions.

Parameters:
inDataStore The DataStore instance.
inTag The tag to search.
outCount Pointer to a size_t variable that receives the count of the data. It can be NULL if you don't need the count.
Returns:
The data of the tag. If any errors (the value is not found, the type mismatchs, ...), this function returns NULL.
See also:
getAsSBYTE (String version) , DataStore

static const u8* Celartem::TIFF6::getAsUNDEFINED ( const DataStore inDataStore,
u16  inTag,
size_t *  outCount = NULL 
) [static]

This function returns the specified TIFF tag data as a u8 array from the DataStore instance if the array type is TIFF6::UNDEFINED. You can assume that the function does not throw any exceptions.

Parameters:
inDataStore The DataStore instance.
inTag The tag to search.
outCount Pointer to a size_t variable that receives the count of the data. It can be NULL if you don't need the count.
Returns:
The data of the tag. If any errors (the value is not found, the type mismatchs, ...), this function returns NULL.
See also:
getAsUNDEFINED (String version) , DataStore

static const i16* Celartem::TIFF6::getAsSSHORT ( const DataStore inDataStore,
u16  inTag,
size_t *  outCount = NULL 
) [static]

This function returns the specified TIFF tag data as a i16 array from the DataStore instance if the array type is TIFF6::SSHORT. You can assume that the function does not throw any exceptions.

Parameters:
inDataStore The DataStore instance.
inTag The tag to search.
outCount Pointer to a size_t variable that receives the count of the data. It can be NULL if you don't need the count.
Returns:
The data of the tag. If any errors (the value is not found, the type mismatchs, ...), this function returns NULL.
See also:
getAsSSHORT (String version) , DataStore

static const i32* Celartem::TIFF6::getAsSLONG ( const DataStore inDataStore,
u16  inTag,
size_t *  outCount = NULL 
) [static]

This function returns the specified TIFF tag data as a i32 array from the DataStore instance if the array type is TIFF6::SLONG. You can assume that the function does not throw any exceptions.

Parameters:
inDataStore The DataStore instance.
inTag The tag to search.
outCount Pointer to a size_t variable that receives the count of the data. It can be NULL if you don't need the count.
Returns:
The data of the tag. If any errors (the value is not found, the type mismatchs, ...), this function returns NULL.
See also:
getAsSLONG (String version) , DataStore

static const TIFF_SRATIONAL* Celartem::TIFF6::getAsSRATIONAL ( const DataStore inDataStore,
u16  inTag,
size_t *  outCount = NULL 
) [static]

This function returns the specified TIFF tag data as a TIFF_SRATIONAL array from the DataStore instance if the array type is TIFF6::SRATIONAL. You can assume that the function does not throw any exceptions.

Parameters:
inDataStore The DataStore instance.
inTag The tag to search.
outCount Pointer to a size_t variable that receives the count of the data. It can be NULL if you don't need the count.
Returns:
The data of the tag. If any errors (the value is not found, the type mismatchs, ...), this function returns NULL.
See also:
getAsSRATIONAL (String version) , DataStore

static const float* Celartem::TIFF6::getAsFLOAT ( const DataStore inDataStore,
u16  inTag,
size_t *  outCount = NULL 
) [static]

This function returns the specified TIFF tag data as a float array from the DataStore instance if the array type is TIFF6::FLOAT. You can assume that the function does not throw any exceptions.

Parameters:
inDataStore The DataStore instance.
inTag The tag to search.
outCount Pointer to a size_t variable that receives the count of the data. It can be NULL if you don't need the count.
Returns:
The data of the tag. If any errors (the value is not found, the type mismatchs, ...), this function returns NULL.
See also:
getAsFLOAT (String version) , DataStore

static const double* Celartem::TIFF6::getAsDOUBLE ( const DataStore inDataStore,
u16  inTag,
size_t *  outCount = NULL 
) [static]

This function returns the specified TIFF tag data as a double array from the DataStore instance if the array type is TIFF6::DOUBLE. You can assume that the function does not throw any exceptions.

Parameters:
inDataStore The DataStore instance.
inTag The tag to search.
outCount Pointer to a size_t variable that receives the count of the data. It can be NULL if you don't need the count.
Returns:
The data of the tag. If any errors (the value is not found, the type mismatchs, ...), this function returns NULL.
See also:
getAsDOUBLE (String version) , DataStore

static String Celartem::TIFF6::getAsString ( const DataStore inDataStore,
u16  inTag 
) [static]

This function returns the specified TIFF tag data as a String from the DataStore instance if the array type is TIFF6::ASCII. You can assume that the function does not throw any exceptions.

Parameters:
inDataStore The DataStore instance.
inTag The tag to search.
Returns:
The data of the tag.
See also:
getAsString (String version) , DataStore

static const u8* Celartem::TIFF6::getAsBYTE ( const DataStore inDataStore,
const String inTag,
size_t *  outCount = NULL 
) [static]

This function returns the specified TIFF tag data as a u8 array from the DataStore instance if the array type is TIFF6::BYTE. You can assume that the function does not throw any exceptions.

Parameters:
inDataStore The DataStore instance.
inTag The tag to search.
outCount Pointer to a size_t variable that receives the count of the data. It can be NULL if you don't need the count.
Returns:
The data of the tag. If any errors (the value is not found, the type mismatchs, ...), this function returns NULL.
See also:
getAsBYTE (u16 version) , DataStore

static const char* Celartem::TIFF6::getAsASCII ( const DataStore inDataStore,
const String inTag,
size_t *  outCount = NULL 
) [static]

This function returns the specified TIFF tag data as a char array from the DataStore instance if the array type is TIFF6::ASCII. You can assume that the function does not throw any exceptions.
Please note that this function may return strings that contain non-ASCII characters if the original data contains them.

Parameters:
inDataStore The DataStore instance.
inTag The tag to search.
outCount Pointer to a size_t variable that receives the count of the data. It can be NULL if you don't need the count.
Returns:
The data of the tag. If any errors (the value is not found, the type mismatchs, ...), this function returns NULL.
See also:
getAsASCII (u16 version) , DataStore

static const u16* Celartem::TIFF6::getAsSHORT ( const DataStore inDataStore,
const String inTag,
size_t *  outCount = NULL 
) [static]

This function returns the specified TIFF tag data as a u16 array from the DataStore instance if the array type is TIFF6::SHORT. You can assume that the function does not throw any exceptions.

Parameters:
inDataStore The DataStore instance.
inTag The tag to search.
outCount Pointer to a size_t variable that receives the count of the data. It can be NULL if you don't need the count.
Returns:
The data of the tag. If any errors (the value is not found, the type mismatchs, ...), this function returns NULL.
See also:
getAsSHORT (u16 version) , DataStore

static const u32* Celartem::TIFF6::getAsLONG ( const DataStore inDataStore,
const String inTag,
size_t *  outCount = NULL 
) [static]

This function returns the specified TIFF tag data as a u32 array from the DataStore instance if the array type is TIFF6::LONG. You can assume that the function does not throw any exceptions.

Parameters:
inDataStore The DataStore instance.
inTag The tag to search.
outCount Pointer to a size_t variable that receives the count of the data. It can be NULL if you don't need the count.
Returns:
The data of the tag. If any errors (the value is not found, the type mismatchs, ...), this function returns NULL.
See also:
getAsLONG (u16 version) , DataStore

static const TIFF_RATIONAL* Celartem::TIFF6::getAsRATIONAL ( const DataStore inDataStore,
const String inTag,
size_t *  outCount = NULL 
) [static]

This function returns the specified TIFF tag data as a TIFF_RATIONAL array from the DataStore instance if the array type is TIFF6::RATIONAL. You can assume that the function does not throw any exceptions.

Parameters:
inDataStore The DataStore instance.
inTag The tag to search.
outCount Pointer to a size_t variable that receives the count of the data. It can be NULL if you don't need the count.
Returns:
The data of the tag. If any errors (the value is not found, the type mismatchs, ...), this function returns NULL.
See also:
getAsRATIONAL (u16 version) , DataStore

static const i8* Celartem::TIFF6::getAsSBYTE ( const DataStore inDataStore,
const String inTag,
size_t *  outCount = NULL 
) [static]

This function returns the specified TIFF tag data as a i8 array from the DataStore instance if the array type is TIFF6::SBYTE. You can assume that the function does not throw any exceptions.

Parameters:
inDataStore The DataStore instance.
inTag The tag to search.
outCount Pointer to a size_t variable that receives the count of the data. It can be NULL if you don't need the count.
Returns:
The data of the tag. If any errors (the value is not found, the type mismatchs, ...), this function returns NULL.
See also:
getAsSBYTE (u16 version) , DataStore

DATA, DataStore

static const u8* Celartem::TIFF6::getAsUNDEFINED ( const DataStore inDataStore,
const String inTag,
size_t *  outCount = NULL 
) [static]

This function returns the specified TIFF tag data as a u8 array from the DataStore instance if the array type is TIFF6::UNDEFINED. You can assume that the function does not throw any exceptions.

Parameters:
inDataStore The DataStore instance.
inTag The tag to search.
outCount Pointer to a size_t variable that receives the count of the data. It can be NULL if you don't need the count.
Returns:
The data of the tag. If any errors (the value is not found, the type mismatchs, ...), this function returns NULL.
See also:
getAsUNDEFINED (u16 version) , DataStore

static const i16* Celartem::TIFF6::getAsSSHORT ( const DataStore inDataStore,
const String inTag,
size_t *  outCount = NULL 
) [static]

This function returns the specified TIFF tag data as a i16 array from the DataStore instance if the array type is TIFF6::SSHORT. You can assume that the function does not throw any exceptions.

Parameters:
inDataStore The DataStore instance.
inTag The tag to search.
outCount Pointer to a size_t variable that receives the count of the data. It can be NULL if you don't need the count.
Returns:
The data of the tag. If any errors (the value is not found, the type mismatchs, ...), this function returns NULL.
See also:
getAsSSHORT (u16 version) , DataStore