![]() |
Murl Engine API
Version 2018.3
|
Utility class implementing the IFile interface. More...
#include <murl_util_file.h>
Utility class implementing the IFile interface.
Public Member Functions | |
File (const String &name, IEnums::FileAccessMode accessMode) | |
Constructor taking the file name and access mode. More... | |
virtual | ~File () |
The destructor. More... | |
virtual UInt64 | GetPosition () |
Implementation of IFile::GetPosition(). More... | |
virtual void | SetPosition (UInt64 position) |
Implementation of IFile::SetPosition(). More... | |
virtual UInt64 | GetSize () |
Implementation of IFile::GetSize(). More... | |
virtual UInt64 | Read (void *data, UInt64 byteSize) |
Implementation of IFile::Read(void* data, UInt64 byteSize). More... | |
virtual UInt64 | Write (const void *data, UInt64 byteSize) |
Implementation of IFile::Write(const void* data, UInt64 byteSize). More... | |
virtual UInt64 | Read (Data &data) |
Implementation of IFile::Read(Data& data). More... | |
virtual UInt64 | Write (const ConstData &data) |
Implementation of IFile::Write(const ConstData& data). More... | |
virtual Bool | Open () |
Open the file. More... | |
virtual Bool | Close () |
Close the file. More... | |
Protected Attributes | |
String | mName |
The file name storage. More... | |
IEnums::FileAccessMode | mAccessMode |
The access mode storage. More... | |
System::File | mFile |
The system file object. More... | |
Murl::Util::File::File | ( | const String & | name, |
IEnums::FileAccessMode | accessMode | ||
) |
Constructor taking the file name and access mode.
name | The file name. |
accessMode | The access mode for opening the file. |
|
virtual |
The destructor.
Close the file if open.
|
virtual |
Implementation of IFile::GetPosition().
Implements Murl::IFile.
|
virtual |
Implementation of IFile::SetPosition().
position | The position of the file pointer in bytes. |
Implements Murl::IFile.
|
virtual |
Implementation of IFile::Read(void* data, UInt64 byteSize).
data | The memory pointer to read the file into. |
byteSize | The number of bytes to read. |
Implements Murl::IFile.
Implementation of IFile::Write(const void* data, UInt64 byteSize).
data | The memory pointer to write into the file. |
byteSize | The number of bytes to write. |
Implements Murl::IFile.
Implementation of IFile::Read(Data& data).
data | The data object to read the file into. |
Implements Murl::IFile.
Implementation of IFile::Write(const ConstData& data).
data | The data object to write into the file. |
Implements Murl::IFile.
|
virtual |
Open the file.
Open with the name and access mode specified by the constructor.
|
virtual |
Close the file.
|
protected |
The file name storage.
|
protected |
The access mode storage.
|
protected |
The system file object.