![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cCommandLog.h>
Public Member Functions | |
cCommandLog () noexcept | |
~cCommandLog () | |
ITERATE_t | get_CmdQty () const noexcept |
cString | GetCmdAt (ITERATE_t i) const |
void | RemoveAllCmds () |
void | AddCmd (const GChar_t *pszStr) |
add to tail(size-1). More... | |
cString | ScrollCmd (VK_TYPE iVKey) |
VK_UP. More... | |
HRESULT | AddConsoleKey (VK_TYPE vKey, cStreamOutput *pOut=nullptr, bool bEcho=false) |
UNITTEST_FRIEND (cCommandLog) | |
Public Attributes | |
cString | m_sCmd |
The current working command line. AddConsoleKey. More... | |
bool | m_bCmdComplete |
ITERATE_t | m_iMaxCommandQty |
arbitrary limit to store this many. More... | |
cArrayString< GChar_t > | m_aCmdHistory |
Keeps last X command strings. allow to scroll through them using arrows.
|
noexcept |
GrayLib::cCommandLog::~cCommandLog | ( | ) |
void GrayLib::cCommandLog::AddCmd | ( | const GChar_t * | pszStr | ) |
add to tail(size-1).
Kill the duplicates. Add command to the end. Enforce Max qty.
HRESULT GrayLib::cCommandLog::AddConsoleKey | ( | VK_TYPE | vKey, |
cStreamOutput * | pOut = nullptr , |
||
bool | bEcho = false |
||
) |
build up a command string from key presses. Add a key to an existing command from the console. bEcho chars as necessary/desired. Build up an input string.
|
inlinenoexcept |
How many commands in memory queue.
|
inline |
VK_UP.
scroll m_nCurCommandIndex up/down. iVKey = VK_UP, VK_DOWN, VK_ESCAPE.
GrayLib::cCommandLog::UNITTEST_FRIEND | ( | cCommandLog | ) |
cArrayString<GChar_t> GrayLib::cCommandLog::m_aCmdHistory |
bool GrayLib::cCommandLog::m_bCmdComplete |
ITERATE_t GrayLib::cCommandLog::m_iMaxCommandQty |
arbitrary limit to store this many.
cString GrayLib::cCommandLog::m_sCmd |
The current working command line. AddConsoleKey.