|
libopenraw
0.3.7
|
A record entry from a CIFF Heap. More...
#include <recordentry.hpp>
Classes | |
| struct | InHeap |
Public Types | |
| typedef boost::array< uint8_t, 8 > | InRec |
Public Member Functions | |
| bool | readFrom (const CIFFContainer *container) |
| size_t | fetchData (Heap *heap, void *buf, size_t size) const |
| bool | isHeap () const |
| CIFFType | type () const |
| Heap | heap (Heap &h, const CIFFContainer *container) const |
| uint32_t | count () const |
| uint16_t | exifType () const |
| uint32_t | containerOffset (const Heap &heap) const |
| std::string | getString (Heap &heap) const |
| bool | inRecord () const |
| uint32_t | length () const |
| uint32_t | offset () const |
Public Attributes | |
| uint16_t | typeCode |
| boost::variant< InRec, InHeap > | data |
A record entry from a CIFF Heap.
Definition at line 68 of file recordentry.hpp.
| typedef boost::array<uint8_t, 8> OpenRaw::Internals::CIFF::RecordEntry::InRec |
Im record record (8 bytes)
Definition at line 112 of file recordentry.hpp.
| uint32_t OpenRaw::Internals::CIFF::RecordEntry::containerOffset | ( | const Heap & | heap | ) | const |
Offset from begining of container
Definition at line 120 of file recordentry.cpp.
References heap(), OpenRaw::Internals::CIFF::Heap::offset(), and offset().
| uint32_t OpenRaw::Internals::CIFF::RecordEntry::count | ( | ) | const |
Number of unit count, derived from byte size
Definition at line 87 of file recordentry.cpp.
| uint16_t OpenRaw::Internals::CIFF::RecordEntry::exifType | ( | ) | const |
| size_t OpenRaw::Internals::CIFF::RecordEntry::fetchData | ( | Heap * | heap, |
| void * | buf, | ||
| size_t | size | ||
| ) | const |
fetch data define by the record from the heap
| heap | the heap to load from |
| buf | the allocated buffer to load into |
| size | the size of the allocated buffer |
Definition at line 76 of file recordentry.cpp.
References OpenRaw::Internals::CIFF::Heap::container(), OpenRaw::Internals::RawContainer::fetchData(), heap(), OpenRaw::Internals::CIFF::Heap::offset(), and offset().
Referenced by OpenRaw::Internals::CRWFile::_getRawData(), and getString().
| std::string OpenRaw::Internals::CIFF::RecordEntry::getString | ( | Heap & | heap | ) | const |
Return a string stored in the record entry... if applicable
Definition at line 125 of file recordentry.cpp.
References fetchData(), heap(), length(), and type().
| Heap OpenRaw::Internals::CIFF::RecordEntry::heap | ( | Heap & | h, |
| const CIFFContainer * | container | ||
| ) | const |
Create a heap from the RecordEntry
Definition at line 82 of file recordentry.cpp.
References length(), OpenRaw::Internals::CIFF::Heap::offset(), and offset().
Referenced by OpenRaw::Internals::CRWFile::_getRawData(), containerOffset(), fetchData(), and getString().
|
inline |
Return whether the data is in-record.
Definition at line 127 of file recordentry.hpp.
References OpenRaw::Internals::CIFF::STORAGELOC_MASK, and typeCode.
Referenced by length(), offset(), and readFrom().
|
inline |
|
inline |
Length of the data in the Heap
Definition at line 134 of file recordentry.hpp.
References data, and inRecord().
Referenced by OpenRaw::Internals::CRWFile::_getRawData(), count(), getString(), heap(), and readFrom().
|
inline |
Offset of the data in the Heap
Definition at line 145 of file recordentry.hpp.
References data, and inRecord().
Referenced by OpenRaw::Internals::CRWFile::_getRawData(), containerOffset(), fetchData(), heap(), and readFrom().
| bool OpenRaw::Internals::CIFF::RecordEntry::readFrom | ( | const CIFFContainer * | container | ) |
load record from container
| container | the container |
Definition at line 46 of file recordentry.cpp.
References data, OpenRaw::Internals::RawContainer::fetchData(), inRecord(), length(), offset(), OpenRaw::Internals::RawContainer::readUInt16(), OpenRaw::Internals::RawContainer::readUInt32(), and typeCode.
|
inline |
Type of current record CIFFType
Definition at line 94 of file recordentry.hpp.
References OpenRaw::Internals::CIFF::FORMAT_MASK, and typeCode.
Referenced by count(), exifType(), getString(), and isHeap().
Actual data of the record
Definition at line 155 of file recordentry.hpp.
Referenced by length(), offset(), and readFrom().
| uint16_t OpenRaw::Internals::CIFF::RecordEntry::typeCode |
type code of the record
Definition at line 153 of file recordentry.hpp.
Referenced by inRecord(), readFrom(), and type().