#include <commandparser.h>
Definition at line 65 of file commandparser.h.
◆ CommandParser()
| CommandParser::CommandParser |
( |
QObject * | parent = 0 | ) |
|
|
explicit |
Default constructor
- Parameters
-
| [in] | parent | Parent QObject (optional). |
Definition at line 63 of file commandparser.cpp.
◆ exists()
| bool CommandParser::exists |
( |
const QString & | p_sCommand | ) |
|
Checks if a command exists
- Parameters
-
- Returns
- true if command exists, false otherwise.
Definition at line 70 of file commandparser.cpp.
◆ getRawCommand()
| RawCommand & COMMUNICATIONLIB::CommandParser::getRawCommand |
( |
| ) |
|
|
inline |
◆ parse()
| bool CommandParser::parse |
( |
const QString & | p_sInput, |
|
|
QStringList & | p_qListCommandsParsed ) |
Parses a CLI command or JSON command (list) and notifies all attached observers (command managers)
- Parameters
-
| [in] | p_sInput | Input to parse. |
| [out] | p_qListCommandsParsed | List of parsed commands. |
Definition at line 84 of file commandparser.cpp.
◆ response
| void COMMUNICATIONLIB::CommandParser::response |
( |
QString | p_sResponse, |
|
|
Command | p_command ) |
|
signal |
Response channel which is used by attached observers (command managers) to send data back to subject
- Parameters
-
| [in] | p_sResponse | Observer response/data. |
| [in] | p_command | Command which send the response |
The documentation for this class was generated from the following files: