libCZI
Reading and Writing CZI documents made easy
libCZI::IMetadataSegment Class Referenceabstract

Interface representing the metadata-segment. More...

#include <libCZI.h>

Public Types

enum  MemBlkType { XmlMetadata , Attachment }
 Values that represent the two different data types found in the metadata-segment. More...
 

Public Member Functions

virtual std::shared_ptr< const void > GetRawData (MemBlkType type, size_t *ptrSize)=0
 
virtual void DangerousGetRawData (MemBlkType type, const void *&ptr, size_t &size) const =0
 
std::shared_ptr< ICziMetadataCreateMetaFromMetadataSegment ()
 

Detailed Description

Interface representing the metadata-segment.

Member Enumeration Documentation

◆ MemBlkType

Values that represent the two different data types found in the metadata-segment.

Enumerator
XmlMetadata 

The metadata (in UTF8-XML-format)

Attachment 

The attachment (not currently used).

Member Function Documentation

◆ CreateMetaFromMetadataSegment()

std::shared_ptr<ICziMetadata> libCZI::IMetadataSegment::CreateMetaFromMetadataSegment ( )
inline

Creates metadata object from this metadata segment.

Returns
The newly created metadata object.

◆ DangerousGetRawData()

virtual void libCZI::IMetadataSegment::DangerousGetRawData ( MemBlkType  type,
const void *&  ptr,
size_t &  size 
) const
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.

Parameters
typeThe metadata-segment memory-block type.
[out]ptrThe pointer to the data is stored here.
[out]sizeThe size of the data.

◆ GetRawData()

virtual std::shared_ptr<const void> libCZI::IMetadataSegment::GetRawData ( MemBlkType  type,
size_t *  ptrSize 
)
pure virtual

Gets raw data.

Parameters
typeThe metadata-segment memory-block type.
[out]ptrSizeIf non-null, thus size of the data (in bytes) is stored here.
Returns
The raw data.

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