![]() |
XII Release 0.1.0
|
Handles writing to ordinary files. More...
#include <DataDirTypeFolder.h>
Public Member Functions | |
FolderWriter (xiiInt32 iDataDirUserData=0) | |
virtual xiiResult | Write (const void *pBuffer, xiiUInt64 uiBytes) override |
virtual xiiUInt64 | GetFileSize () const override |
Returns the current total size of the file. | |
![]() | |
xiiDataDirectoryWriter (xiiInt32 iDataDirUserData) | |
![]() | |
xiiDataDirectoryReaderWriterBase (xiiInt32 iDataDirUserData, bool bIsReader) | |
The derived class should pass along whether it is a reader or writer. | |
xiiResult | Open (xiiStringView sFile, xiiDataDirectoryType *pOwnerDataDirectory, xiiFileShareMode::Enum fileShareMode) |
Used by xiiDataDirectoryType's to try to open the given file. They need to pass along their own pointer. | |
void | Close () |
Closes this data stream. | |
const xiiString128 & | GetFilePath () const |
Returns the relative path of this file within the owner data directory. | |
xiiDataDirectoryType * | GetDataDirectory () 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. | |
xiiInt32 | GetDataDirUserData () const |
Protected Member Functions | |
virtual xiiResult | InternalOpen (xiiFileShareMode::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 |
xiiOSFile | m_File |
![]() | |
bool | m_bIsReader |
xiiInt32 | m_iDataDirUserData = 0 |
xiiDataDirectoryType * | m_pDataDirType |
xiiString128 | m_sFilePath |
Friends | |
class | FolderType |
Handles writing to ordinary files.
|
overridevirtual |
Returns the current total size of the file.
Implements xiiDataDirectoryReaderWriterBase.
|
overrideprotectedvirtual |
This function must be implemented by the derived class.
Implements xiiDataDirectoryReaderWriterBase.
Reimplemented in xiiDataDirectory::FileserveDataDirectoryWriter.
|
overrideprotectedvirtual |
This function must be implemented by the derived class.
Implements xiiDataDirectoryReaderWriterBase.
|
overridevirtual |
Implements xiiDataDirectoryWriter.