OpenRaw::Internals::IFDTypeTrait< T > Struct Template Reference

#include <ifdentry.h>

List of all members.

Public Member Functions

template<>
const uint16_t type
template<>
const size_t size
template<>
const uint16_t type
template<>
const size_t size
template<>
const uint16_t type
template<>
const size_t size
template<>
const uint16_t type
template<>
const size_t size
template<>
uint8_t EL (const uint8_t *b)
template<>
uint8_t BE (const uint8_t *b)
template<>
uint16_t EL (const uint8_t *b)
template<>
uint16_t BE (const uint8_t *b)
template<>
uint32_t EL (const uint8_t *b)
template<>
uint32_t BE (const uint8_t *b)
template<>
std::string EL (const uint8_t *b)
template<>
std::string BE (const uint8_t *b)

Static Public Member Functions

static T EL (const uint8_t *d)
static T BE (const uint8_t *d)
static T get (IFDEntry &e, uint32_t idx=0, bool ignore_type=false) throw (BadTypeException, OutOfRangeException, TooBigException)

Static Public Attributes

static const uint16_t type
static const size_t size

Detailed Description

template<typename T>
struct OpenRaw::Internals::IFDTypeTrait< T >

Describe and IFDType

Definition at line 43 of file ifdentry.h.


Member Function Documentation

template<typename T >
T OpenRaw::Internals::IFDTypeTrait< T >::get ( IFDEntry e,
uint32_t  idx = 0,
bool  ignore_type = false 
) throw (BadTypeException, OutOfRangeException, TooBigException) [inline, static]

get the value of type T

Parameters:
T the type of the value needed
idx the index, by default 0
ignore_type if true, don't check type. *DANGEROUS* Default is false.
Returns:
the value
Exceptions:
BadTypeException in case of wrong typing.
OutOfRangeException in case of subscript out of range

Definition at line 211 of file ifdentry.h.

References OpenRaw::Internals::RawContainer::ENDIAN_LITTLE.


Member Data Documentation

template<typename T >
const size_t OpenRaw::Internals::IFDTypeTrait< T >::size [static]

the storage size unit in IFD

Definition at line 46 of file ifdentry.h.

template<typename T >
const uint16_t OpenRaw::Internals::IFDTypeTrait< T >::type [static]

the EXIF enum for the type

Definition at line 45 of file ifdentry.h.


The documentation for this struct was generated from the following file:
Generated on Thu Jul 29 20:43:09 2010 for libopenraw by  doxygen 1.6.3