OpenRaw::Internals::IFDDir Class Reference

List of all members.

Public Types

typedef boost::shared_ptr<
IFDDir
Ref

Public Member Functions

 IFDDir (off_t _offset, IFDFileContainer &_container)
virtual ~IFDDir ()
off_t offset () const
bool load ()
int numTags ()
IFDEntry::Ref getEntry (int id)
bool getIntegerValue (int id, uint32_t &v)
bool getLongValue (int id, uint32_t &v)
bool getShortValue (int id, uint16_t &v)
off_t nextIFD ()
Ref getSubIFD ()
Ref getExifIFD ()

Detailed Description

Definition at line 35 of file ifddir.h.


Member Function Documentation

IFDDir::Ref OpenRaw::Internals::IFDDir::getExifIFD (  ) 

get the Exif IFD.

Returns:
Ref to the new IFDDir if found

Definition at line 187 of file ifddir.cpp.

References getLongValue(), IFDDir(), and offset().

bool OpenRaw::Internals::IFDDir::getIntegerValue ( int  id,
uint32_t &  v 
)

Get an loosely typed integer value from an entry. This method is preferred over getLongValue() or getShortValue() unless you really want the strong typing that IFD structure provide

Parameters:
id the IFD field id
Return values:
v the long value
Returns:
true if success

Definition at line 84 of file ifddir.cpp.

References getEntry().

bool OpenRaw::Internals::IFDDir::getLongValue ( int  id,
uint32_t &  v 
)

Get a long value from an entry

Parameters:
id the IFD field id
Return values:
v the long value
Returns:
true if success

Definition at line 113 of file ifddir.cpp.

References getEntry().

Referenced by getExifIFD(), and getSubIFD().

bool OpenRaw::Internals::IFDDir::getShortValue ( int  id,
uint16_t &  v 
)

Get a short value from an entry

Parameters:
id the IFD field id
Return values:
v the long value
Returns:
true if success

Definition at line 131 of file ifddir.cpp.

References getEntry().

IFDDir::Ref OpenRaw::Internals::IFDDir::getSubIFD (  ) 

get the SubIFD.

Returns:
Ref to the new IFDDir if found

Definition at line 173 of file ifddir.cpp.

References getLongValue(), IFDDir(), and offset().

bool OpenRaw::Internals::IFDDir::load (  ) 

load the directory to memory

Definition at line 49 of file ifddir.cpp.

References OpenRaw::Internals::RawContainer::file(), OpenRaw::IO::Stream::read(), OpenRaw::Internals::RawContainer::readInt16(), OpenRaw::Internals::RawContainer::readInt32(), and OpenRaw::IO::Stream::seek().

off_t OpenRaw::Internals::IFDDir::nextIFD (  ) 

get the offset of the next IFD in absolute

Definition at line 148 of file ifddir.cpp.

References OpenRaw::Internals::RawContainer::file(), OpenRaw::Internals::RawContainer::readInt16(), OpenRaw::Internals::RawContainer::readInt32(), and OpenRaw::IO::Stream::seek().

int OpenRaw::Internals::IFDDir::numTags (  )  [inline]

return the number of entries

Definition at line 52 of file ifddir.h.

off_t OpenRaw::Internals::IFDDir::offset (  )  const [inline]

return the offset

Definition at line 44 of file ifddir.h.

Referenced by getExifIFD(), and getSubIFD().


The documentation for this class was generated from the following files:
Generated on Sat Jan 27 11:36:13 2007 for libopenraw by  doxygen 1.4.7