|
MNE-CPP
0.1.9
A Framework for Electrophysiology
|
Real-time command client. More...
#include <rtcmdclient.h>
Public Types | |
| typedef QSharedPointer< RtCmdClient > | SPtr |
| typedef QSharedPointer< const RtCmdClient > | ConstSPtr |
Signals | |
| void | response (QString p_sResponse) |
Public Member Functions | |
| RtCmdClient (QObject *parent=Q_NULLPTR) | |
| bool | hasCommand (const QString &p_sCommand) const |
| QString | sendCLICommand (const QString &p_sCommand) |
| void | sendCommandJSON (const Command &p_command) |
| QString | readAvailableData () |
| qint32 | requestBufsize () |
| void | requestCommands () |
| qint32 | requestConnectors (QMap< qint32, QString > &p_qMapConnectors) |
| bool | waitForDataAvailable (qint32 msecs=30000) const |
| Command & | operator[] (const QString &key) |
| const Command | operator[] (const QString &key) const |
Real-time command client.
The real-time command client class provides an interface to communicate with the command port 4217 of a running mne_rt_server.
Definition at line 71 of file rtcmdclient.h.

| typedef QSharedPointer<const RtCmdClient> COMMUNICATIONLIB::RtCmdClient::ConstSPtr |
Const shared pointer type for RtCmdClient.
Definition at line 77 of file rtcmdclient.h.
| typedef QSharedPointer<RtCmdClient> COMMUNICATIONLIB::RtCmdClient::SPtr |
Shared pointer type for RtCmdClient.
Definition at line 76 of file rtcmdclient.h.
|
explicit |
Creates the real-time command client.
| [in] | parent | Parent QObject (optional). |
Definition at line 64 of file rtcmdclient.cpp.
|
inline |
Checks if a command is managed;
| p_sCommand | Command to check. |
Definition at line 208 of file rtcmdclient.h.
| Command & RtCmdClient::operator[] | ( | const QString & | key | ) |
Subscript operator [] to access commands by command name
| [in] | key | the command key word. |
Definition at line 349 of file rtcmdclient.cpp.
| const Command RtCmdClient::operator[] | ( | const QString & | key | ) | const |
Subscript operator [] to access commands by command name
| key | the command key word. |
Definition at line 356 of file rtcmdclient.cpp.
|
inline |
Returns the available data.
Definition at line 196 of file rtcmdclient.h.
| qint32 RtCmdClient::requestBufsize | ( | ) |
Request buffer size from mne_rt_server
Definition at line 180 of file rtcmdclient.cpp.
| void RtCmdClient::requestCommands | ( | ) |
Request available commands from mne_rt_server
Definition at line 212 of file rtcmdclient.cpp.
| qint32 RtCmdClient::requestConnectors | ( | QMap< qint32, QString > & | p_qMapConnectors | ) |
Request available connectors from mne_rt_server
| [in] | p_qMapConnectors | list of connectors. |
Definition at line 241 of file rtcmdclient.cpp.
|
signal |
Emits the received response.
| [in] | p_sResponse | the received response. |
| QString RtCmdClient::sendCLICommand | ( | const QString & | p_sCommand | ) |
Sends a command line formatted command to a connected mne_rt_server
| [in] | p_sCommand | The command to send. |
Definition at line 73 of file rtcmdclient.cpp.
| void RtCmdClient::sendCommandJSON | ( | const Command & | p_command | ) |
Sends a command to a connected mne_rt_server
| [in] | p_command | The command to send. |
Definition at line 98 of file rtcmdclient.cpp.
| bool RtCmdClient::waitForDataAvailable | ( | qint32 | msecs = 30000 | ) | const |
Wait for ready read until data are available.
| [in] | msecs | time to wait in milliseconds, if -1 function will not time out. Default value is 30000. |
Definition at line 329 of file rtcmdclient.cpp.
1.8.17