Components/CommandProcessing/src/CommandProcessing/Handler.h
const String & getCommandWelcomeMessage() const
Get the welcome message.
Definition: Components/CommandProcessing/src/CommandProcessing/Handler.h:190
size_t process(char charToWrite)
Command delegate class.
Definition: Components/CommandProcessing/src/CommandProcessing/Command.h:19
Verbose mode.
Definition: Components/CommandProcessing/src/CommandProcessing/Handler.h:31
String processNow(const char *buffer, size_t size)
const String & getCommandPrompt() const
Get the command line prompt.
Definition: Components/CommandProcessing/src/CommandProcessing/Handler.h:153
Handler(ReadWriteStream *stream, bool owned=true)
Definition: Components/CommandProcessing/src/CommandProcessing/Handler.h:39
Definition: Components/CommandProcessing/src/CommandProcessing/Command.h:16
constexpr size_t MAX_COMMANDSIZE
Definition: Components/CommandProcessing/src/CommandProcessing/Handler.h:25
bool registerCommand(Command reqDelegate)
Add a new command to the command handler.
CommandLine commandLine
bool unregisterCommand(Command reqDelegate)
Remove a command from the command handler.
void setVerbose(bool mode)
Set the verbose mode.
Definition: Components/CommandProcessing/src/CommandProcessing/Handler.h:143
void setCommandEOL(char reqEOL)
Set the end of line character.
Definition: Components/CommandProcessing/src/CommandProcessing/Handler.h:181
void registerSystemCommands()
Register default system commands.
void setCommandPrompt(const String &reqPrompt)
Set the command line prompt.
Definition: Components/CommandProcessing/src/CommandProcessing/Handler.h:163
size_t process(const char *buffer, size_t size)
Write chars to stream.
Definition: Components/CommandProcessing/src/CommandProcessing/Handler.h:86
char getCommandEOL() const
Get the end of line character.
Definition: Components/CommandProcessing/src/CommandProcessing/Handler.h:172
void setCommandWelcomeMessage(const String &reqWelcomeMessage)
Set the welcome message.
Definition: Components/CommandProcessing/src/CommandProcessing/Handler.h:199
Command getCommandDelegate(const String &commandString)
Get the command delegate for a command.
void setOutputStream(ReadWriteStream *stream, bool owned=true)
sets the output stream
Definition: Components/CommandProcessing/src/CommandProcessing/Handler.h:59
ReadWriteStream & getOutputStream()
Definition: Components/CommandProcessing/src/CommandProcessing/Handler.h:69
bool isVerbose() const
Get the verbose mode.
Definition: Components/CommandProcessing/src/CommandProcessing/Handler.h:135
~Handler()
Definition: Components/CommandProcessing/src/CommandProcessing/Handler.h:45