MCPcopy Create free account
hub / github.com/daniele77/cli / CommandProcessor

Method CommandProcessor

include/cli/detail/commandprocessor.h:65–71  ·  view source on GitHub ↗

* @brief Construct a new CommandProcessor object. * * @param _session The CLI session to be managed. * @param _kb The input device to be used. */

Source from the content-addressed store, hash-verified

63 * @param _kb The input device to be used.
64 */
65 CommandProcessor(CliSession& _session, InputDevice& _kb) :
66 session(_session),
67 terminal(session.OutStream()),
68 kb(_kb)
69 {
70 kb.Register( [this](auto key){ this->Keypressed(key); } );
71 }
72
73private:
74

Callers

nothing calls this directly

Calls 3

KeypressedMethod · 0.95
OutStreamMethod · 0.80
RegisterMethod · 0.45

Tested by

no test coverage detected