OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::Win::Console::Input Class Reference

#include <console.hpp>

Public Member Functions

 Input (bool password)
 
 ~Input ()
 
bool available ()
 
std::string get_password (const std::string &prompt)
 
unsigned int get ()
 

Private Member Functions

 Input (const Input &)=delete
 
Inputoperator= (const Input &)=delete
 
unsigned int keyboard_ir_to_key (INPUT_RECORD *ir)
 

Private Attributes

HANDLE std_input
 
DWORD console_mode_save
 

Detailed Description

Definition at line 23 of file console.hpp.

Constructor & Destructor Documentation

◆ Input() [1/2]

openvpn::Win::Console::Input::Input ( const Input )
privatedelete

◆ Input() [2/2]

openvpn::Win::Console::Input::Input ( bool  password)
inline

Definition at line 29 of file console.hpp.

◆ ~Input()

openvpn::Win::Console::Input::~Input ( )
inline

Definition at line 59 of file console.hpp.

Member Function Documentation

◆ available()

bool openvpn::Win::Console::Input::available ( )
inline

Definition at line 65 of file console.hpp.

Here is the caller graph for this function:

◆ get()

unsigned int openvpn::Win::Console::Input::get ( )
inline

Definition at line 86 of file console.hpp.

◆ get_password()

std::string openvpn::Win::Console::Input::get_password ( const std::string &  prompt)
inline

Definition at line 76 of file console.hpp.

Here is the caller graph for this function:

◆ keyboard_ir_to_key()

unsigned int openvpn::Win::Console::Input::keyboard_ir_to_key ( INPUT_RECORD *  ir)
inlineprivate

Definition at line 106 of file console.hpp.

Here is the caller graph for this function:

◆ operator=()

Input & openvpn::Win::Console::Input::operator= ( const Input )
privatedelete

Member Data Documentation

◆ console_mode_save

DWORD openvpn::Win::Console::Input::console_mode_save
private

Definition at line 120 of file console.hpp.

◆ std_input

HANDLE openvpn::Win::Console::Input::std_input
private

Definition at line 119 of file console.hpp.


The documentation for this class was generated from the following file: