SimpleKernel  0.0.1
ostream.hpp File Reference

ostream hpp More...

#include "efi.h"
#include "efilib.h"
Include dependency graph for ostream.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ostream
 

Functions

auto wait_for_input (EFI_INPUT_KEY *_key) -> EFI_STATUS
 

Variables

static ostream debug
 全局输出流 More...
 

Detailed Description

ostream hpp

Author
Zone.N (Zone..nosp@m.Niuz.nosp@m.h@hot.nosp@m.mail.nosp@m..com)
Version
1.0
Date
2023-07-15
change log:
DateAuthorDescription
2023-07-15Zone.N (Zone..nosp@m.Niuz.nosp@m.h@hot.nosp@m.mail.nosp@m..com)创建文件

Definition in file ostream.hpp.

Function Documentation

◆ wait_for_input()

auto wait_for_input ( EFI_INPUT_KEY *  _key) -> EFI_STATUS

等待输入

Parameters
_key输入的按键
Returns
efi 错误码

Definition at line 19 of file ostream.cpp.

19  {
20  EFI_STATUS status = EFI_SUCCESS;
21  do {
22  status = uefi_call_wrapper(ST->ConIn->ReadKeyStroke, 2, ST->ConIn, _key);
23  } while (EFI_NOT_READY == status);
24 
25  return status;
26 }

Variable Documentation

◆ debug

ostream debug
static

全局输出流

Definition at line 194 of file ostream.hpp.