Function libCZI::CreateSubBlockAttachmentAccessor

Function libCZI::CreateSubBlockAttachmentAccessor#

Function Documentation#

std::shared_ptr<ISubBlockAttachmentAccessor> libCZI::CreateSubBlockAttachmentAccessor(const std::shared_ptr<libCZI::ISubBlock> &sub_block, const std::shared_ptr<ISubBlockMetadata> &sub_block_metadata)#

Creates sub-block-attachment-accessor object for accessing attachments of a sub-block. Note that this version accepts an existing sub-block metadata object. If such an object is already available, then it can be passed in here and reused. However - in this case it is the caller’s responsibility to ensure that the metadata object passed in is actually the correct one for the sub-block passed in.

Parameters:
  • sub_block – The sub-block.

  • sub_block_metadata – The sub-block-metadata object (which must correspond the sub-block passed in as first argument). If this is null, then a new sub-block metadata object will be created internally.

Returns:

The newly created sub-block-attachment-accessor object.