Exiv2
List of all members
Exiv2::Internal::Nikon3MnHeader Class Reference

Header of a Nikon 3 Makernote. More...

#include <makernote_int.hpp>

Inheritance diagram for Exiv2::Internal::Nikon3MnHeader:
Inheritance graph
[legend]

Public Member Functions

Creators
 Nikon3MnHeader ()
 Default constructor.
 
 ~Nikon3MnHeader () override=default
 Virtual destructor.
 
Manipulators
bool read (const byte *pData, uint32_t size, ByteOrder byteOrder) override
 Read the header from a data buffer, return true if ok. More...
 
void setByteOrder (ByteOrder byteOrder) override
 Set the byte order for the makernote. More...
 
- Public Member Functions inherited from Exiv2::Internal::MnHeader
virtual ~MnHeader ()=default
 Virtual destructor.
 

Accessors

uint32_t size () const override
 Return the size of the header (in bytes). More...
 
uint32_t write (IoWrapper &ioWrapper, ByteOrder byteOrder) const override
 Write the header to a data buffer, return the number of bytes written. More...
 
uint32_t ifdOffset () const override
 Return the offset to the start of the Makernote IFD from the start of the Makernote (= the start of the header). More...
 
ByteOrder byteOrder () const override
 Return the byte order for the makernote. If the return value is invalidByteOrder, this means that the byte order of the the image should be used for the makernote. More...
 
uint32_t baseOffset (uint32_t mnOffset) const override
 Return the base offset for the makernote IFD entries relative to the start of the TIFF header. mnOffset is the offset to the makernote from the start of the TIFF header. More...
 
static uint32_t sizeOfSignature ()
 Return the size of the makernote header signature.
 

Detailed Description

Header of a Nikon 3 Makernote.

Member Function Documentation

◆ baseOffset()

uint32_t Exiv2::Internal::Nikon3MnHeader::baseOffset ( uint32_t  mnOffset) const
overridevirtual

Return the base offset for the makernote IFD entries relative to the start of the TIFF header. mnOffset is the offset to the makernote from the start of the TIFF header.

Reimplemented from Exiv2::Internal::MnHeader.

◆ byteOrder()

ByteOrder Exiv2::Internal::Nikon3MnHeader::byteOrder ( ) const
overridevirtual

Return the byte order for the makernote. If the return value is invalidByteOrder, this means that the byte order of the the image should be used for the makernote.

Reimplemented from Exiv2::Internal::MnHeader.

Referenced by setByteOrder(), and write().

◆ ifdOffset()

uint32_t Exiv2::Internal::Nikon3MnHeader::ifdOffset ( ) const
overridevirtual

Return the offset to the start of the Makernote IFD from the start of the Makernote (= the start of the header).

Reimplemented from Exiv2::Internal::MnHeader.

◆ read()

bool Exiv2::Internal::Nikon3MnHeader::read ( const byte *  pData,
uint32_t  size,
ByteOrder  byteOrder 
)
overridevirtual

◆ setByteOrder()

void Exiv2::Internal::Nikon3MnHeader::setByteOrder ( ByteOrder  byteOrder)
overridevirtual

Set the byte order for the makernote.

Reimplemented from Exiv2::Internal::MnHeader.

References byteOrder().

◆ size()

uint32_t Exiv2::Internal::Nikon3MnHeader::size ( ) const
overridevirtual

Return the size of the header (in bytes).

Implements Exiv2::Internal::MnHeader.

References sizeOfSignature().

Referenced by read().

◆ write()

uint32_t Exiv2::Internal::Nikon3MnHeader::write ( IoWrapper &  ioWrapper,
ByteOrder  byteOrder 
) const
overridevirtual

Write the header to a data buffer, return the number of bytes written.

Implements Exiv2::Internal::MnHeader.

References byteOrder(), Exiv2::DataBuf::c_data(), Exiv2::Internal::TiffHeaderBase::write(), and Exiv2::Internal::IoWrapper::write().


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