Plasma Engine  2.0
Loading...
Searching...
No Matches
plDataDirectory::FolderWriter Class Reference

Handles writing to ordinary files. More...

#include <DataDirTypeFolder.h>

Inheritance diagram for plDataDirectory::FolderWriter:

Public Member Functions

 FolderWriter (plInt32 iDataDirUserData=0)
 
virtual plResult Write (const void *pBuffer, plUInt64 uiBytes) override
 
virtual plUInt64 GetFileSize () const override
 Returns the current total size of the file.
 
- Public Member Functions inherited from plDataDirectoryWriter
 plDataDirectoryWriter (plInt32 iDataDirUserData)
 
- Public Member Functions inherited from plDataDirectoryReaderWriterBase
 plDataDirectoryReaderWriterBase (plInt32 iDataDirUserData, bool bIsReader)
 The derived class should pass along whether it is a reader or writer.
 
plResult Open (plStringView sFile, plDataDirectoryType *pOwnerDataDirectory, plFileShareMode::Enum fileShareMode)
 Used by plDataDirectoryType's to try to open the given file. They need to pass along their own pointer.
 
void Close ()
 Closes this data stream.
 
const plString128GetFilePath () const
 Returns the relative path of this file within the owner data directory.
 
plDataDirectoryTypeGetDataDirectory () const
 Returns the pointer to the data directory, which created this reader/writer.
 
bool IsReader () const
 Returns true if this is a reader stream, false if it is a writer stream.
 
plInt32 GetDataDirUserData () const
 

Protected Member Functions

virtual plResult InternalOpen (plFileShareMode::Enum FileShareMode) override
 This function must be implemented by the derived class.
 
virtual void InternalClose () override
 This function must be implemented by the derived class.
 

Protected Attributes

bool m_bIsInUse
 
plOSFile m_File
 
- Protected Attributes inherited from plDataDirectoryReaderWriterBase
bool m_bIsReader
 
plInt32 m_iDataDirUserData = 0
 
plDataDirectoryTypem_pDataDirType
 
plString128 m_sFilePath
 

Friends

class FolderType
 

Detailed Description

Handles writing to ordinary files.

Member Function Documentation

◆ GetFileSize()

plUInt64 plDataDirectory::FolderWriter::GetFileSize ( ) const
overridevirtual

Returns the current total size of the file.

Implements plDataDirectoryReaderWriterBase.

◆ InternalClose()

void plDataDirectory::FolderWriter::InternalClose ( )
overrideprotectedvirtual

This function must be implemented by the derived class.

Implements plDataDirectoryReaderWriterBase.

Reimplemented in plDataDirectory::FileserveDataDirectoryWriter.

◆ InternalOpen()

plResult plDataDirectory::FolderWriter::InternalOpen ( plFileShareMode::Enum FileShareMode)
overrideprotectedvirtual

This function must be implemented by the derived class.

Implements plDataDirectoryReaderWriterBase.

◆ Write()

plResult plDataDirectory::FolderWriter::Write ( const void * pBuffer,
plUInt64 uiBytes )
overridevirtual

Implements plDataDirectoryWriter.


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