OMPF::ompfResourceSearchPathChunk Class Reference

#include <ompfResourceSearchPathChunk.h>

Inherits OMPF::ompfBaseChunk.

Public Member Functions

 ompfResourceSearchPathChunk ()
 
virtual ~ompfResourceSearchPathChunk ()=default
 
uint32 getSize (const ompfSettings &settings) override
 
void setPath (iaString path)
 
iaString getPath () const
 
void setPathType (OMPFPathType pathType)
 
OMPFPathType getPathType () 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

search path chunk

Constructor & Destructor Documentation

◆ ompfResourceSearchPathChunk()

OMPF::ompfResourceSearchPathChunk::ompfResourceSearchPathChunk ( )

does nothing

◆ ~ompfResourceSearchPathChunk()

virtual OMPF::ompfResourceSearchPathChunk::~ompfResourceSearchPathChunk ( )
virtualdefault

does nothing

Member Function Documentation

◆ getPath()

iaString OMPF::ompfResourceSearchPathChunk::getPath ( ) const
Returns
the search path

◆ getPathType()

OMPFPathType OMPF::ompfResourceSearchPathChunk::getPathType ( ) const
Returns
path type

◆ getSize()

uint32 OMPF::ompfResourceSearchPathChunk::getSize ( const ompfSettings settings)
overridevirtual
Returns
size of chunk in bytes
Parameters
settingsthe settings the size calculation is based on

Reimplemented from OMPF::ompfBaseChunk.

◆ setPath()

void OMPF::ompfResourceSearchPathChunk::setPath ( iaString  path)

sets the search path

Parameters
patha path we later can search in

◆ setPathType()

void OMPF::ompfResourceSearchPathChunk::setPathType ( OMPFPathType  pathType)

sets path type

Parameters
pathTypepath type

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