Handles the command auto completion.
More...
#include <tabulator.h>
Handles the command auto completion.
Definition at line 27 of file tabulator.h.
◆ ErrorCode
Error codes for this class. Error ID identify a unique error() / onError call (excluding transferring).
Definition at line 33 of file tabulator.h.
◆ Tabulator() [1/2]
semf::esh::Tabulator::Tabulator |
( |
Printer & |
printer, |
|
|
const LinkedList< Command > & |
commands, |
|
|
char |
lineBuffer[], |
|
|
size_t |
lineBufferSize, |
|
|
std::string_view |
prompt |
|
) |
| |
Constructor.
- Parameters
-
printer | Printer for printing. |
commands | List containing all commands. |
lineBuffer | buffer containing the command line. |
lineBufferSize | Size of lineBuffer . |
prompt | Prompt string. |
Definition at line 15 of file tabulator.cpp.
◆ Tabulator() [2/2]
semf::esh::Tabulator::Tabulator |
( |
const Tabulator & |
other | ) |
|
|
delete |
◆ ~Tabulator()
virtual semf::esh::Tabulator::~Tabulator |
( |
| ) |
|
|
virtualdefault |
◆ isBusy()
bool semf::esh::Tabulator::isBusy |
( |
| ) |
const |
Returns the busy-flag.
- Returns
true
of object is busy.
Definition at line 39 of file tabulator.cpp.
◆ SEMF_SIGNAL() [1/2]
semf::esh::Tabulator::SEMF_SIGNAL |
( |
done |
, |
|
|
size_t |
|
|
) |
| |
Gets emitted when the auto complete process is done.
◆ SEMF_SIGNAL() [2/2]
semf::esh::Tabulator::SEMF_SIGNAL |
( |
error |
, |
|
|
Error |
|
|
) |
| |
Gets emitted when an unexpected error occures.
◆ start()
void semf::esh::Tabulator::start |
( |
size_t |
charCount | ) |
|
Starts the auto completion.
- Parameters
-
charCount | Current length of the command line. |
- Exceptions
-
Start_IsBusy | If object is busy. |
Definition at line 24 of file tabulator.cpp.