libopenraw
OpenRaw::Internals::MakerNoteDir Class Reference
Inheritance diagram for OpenRaw::Internals::MakerNoteDir:
OpenRaw::Internals::IfdDir

Public Types

typedef std::shared_ptr< MakerNoteDirRef
Public Types inherited from OpenRaw::Internals::IfdDir
typedef std::shared_ptr< IfdDirRef
typedef std::vector< Ref > RefVec

Public Member Functions

 MakerNoteDir (off_t _offset, IfdFileContainer &_container, off_t mnote_offset, const std::string &id)
off_t getMnoteOffset () const
const std::string & getId () const
Public Member Functions inherited from OpenRaw::Internals::IfdDir
 IfdDir (off_t _offset, IfdFileContainer &_container)
bool isPrimary () const
bool isThumbnail () const
off_t offset () const
const IfdFileContainercontainer () const
bool load ()
int numTags ()
IfdEntry::Ref getEntry (uint16_t id) const
template<typename T>
Option< T > getValue (uint16_t id) const
Option< uint32_t > getIntegerValue (uint16_t id)
off_t nextIFD ()
Ref getSubIFD (uint32_t idx=0) const
Option< std::vector< IfdDir::Ref > > getSubIFDs ()
Ref getExifIFD ()
Ref getMakerNoteIfd ()

Static Public Member Functions

static Ref createMakerNote (off_t offset, IfdFileContainer &container)

Protected Member Functions

 MakerNoteDir (const char *magic, size_t hlen, off_t _offset, IfdFileContainer &_container, off_t mnote_offset, const std::string &id)

Protected Attributes

std::string m_magic
size_t m_hlen
off_t m_mnote_offset
std::string m_id

Detailed Description

Definition at line 37 of file makernotedir.hpp.

Member Typedef Documentation

◆ Ref

typedef std::shared_ptr<MakerNoteDir> OpenRaw::Internals::MakerNoteDir::Ref

Definition at line 41 of file makernotedir.hpp.

Constructor & Destructor Documentation

◆ MakerNoteDir() [1/2]

OpenRaw::Internals::MakerNoteDir::MakerNoteDir ( off_t _offset,
IfdFileContainer & _container,
off_t mnote_offset,
const std::string & id )

Definition at line 82 of file makernotedir.cpp.

◆ ~MakerNoteDir()

OpenRaw::Internals::MakerNoteDir::~MakerNoteDir ( )
virtual

Definition at line 103 of file makernotedir.cpp.

◆ MakerNoteDir() [2/2]

OpenRaw::Internals::MakerNoteDir::MakerNoteDir ( const char * magic,
size_t hlen,
off_t _offset,
IfdFileContainer & _container,
off_t mnote_offset,
const std::string & id )
protected

Definition at line 90 of file makernotedir.cpp.

Member Function Documentation

◆ createMakerNote()

MakerNoteDir::Ref OpenRaw::Internals::MakerNoteDir::createMakerNote ( off_t offset,
IfdFileContainer & container )
static

Create the appropriate MakerNote at offset

Definition at line 39 of file makernotedir.cpp.

References OpenRaw::Internals::IfdDir::offset().

Referenced by OpenRaw::Internals::IfdDir::getMakerNoteIfd().

◆ getId()

const std::string & OpenRaw::Internals::MakerNoteDir::getId ( ) const
inline

Definition at line 54 of file makernotedir.hpp.

◆ getMnoteOffset()

off_t OpenRaw::Internals::MakerNoteDir::getMnoteOffset ( ) const
inline

Definition at line 51 of file makernotedir.hpp.

Member Data Documentation

◆ m_hlen

size_t OpenRaw::Internals::MakerNoteDir::m_hlen
protected

Definition at line 64 of file makernotedir.hpp.

◆ m_id

std::string OpenRaw::Internals::MakerNoteDir::m_id
protected

Definition at line 66 of file makernotedir.hpp.

◆ m_magic

std::string OpenRaw::Internals::MakerNoteDir::m_magic
protected

Definition at line 63 of file makernotedir.hpp.

◆ m_mnote_offset

off_t OpenRaw::Internals::MakerNoteDir::m_mnote_offset
protected

Definition at line 65 of file makernotedir.hpp.


The documentation for this class was generated from the following files: