54#include <QSharedPointer>
76 typedef QSharedPointer<RtCmdClient>
SPtr;
77 typedef QSharedPointer<const RtCmdClient>
ConstSPtr;
95 inline bool hasCommand(
const QString &p_sCommand)
const;
165 Command& operator[] (
const QString &key);
175 const Command operator[] (
const QString &key)
const;
189 QString m_sAvailableData;
199 QString p_sResponse = m_sAvailableData;
200 m_sAvailableData.
clear();
210 return m_commandManager.hasCommand(p_sCommand);
realtime library export/import macros.
#define COMMUNICATIONSHARED_EXPORT
Declaration of the Command Class.
Real-time client/server communication (commands, raw data streaming).
void sendCommandJSON(const Command &p_command)
void response(QString p_sResponse)
qint32 requestConnectors(QMap< qint32, QString > &p_qMapConnectors)
bool hasCommand(const QString &p_sCommand) const
RtCmdClient(QObject *parent=nullptr)
QString readAvailableData()
QString sendCLICommand(const QString &p_sCommand)
QSharedPointer< const RtCmdClient > ConstSPtr
QSharedPointer< RtCmdClient > SPtr
bool waitForDataAvailable(qint32 msecs=30000) const
Named command with typed parameters for real-time server control.
Registry of available commands; dispatches parsed command strings to the matching Command handler.