OMPF::ompfExternalReferenceChunk Class Reference

#include <ompfExternalReferenceChunk.h>

Inherits OMPF::ompfBaseChunk.

Public Member Functions

 ompfExternalReferenceChunk ()
 
virtual ~ompfExternalReferenceChunk ()=default
 
uint32 getSize (const ompfSettings &settings) override
 
void setFilename (const iaString &filename)
 
iaString getFilename () const
 
- Public Member Functions inherited from OMPF::ompfBaseChunk
 ompfBaseChunk (OMPFChunkType typeID)
 
virtual ~ompfBaseChunk ()=default
 
virtual bool write (std::ofstream &stream, const ompfSettings &settings)
 
virtual bool read (std::ifstream &stream, ompfSettings &settings)
 
void insertChunk (ompfBaseChunk *chunk)
 
void removeChunk (ompfBaseChunk *chunk)
 
bool hasParent () const
 
uint32 getParentID () const
 
void setParentID (const uint32 parentID)
 
bool hasChildren () const
 
const std::vector< ompfBaseChunk * > & getChildren () const
 
void setID (const uint32 chunkID)
 
uint32 getID () const
 
virtual uint32 getSize (const ompfSettings &settings)
 
OMPFChunkType getType () const
 
void setName (const iaString &name)
 
iaString getName () const
 

Detailed Description

chunk that contains an external reference to an other file

Constructor & Destructor Documentation

◆ ompfExternalReferenceChunk()

OMPF::ompfExternalReferenceChunk::ompfExternalReferenceChunk ( )

does nothing

◆ ~ompfExternalReferenceChunk()

virtual OMPF::ompfExternalReferenceChunk::~ompfExternalReferenceChunk ( )
virtualdefault

does nothing

Member Function Documentation

◆ getFilename()

iaString OMPF::ompfExternalReferenceChunk::getFilename ( ) const
Returns
file name of external reference

◆ getSize()

uint32 OMPF::ompfExternalReferenceChunk::getSize ( const ompfSettings settings)
overridevirtual
Returns
size of chunk in bytes
Parameters
settingsthe settings the chunk's size depends on

Reimplemented from OMPF::ompfBaseChunk.

◆ setFilename()

void OMPF::ompfExternalReferenceChunk::setFilename ( const iaString filename)

sets file name of external reference

Parameters
filenamethe file name

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