DDS
ver. 3.6
|
DDS intercom API. More...
Classes | |
class | CCustomCmd |
class | CIntercomService |
class | CKeyValue |
class | CRMSPluginProtocol |
Class implements basic API for DDS RMS plug-ins. More... | |
struct | SInit |
Structure holds information of init notification. More... | |
struct | SMessage |
Structure holds information of message notification. More... | |
struct | SSubmit |
Structure holds information of submit notification. More... | |
Typedefs | |
typedef boost::signals2::signal< void(EErrorCode, const std::string &)> | errorSignal_t |
Enumerations | |
enum | EMsgSeverity { EMsgSeverity::info, EMsgSeverity::error } |
Enumeration with message severity. More... | |
enum | EErrorCode { ConnectionFailed, RemoteEndDisconnected, TransportServiceFailed, UpdateKeyValueFailed, SendKeyValueFailed, SendCustomCmdFailed, KeyValueVersionMismatch, KeyValueNotFound, UserCodeException } |
Error codes for intercom API. More... | |
Functions | |
std::ostream & | operator<< (std::ostream &_os, EMsgSeverity _severity) |
Support ostreaming EMsgSeverity. More... | |
Variables | |
const std::string | g_sRmsAgentSign = "rms_agent_sign" |
Sign that is send to commander if RMS plug-in is connecting to it. More... | |
const std::string | g_sToolsAPISign = "tools_api_sign" |
Sign that is send to commander if Tools-API is connecting to it. More... | |
DDS intercom API.
\detail Internally CKeyValue and CCustomCmd use shared memory transport to talk to DDS agent. CCustomCmd can also connect to DDS commander. In case of a problem it tries to reconnect for 2 minutes and if not connected send an error with EErrorCode::ConnectionFailed error code. If none of the DDS services are running a different error is sent - EErrorCode::TransportServiceFailed. In the error message a detailed information is provided about what caused the error. In order to get an error messages from DDS one should subscribe using CIntercomService::subscribeOnError(errorSignal_t::slot_function_type _subscriber) function.
typedef boost::signals2::signal<void(EErrorCode, const std::string&)> dds::intercom_api::errorSignal_t |
Error codes for intercom API.
|
strong |
|
inline |
Support ostreaming EMsgSeverity.
const std::string dds::intercom_api::g_sRmsAgentSign = "rms_agent_sign" |
Sign that is send to commander if RMS plug-in is connecting to it.
const std::string dds::intercom_api::g_sToolsAPISign = "tools_api_sign" |
Sign that is send to commander if Tools-API is connecting to it.