Translation unit for COMLIB::CommandParser: JSON/CLI tokenisation and fan-out to attached managers. More...
#include "command_parser.h"#include "command_manager.h"#include <QDebug>#include <QStringList>#include <QJsonObject>#include <QJsonDocument>
Go to the source code of this file.
Translation unit for COMLIB::CommandParser: JSON/CLI tokenisation and fan-out to attached managers.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
Implements the dual-dialect parse() entry point. CLI input is split on whitespace into a keyword and string arguments; JSON input is decoded with QJsonDocument and may contain either a single command object or an array of them, supporting batched requests in a single payload. In either case the result is a populated RawCommand handed to every attached CommandManager via the Subject::notify mechanism inherited from utils/generics; the response signal carries replies produced by handlers back to the originating RtCmdClient.
Definition in file command_parser.cpp.