Utility class implementing a IFileInterface base class. More...
#include "murl_util_file_interface.h"
Protected Member Functions | |
virtual Bool | MapFile (const String &name, IEnums::FileCategory category, const UInt8 *&data, UInt64 &byteSize)=0 |
Memory-map a read-only file. More... | |
virtual Bool | UnmapFile (const UInt8 *data)=0 |
Unmap a memory mapped file. More... | |
virtual Bool | CreateFolder (const String &absolutePath)=0 |
Create a folder. More... | |
virtual Bool | GetAbsolutePath (IEnums::FileCategory category, String &absolutePath)=0 |
Get the absolute folder path to a file category. More... | |
Detailed Description
Utility class implementing a IFileInterface base class.
Member Function Documentation
◆ GetAbsoluteName()
|
overridevirtual |
Implementation of IFileInterface::GetAbsoluteName().
- Parameters
-
relativeName The name of the file. category The category where the file reside. absoluteName The absolute file name return value.
- Returns
- true if successful, if false the 'absoluteName' return value is unchanged.
Implements Murl::IFileInterface.
◆ GetAllFileNames()
|
overridevirtual |
Implementation of IFileInterface::GetAllFileNames().
- Parameters
-
relativePath The name of the folder. category The category where the folder reside. names The array of file names return value.
- Returns
- true if successful, if false the 'names' return value is unchanged.
Implements Murl::IFileInterface.
◆ GetAllFolderNames()
|
overridevirtual |
Implementation of IFileInterface::GetAllFolderNames().
- Parameters
-
relativePath The name of the folder. category The category where the folder reside. names The array of folder names return value.
- Returns
- true if successful, if false the 'names' return value is unchanged.
Implements Murl::IFileInterface.
◆ OpenFile()
|
overridevirtual |
Implementation of IFileInterface::OpenFile().
- Parameters
-
name The name of the file. category The category where the file reside. mode The access mode for the file to open. createFolders Create the folders constained in file name if the folders do not exist.
- Returns
- The file interface or null if not successful.
Implements Murl::IFileInterface.
◆ CloseFile()
Implementation of IFileInterface::CloseFile().
- Parameters
-
handle A reference to the file interface to close. After destruction the pointer is set to null.
- Returns
- true if successful.
Implements Murl::IFileInterface.
◆ MapFileData()
|
overridevirtual |
Implementation of IFileInterface::MapFileData().
- Parameters
-
name The name of the file. category The category where the file reside. data The file data object return value.
- Returns
- true if successful, if false the 'data' return value is unchanged.
Implements Murl::IFileInterface.
◆ UnmapFileData()
Implementation of IFileInterface::UnmapFileData().
- Parameters
-
data The file data object to the memory mapped file. After unmapping the data object is empty.
- Returns
- true if successful.
Implements Murl::IFileInterface.
◆ MapFile()
|
protectedpure virtual |
Memory-map a read-only file.
- Parameters
-
name The name of the file. category The category where the file reside. data The file data pointer return value. byteSize The byte size return value.
- Returns
- true if successful, if false the return values stay unchanged.
Implemented in Murl::Util::ToolsFileInterface.
◆ UnmapFile()
Unmap a memory mapped file.
- Parameters
-
data The mapped file data pointer.
- Returns
- true if successful.
Implemented in Murl::Util::ToolsFileInterface.
◆ CreateFolder()
|
protectedpure virtual |
Create a folder.
- Parameters
-
absolutePath The path of the folder to create.
- Returns
- true if successful.
Implemented in Murl::Util::ToolsFileInterface.
◆ GetAbsolutePath()
|
protectedpure virtual |
Get the absolute folder path to a file category.
- Parameters
-
category The category of the folder. absolutePath The path of the folder return value.
- Returns
- true if successful.
Implemented in Murl::Util::ToolsFileInterface.
The documentation for this class was generated from the following file:
- murl_util_file_interface.h