libopenraw  0.3.7
Modules | Classes | Typedefs | Functions

TIFF parsing, used as a base by various vendors. More...

Modules

 DNG parsing
 DNG file parsing.
 

Classes

class  OpenRaw::Internals::IfdDir
 An IFD directory. More...
 
struct  OpenRaw::Internals::IfdTypeTrait< T >
 Describe an IFD type. More...
 
class  OpenRaw::Internals::IfdEntry
 An entry in the IfdDir. More...
 
class  OpenRaw::Internals::IfdFile
 A generic IFD (TIFF) based raw file. More...
 
class  OpenRaw::Internals::IfdFileContainer
 IFD container (TIFF). More...
 
class  OpenRaw::Internals::TiffEpFile
 TIFF.EP conformant files. More...
 

Typedefs

typedef or_ifd_dir_type OpenRaw::Internals::IfdDirType
 

Functions

template<typename T >
Option< std::vector< T > > OpenRaw::Internals::IfdDir::getEntryArrayValue (IfdEntry &e) const
 Get the entry value as an array. More...
 
template<typename T >
OpenRaw::Internals::IfdDir::getEntryValue (IfdEntry &e, uint32_t idx=0, bool ignore_type=false) const
 Get the typed entry value. More...
 

Detailed Description

TIFF parsing, used as a base by various vendors.

Function Documentation

◆ getEntryArrayValue()

template<typename T >
Option< std::vector< T > > OpenRaw::Internals::IfdDir::getEntryArrayValue ( IfdEntry entry) const

Get the entry value as an array.

Get the array values of type T.

Parameters
Tthe type of the value needed
arraythe storage
Exceptions
whateveris thrown

Definition at line 257 of file ifddir.hpp.

References OpenRaw::Internals::IfdEntry::count().

◆ getEntryValue()

template<typename T >
T OpenRaw::Internals::IfdDir::getEntryValue ( IfdEntry e,
uint32_t  idx = 0,
bool  ignore_type = false 
) const
noexcept

Get the typed entry value.

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 283 of file ifddir.hpp.