OpenRaw::Internals::IFDEntry Class Reference

List of all members.

Public Types

typedef boost::shared_ptr
< IFDEntry
Ref

Public Member Functions

 IFDEntry (uint16_t _id, int16_t _type, int32_t _count, uint32_t _data, IFDFileContainer &_container)
int16_t type () const
uint16_t count () const
off_t offset ()
RawContainer::EndianType endian () const
bool loadData (size_t unit_size)
template<typename T >
void getArray (std::vector< T > &array)

Friends

struct IFDTypeTrait

Detailed Description

Definition at line 118 of file ifdentry.h.


Member Typedef Documentation

typedef boost::shared_ptr<IFDEntry> OpenRaw::Internals::IFDEntry::Ref

Ref (ie shared pointer)

Definition at line 122 of file ifdentry.h.


Member Function Documentation

uint16_t OpenRaw::Internals::IFDEntry::count (  )  const [inline]

the count of items in the entry

Definition at line 135 of file ifdentry.h.

template<typename T >
void OpenRaw::Internals::IFDEntry::getArray ( std::vector< T > &  array  )  [inline]

get the array values of type T

Parameters:
T the type of the value needed
array the storage
Exceptions:
whatever is thrown

Definition at line 168 of file ifdentry.h.

bool OpenRaw::Internals::IFDEntry::loadData ( size_t  unit_size  ) 

load the data for the entry if all the data fits in m_data, it is a noop

Parameters:
unit_size the size of 1 unit of data
Returns:
true if success.

Definition at line 60 of file ifdentry.cpp.

References OpenRaw::Internals::RawContainer::ENDIAN_LITTLE, and OpenRaw::Internals::RawContainer::fetchData().

off_t OpenRaw::Internals::IFDEntry::offset (  )  [inline]

the offset of the data. It can just be the value if the entry is self contained.

Definition at line 143 of file ifdentry.h.

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


The documentation for this class was generated from the following files:
Generated on Thu Jul 29 20:40:28 2010 for libopenraw by  doxygen 1.6.3