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

Translation unit for COMLIB::Command: constructors, JSON/CLI serialisation, parameter access and dispatch glue. More...

#include "command.h"
#include "command_manager.h"
#include <QVector>
#include <QString>
#include <QDebug>
Include dependency graph for command.cpp:

Go to the source code of this file.

Detailed Description

Translation unit for COMLIB::Command: constructors, JSON/CLI serialisation, parameter access and dispatch glue.

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

Defines the five constructor overloads (default, JSON-object, keyword+description, fully-specified parameter list, copy), the toJsonObject / toStringList / toStringReadySend formatters used by RtCmdClient, and the ICommand execute() override that lets a CommandManager dispatch the command through the generic command-pattern infrastructure in utils/generics. The operator[] overloads expose parameter values both by name and by index against the m_qListParamNames / m_qListParamValues pair.

Definition in file command.cpp.