Enderal SE https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
481 B
27 lines
481 B
3 years ago
|
#pragma once
|
||
|
|
||
|
#include "common/ITypes.h"
|
||
|
#include "common/ISingleton.h"
|
||
|
#include <Windows.h>
|
||
|
|
||
|
/**
|
||
|
* Wrapper class for a standard Windows console
|
||
|
*
|
||
|
* @todo make nonblocking
|
||
|
*/
|
||
|
class IConsole : public ISingleton<IConsole>
|
||
|
{
|
||
|
public:
|
||
|
IConsole();
|
||
|
~IConsole();
|
||
|
|
||
|
void Write(char * buf);
|
||
|
void Write(char * buf, UInt32 bufLen, const char * fmt, ...);
|
||
|
|
||
|
char ReadChar(void);
|
||
|
UInt32 ReadBuf(char * buf, UInt32 len);
|
||
|
|
||
|
private:
|
||
|
HANDLE inputHandle, outputHandle;
|
||
|
};
|