v2.0.0
Loading...
Searching...
No Matches
command_parser.cpp File Reference

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>
Include dependency graph for command_parser.cpp:

Go to the source code of this file.

Detailed Description

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

Author
Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org
Since
2.0.0
Date
March 2026

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.