libCZI
Reading and Writing CZI documents made easy
|
#include <libCZI.h>
Public Types | |
enum | MemBlkType { Metadata , Data , Attachment } |
Values that represent the three different data types found in a sub-block. More... | |
Public Member Functions | |
virtual const SubBlockInfo & | GetSubBlockInfo () const =0 |
virtual void | DangerousGetRawData (MemBlkType type, const void *&ptr, size_t &size) const =0 |
virtual std::shared_ptr< const void > | GetRawData (MemBlkType type, size_t *ptrSize)=0 |
virtual std::shared_ptr< IBitmapData > | CreateBitmap ()=0 |
template<class Q > | |
void | DangerousGetRawData (MemBlkType type, const Q *&ptr, size_t &size) const |
Representation of a sub-block. A sub-block can contain three types of data: the bitmap-data, an attachment and metadata. The presence of an attachment is optional.
|
pure virtual |
Creates a bitmap (from the data of this sub-block).
|
inline |
A helper method used to cast the pointer to a specific type.
type | The sub-block data-type. | |
[out] | ptr | The pointer to the data is stored here. |
[out] | size | The size of the data. |
|
pure virtual |
Get a pointer to the raw data. Note that the pointer returned is only valid during the lifetime of the sub-block-object.
type | The sub-block data-type. | |
[out] | ptr | The pointer to the data is stored here. |
[out] | size | The size of the data. |
|
pure virtual |
Gets raw data.
type | The type. | |
[out] | ptrSize | If non-null, size of the data buffer is stored here. |
|
pure virtual |
Gets sub-block information.