libCZI
Reading and Writing CZI documents made easy
libCZI::CCziReaderWriterInfo Class Reference

An implementation of the ICziReaderWriterInfo-interface. More...

#include <libCZI_ReadWrite.h>

Inheritance diagram for libCZI::CCziReaderWriterInfo:
libCZI::ICziReaderWriterInfo

Public Member Functions

 CCziReaderWriterInfo ()
 Default constructor - sets all information to "invalid" and sets fileGuid to GUID_NULL.
 
 CCziReaderWriterInfo (const GUID &fileGuid)
 
bool GetForceFileGuid () const override
 
const GUIDGetFileGuid () const override
 
void SetForceFileGuid (bool forceFileGuid)
 

Detailed Description

An implementation of the ICziReaderWriterInfo-interface.

Constructor & Destructor Documentation

◆ CCziReaderWriterInfo()

libCZI::CCziReaderWriterInfo::CCziReaderWriterInfo ( const GUID fileGuid)
inlineexplicit

Constructor.

Parameters
fileGuidUnique identifier for the file.

Member Function Documentation

◆ GetFileGuid()

const GUID& libCZI::CCziReaderWriterInfo::GetFileGuid ( ) const
inlineoverridevirtual

Gets file's unique identifier. If we report GUID_NULL, then the file-writer will create a GUID on its own. Note that this GUID is only retrieved and used if the existing file is empty or if GetForceFileGuid() gives true.

Returns
The file's unique identifier.

Implements libCZI::ICziReaderWriterInfo.

◆ GetForceFileGuid()

bool libCZI::CCziReaderWriterInfo::GetForceFileGuid ( ) const
inlineoverridevirtual

Gets a value indicating that the GUID in the existing file-handler should be replaced with the GUID reported by 'GetFileGuid()'.

Returns
True if the GUID should be replaced, false otherwise.

Implements libCZI::ICziReaderWriterInfo.

◆ SetForceFileGuid()

void libCZI::CCziReaderWriterInfo::SetForceFileGuid ( bool  forceFileGuid)
inline

Sets "force file GUID" flag.

Parameters
forceFileGuidTrue to force the specified file-Guid.

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