EHS
|
#include <File_UNX.h>
Public Member Functions | |
~File () override | |
File () | |
File (const Str_8 &filePath, const Mode mode, const Disposition disposition) | |
File (File &&file) noexcept | |
File (const File &file) | |
File & | operator= (File &&file) noexcept |
File & | operator= (const File &file) |
operator const Byte * () const override | |
operator Byte * () override | |
void | Release () override |
bool | IsMapped () const override |
UInt_64 | MapSize () const override |
void | Map (const UInt_64 offset, const UInt_64 size) override |
void | Unmap () override |
void | FlushMap () override |
UInt_64 | Write (const Byte *const data, const UInt_64 size) override |
UInt_64 | Read (Byte *const buffer, const UInt_64 size) override |
void | Seek (UInt_64 index) override |
void | SeekBeginning () override |
void | SeekEnd () override |
void | Truncate (const UInt_64 size) override |
UInt_64 | Size () const override |
bool | IsValid () const override |
~File () override | |
File () | |
File (const Str_8 &filePath, const Mode mode, const Disposition disposition) | |
File (File &&file) noexcept | |
File (const File &file) | |
File & | operator= (File &&file) noexcept |
File & | operator= (const File &file) |
operator const Byte * () const override | |
operator Byte * () override | |
void | Release () override |
bool | IsMapped () const override |
UInt_64 | MapSize () const override |
void | Map (const UInt_64 offset, const UInt_64 size) override |
void | Unmap () override |
void | FlushMap () override |
UInt_64 | Write (const Byte *const data, const UInt_64 size) override |
UInt_64 | Read (Byte *const buffer, const UInt_64 size) override |
void | Seek (UInt_64 index) override |
void | SeekBeginning () override |
void | SeekEnd () override |
void | Truncate (const UInt_64 size) override |
UInt_64 | Size () const override |
bool | IsValid () const override |
![]() | |
virtual | ~BaseFile ()=default |
Frees all native handles. | |
BaseFile () | |
Default members initialization. | |
BaseFile (const Str_8 &filePath, const Mode mode, const Disposition disposition) | |
BaseFile (BaseFile &&file) noexcept | |
BaseFile (const BaseFile &file)=default | |
BaseFile & | operator= (BaseFile &&file) noexcept |
BaseFile & | operator= (const BaseFile &file)=default |
void | WriteStr_32 (const Char_32 *const str, const UInt_64 size) |
void | WriteStr_32 (const Str_32 &str) |
void | WriteStr_16 (const Char_16 *const str, const UInt_64 size) |
void | WriteStr_16 (const Str_16 &str) |
void | WriteStr_8 (const Char_8 *const str, const UInt_64 size) |
void | WriteStr_8 (const Str_8 &str) |
void | WriteVector (const Vector< Byte, UInt_64 > &vec) |
void | WriteArray (const Array< Byte, UInt_64 > &arr) |
void | WriteSerializer_64 (const Serializer< UInt_64 > &ser) |
void | WriteSerializer_32 (const Serializer< UInt_32 > &ser) |
void | ReadStr_32 (Char_32 *const buffer, UInt_64 &size) |
Str_32 | ReadStr_32 (const UInt_64 size) |
void | ReadStr_16 (Char_16 *const buffer, UInt_64 &size) |
Str_16 | ReadStr_16 (const UInt_64 size) |
void | ReadStr_8 (Char_8 *const buffer, UInt_64 &size) |
Str_8 | ReadStr_8 (const UInt_64 size) |
Vector< Byte, UInt_64 > | ReadVector (const UInt_64 size) |
Array< Byte, UInt_64 > | ReadArray (const UInt_64 size) |
Serializer< UInt_64 > | ReadSerializer_64 (const Endianness end, const UInt_64 size) |
Serializer< UInt_32 > | ReadSerializer_32 (const Endianness end, const UInt_32 size) |
Str_8 | GetPath () const |
Str_8 | GetFullName () const |
Str_8 | GetName () const |
Str_8 | GetExtension () const |
Static Public Member Functions | |
static void | Rename_32 (const Str_32 &filePath, const Str_32 &newName) |
static void | Rename_16 (const Str_16 &filePath, const Str_16 &newName) |
static void | Rename_8 (const Str_8 &filePath, const Str_8 &newName) |
static void | Rename_32 (const Str_32 &filePath, const Str_32 &newName) |
static void | Rename_16 (const Str_16 &filePath, const Str_16 &newName) |
static void | Rename_8 (const Str_8 &filePath, const Str_8 &newName) |
![]() | |
static void | Rename_32 (const Str_32 &filePath, const Str_32 &newName) |
static void | Rename_16 (const Str_16 &filePath, const Str_16 &newName) |
static void | Rename_8 (const Str_8 &filePath, const Str_8 &newName) |
static Str_32 | ParseFullName_32 (const Str_32 &filePath) |
static Str_16 | ParseFullName_16 (const Str_16 &filePath) |
static Str_8 | ParseFullName_8 (const Str_8 &filePath) |
static Str_32 | ParseName_32 (const Str_32 &filePath) |
static Str_16 | ParseName_16 (const Str_16 &filePath) |
static Str_8 | ParseName_8 (const Str_8 &filePath) |
static Str_32 | ParseExt_32 (const Str_32 &filePath) |
static Str_16 | ParseExt_16 (const Str_16 &filePath) |
static Str_8 | ParseExt_8 (const Str_8 &filePath) |
Additional Inherited Members | |
![]() | |
Str_8 | path |
Str_8 | fullName |
Str_8 | name |
Str_8 | extension |
Mode | mode |
Disposition | disposition |
|
override |
ehs::File::File | ( | ) |
ehs::File::File | ( | const Str_8 & | filePath, |
const Mode | mode, | ||
const Disposition | disposition ) |
|
noexcept |
ehs::File::File | ( | const File & | file | ) |
|
override |
ehs::File::File | ( | ) |
ehs::File::File | ( | const Str_8 & | filePath, |
const Mode | mode, | ||
const Disposition | disposition ) |
|
noexcept |
ehs::File::File | ( | const File & | file | ) |
|
overridevirtual |
Implements ehs::BaseFile.
|
overridevirtual |
Implements ehs::BaseFile.
|
overridevirtual |
Implements ehs::BaseFile.
|
overridevirtual |
Implements ehs::BaseFile.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Implements ehs::BaseFile.
|
overridevirtual |
Implements ehs::BaseFile.
|
overridevirtual |
Implements ehs::BaseFile.
|
overridevirtual |
Implements ehs::BaseFile.
|
overridevirtual |
Implements ehs::BaseFile.
|
overridevirtual |
Implements ehs::BaseFile.
|
overridevirtual |
Implements ehs::BaseFile.
|
overridevirtual |
Implements ehs::BaseFile.
|
overridevirtual |
Reads data from the file as a C-style byte array.
[out] | buffer | The buffer to store the data read from the file. |
[in] | size | The size of the given buffer and how much data to read. |
Implements ehs::BaseFile.
|
overridevirtual |
Reads data from the file as a C-style byte array.
[out] | buffer | The buffer to store the data read from the file. |
[in] | size | The size of the given buffer and how much data to read. |
Implements ehs::BaseFile.
|
overridevirtual |
Uninitializes the native handle.
[in] | raiseLog | Whether or not to raise a log if already uninitialized. Mostly for deconstructor. |
Implements ehs::BaseFile.
|
overridevirtual |
Uninitializes the native handle.
[in] | raiseLog | Whether or not to raise a log if already uninitialized. Mostly for deconstructor. |
Implements ehs::BaseFile.
|
overridevirtual |
Implements ehs::BaseFile.
|
overridevirtual |
Implements ehs::BaseFile.
|
overridevirtual |
Implements ehs::BaseFile.
|
overridevirtual |
Implements ehs::BaseFile.
|
overridevirtual |
Implements ehs::BaseFile.
|
overridevirtual |
Implements ehs::BaseFile.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Implements ehs::BaseFile.
|
overridevirtual |
Implements ehs::BaseFile.
|
overridevirtual |
Implements ehs::BaseFile.
|
overridevirtual |
Implements ehs::BaseFile.
|
overridevirtual |
Writes a C-style byte array to the file.
[in] | data | The C-style byte array to write to the file. |
[in] | size | The size of the given C-style byte array. |
Implements ehs::BaseFile.
|
overridevirtual |
Writes a C-style byte array to the file.
[in] | data | The C-style byte array to write to the file. |
[in] | size | The size of the given C-style byte array. |
Implements ehs::BaseFile.