31 lines
772 B
C++
31 lines
772 B
C++
![]() |
#pragma once
|
||
|
|
||
|
const constexpr unsigned int INPUT_BUFFER_SIZE = 256;
|
||
|
|
||
|
class Console
|
||
|
{
|
||
|
public:
|
||
|
///////////////////////////////////////////////////////////
|
||
|
/// \brief Calls every important process functions
|
||
|
///
|
||
|
///////////////////////////////////////////////////////////
|
||
|
static void run();
|
||
|
|
||
|
private:
|
||
|
static char* input;
|
||
|
|
||
|
///////////////////////////////////////////////////////////
|
||
|
/// \brief Waits for user input and writes it into a variable
|
||
|
///
|
||
|
///////////////////////////////////////////////////////////
|
||
|
static void awaitInput();
|
||
|
|
||
|
|
||
|
///////////////////////////////////////////////////////////
|
||
|
/// \brief Takes input and manages it
|
||
|
///
|
||
|
///////////////////////////////////////////////////////////
|
||
|
static void handleInput();
|
||
|
};
|
||
|
|