libopenraw
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
OpenRaw::Internals::IFDTypeTrait< T > Struct Template Reference

#include <ifdentry.h>

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)
static

get the value of type T

Parameters
Tthe type of the value needed
idxthe index, by default 0
ignore_typeif true, don't check type. DANGEROUS Default is false.
Returns
the value
Exceptions
BadTypeExceptionin case of wrong typing.
OutOfRangeExceptionin case of subscript out of range

Definition at line 211 of file ifdentry.h.

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

Referenced by OpenRaw::Internals::IFDDir::getIntegerValue(), and OpenRaw::Internals::IFDDir::getValue().

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: