Untyped intermediate produced by COMLIB::CommandParser before type information is bound to parameters. More...
#include "../com_global.h"#include <utils/generics/commandpattern.h>#include <QObject>#include <QList>#include <QVariant>

Go to the source code of this file.
Classes | |
| class | COMLIB::RawCommand |
| Tokenised but unresolved command: a keyword plus a list of raw string arguments awaiting type binding. More... | |
Namespaces | |
| namespace | COMLIB |
Real-time client/server communication primitives for talking to mne_rt_server. | |
Untyped intermediate produced by COMLIB::CommandParser before type information is bound to parameters.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
COMLIB::RawCommand is the first object the parser builds when a command arrives on RtCmdClient. At that point the wire payload has been tokenised into a command keyword and a list of string arguments, but the parser does not yet know which Command descriptor (if any) those arguments belong to — the parameter types, names and descriptions live in whichever CommandManager ends up accepting the request. Keeping that pre-resolution state in its own class avoids forcing every observer to deal with half-populated Command objects.
The class also implements UTILSLIB::ICommand so it can be notified through the same dispatch path as a fully-typed Command; the executed(QList<QString>) signal hands the raw parameter list to whichever CommandManager recognises the keyword, which is responsible for converting the strings into the appropriate QVariant values and re-emitting them as a typed Command.
isJson() records whether the original payload was JSON or CLI, so the reply produced by the eventual handler can be sent back in the same dialect the caller used.
Definition in file raw_command.h.