Utility class implementing the IFileInterface class. More...
#include "murl_util_tools_file_interface.h"
Protected Member Functions | |
Bool | MapFile (const String &name, IEnums::FileCategory category, const UInt8 *&data, UInt64 &byteSize) override |
Implementation of FileInterface::MapFile(). More... | |
Bool | UnmapFile (const UInt8 *data) override |
Implementation of FileInterface::UnmapFile(). More... | |
Bool | CreateFolder (const String &absolutePath) override |
Implementation of FileInterface::CreateFolder(). More... | |
Bool | GetAbsolutePath (IEnums::FileCategory category, String &absolutePath) override |
Implementation of FileInterface::GetAbsolutePath(). More... | |
Protected Attributes | |
Index< const UInt8 * > | mMappedFiles |
The mapped files memory pointer storage. | |
Detailed Description
Utility class implementing the IFileInterface class.
The tools file interface class is intend for tools development and supports the file category IEnums::FILE_CATEGORY_CURRENT and IEnums::FILE_CATEGORY_ROOT only.
Member Function Documentation
◆ FileExists()
|
overridevirtual |
Implementation of IFileInterface::FileExists().
- Parameters
-
name The name of the file. category The category where the file reside.
- Returns
- true if the file exists.
Implements Murl::IFileInterface.
◆ FolderExists()
|
overridevirtual |
Implementation of IFileInterface::FolderExists().
- Parameters
-
name The name of the folder. category The category where the folder reside.
- Returns
- true if the folder exists.
Implements Murl::IFileInterface.
◆ MapFile()
|
overrideprotectedvirtual |
Implementation of FileInterface::MapFile().
- 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.
Implements Murl::Util::FileInterface.
◆ UnmapFile()
Implementation of FileInterface::UnmapFile().
- Parameters
-
data The mapped file data pointer.
- Returns
- true if successful.
Implements Murl::Util::FileInterface.
◆ CreateFolder()
|
overrideprotectedvirtual |
Implementation of FileInterface::CreateFolder().
- Parameters
-
absolutePath The path of the folder to create.
- Returns
- true if successful.
Implements Murl::Util::FileInterface.
◆ GetAbsolutePath()
|
overrideprotectedvirtual |
Implementation of FileInterface::GetAbsolutePath().
- Parameters
-
category The category of the folder. absolutePath The path of the folder return value.
- Returns
- true if successful.
Implements Murl::Util::FileInterface.
The documentation for this class was generated from the following file:
- murl_util_tools_file_interface.h