diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-30 23:15:54 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-30 23:15:54 +0100 |
| commit | 7bed9287589293bd9d712d152539591dee0b28c0 (patch) | |
| tree | 63977e35e13da414db1ea67d25a75a88ff1bc306 /Private/NewBoot/BootKit | |
| parent | 71a35e96d5597fca8882e96976e9461dc3dd85e9 (diff) | |
Add BFileReader class, next step will be implementing .Size(),
.Read()
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/NewBoot/BootKit')
| -rw-r--r-- | Private/NewBoot/BootKit/BootKit.hxx | 25 | ||||
| -rw-r--r-- | Private/NewBoot/BootKit/Platform.hxx (renamed from Private/NewBoot/BootKit/Processor.hxx) | 0 | ||||
| -rw-r--r-- | Private/NewBoot/BootKit/compile_flags.txt | 2 |
3 files changed, 21 insertions, 6 deletions
diff --git a/Private/NewBoot/BootKit/BootKit.hxx b/Private/NewBoot/BootKit/BootKit.hxx index 9c0ec863..e4c14d3a 100644 --- a/Private/NewBoot/BootKit/BootKit.hxx +++ b/Private/NewBoot/BootKit/BootKit.hxx @@ -31,16 +31,15 @@ typedef wchar_t CharacterType; /** * @brief BootKit Text Writer class - * Writes to VGA. + * Writes to UEFI StdOut. */ class BTextWriter final { public: - void WriteString(const CharacterType *str); - - void WriteCharacter(CharacterType c); + BTextWriter &WriteString(const CharacterType *str); + BTextWriter &WriteCharacter(CharacterType c); public: - BTextWriter() = default; + explicit BTextWriter() = default; ~BTextWriter() = default; public: @@ -51,9 +50,23 @@ class BTextWriter final { HCore::SizeT BStrLen(const char *ptr); HCore::SizeT BSetMem(char *src, const char byte, const HCore::SizeT len); +/** + * @brief BootKit File Reader class + * Reads using the UEFI Simple File protocol. + */ +class BFileReader final { + public: + explicit BFileReader() = default; + ~BFileReader() = default; + + public: + BFileReader &operator=(const BFileReader &) = default; + BFileReader(const BFileReader &) = default; +}; + /***********************************************************************************/ /// Include other APIs. /***********************************************************************************/ -#include <BootKit/Processor.hxx> +#include <BootKit/Platform.hxx> #include <BootKit/Protocol.hxx> diff --git a/Private/NewBoot/BootKit/Processor.hxx b/Private/NewBoot/BootKit/Platform.hxx index d4143094..d4143094 100644 --- a/Private/NewBoot/BootKit/Processor.hxx +++ b/Private/NewBoot/BootKit/Platform.hxx diff --git a/Private/NewBoot/BootKit/compile_flags.txt b/Private/NewBoot/BootKit/compile_flags.txt new file mode 100644 index 00000000..45e268ea --- /dev/null +++ b/Private/NewBoot/BootKit/compile_flags.txt @@ -0,0 +1,2 @@ +-std=c++20 +-I../ |
