|
ifw
0.0.1-dev
|
IFW CTD Multiprocessing Toolkit Message Bus. More...
#include <MessageBus.hpp>
Public Member Functions | |
| MessageBus () | |
| ~MessageBus () | |
| MessageBus & | RegisterThread (const std::string &thread_id) |
| Register thread which will send/receive messages on the Message Bus. More... | |
| void | SendMessage (const Message &message) |
| Send a message on the Message Bus. More... | |
| bool | ReceiveMessage (const std::string &receiver_thread_id, const double time_out, bool &timed_out, Message &message) |
| Check for a message for this thread. Returns true if message available. More... | |
| void | SendResponse (Response &response) |
| Send a response to a message received on the Message Bus. More... | |
| bool | ReceiveResponse (const std::string &receiver_thread_id, const double time_out, bool &timed_out, Response &response) |
| Check for a message for this thread. Returns true if message available. More... | |
| std::string | Print () const |
| Generate ASCII output providing a status of the object (to the extend possible). More... | |
| MessageBus () | |
| ~MessageBus () | |
| MessageBus & | RegisterThread (const std::string &thread_id) |
| Register thread which will send/receive messages on the Message Bus. More... | |
| void | SendMessage (const Message &message) |
| Send a message on the Message Bus. More... | |
| bool | ReceiveMessage (const std::string &receiver_thread_id, const double time_out, bool &timed_out, Message &message) |
| Check for a message for this thread. Returns true if message available. More... | |
| void | SendResponse (Response &response) |
| Send a response to a message received on the Message Bus. More... | |
| bool | ReceiveResponse (const std::string &receiver_thread_id, const double time_out, bool &timed_out, Response &response) |
| Check for a message for this thread. Returns true if message available. More... | |
| std::string | Print () const |
| Generate ASCII output providing a status of the object (to the extend possible). More... | |
| MessageBus () | |
| ~MessageBus () | |
| MessageBus & | RegisterThread (const std::string &thread_id) |
| Register thread which will send/receive messages on the Message Bus. More... | |
| void | SendMessage (const Message &message) |
| Send a message on the Message Bus. More... | |
| bool | ReceiveMessage (const std::string &receiver_thread_id, const double time_out, bool &timed_out, Message &message) |
| Check for a message for this thread. Returns true if message available. More... | |
| void | SendResponse (Response &response) |
| Send a response to a message received on the Message Bus. More... | |
| bool | ReceiveResponse (const std::string &receiver_thread_id, const double time_out, bool &timed_out, Response &response) |
| Check for a message for this thread. Returns true if message available. More... | |
| std::string | Print () const |
| Generate ASCII output providing a status of the object (to the extend possible). More... | |
IFW CTD Multiprocessing Toolkit Message Bus.
| ctd::mptk::MessageBus::MessageBus | ( | ) |
| ctd::mptk::MessageBus::~MessageBus | ( | ) |
| ctd::mptk::MessageBus::MessageBus | ( | ) |
| ctd::mptk::MessageBus::~MessageBus | ( | ) |
| ctd::mptk::MessageBus::MessageBus | ( | ) |
| ctd::mptk::MessageBus::~MessageBus | ( | ) |
| std::string ctd::mptk::MessageBus::Print | ( | ) | const |
Generate ASCII output providing a status of the object (to the extend possible).
| std::string ctd::mptk::MessageBus::Print | ( | ) | const |
Generate ASCII output providing a status of the object (to the extend possible).
| std::string ctd::mptk::MessageBus::Print | ( | ) | const |
Generate ASCII output providing a status of the object (to the extend possible).
| bool ctd::mptk::MessageBus::ReceiveMessage | ( | const std::string & | receiver_thread_id, |
| const double | time_out, | ||
| bool & | timed_out, | ||
| Message & | message | ||
| ) |
Check for a message for this thread. Returns true if message available.
| thread_id | Thread ID of receiver (thread checking for messages). |
| time_out | Timeout to apply (NO_TIMEOUT, 0: return immediately, >0: Timeout in seconds). |
| timed_out | True if waiting for a message timed out. |
| message | Message received (if any). |
| bool ctd::mptk::MessageBus::ReceiveMessage | ( | const std::string & | receiver_thread_id, |
| const double | time_out, | ||
| bool & | timed_out, | ||
| Message & | message | ||
| ) |
Check for a message for this thread. Returns true if message available.
| thread_id | Thread ID of receiver (thread checking for messages). |
| time_out | Timeout to apply (NO_TIMEOUT, 0: return immediately, >0: Timeout in seconds). |
| timed_out | True if waiting for a message timed out. |
| message | Message received (if any). |
| bool ctd::mptk::MessageBus::ReceiveMessage | ( | const std::string & | receiver_thread_id, |
| const double | time_out, | ||
| bool & | timed_out, | ||
| Message & | message | ||
| ) |
Check for a message for this thread. Returns true if message available.
| thread_id | Thread ID of receiver (thread checking for messages). |
| time_out | Timeout to apply (NO_TIMEOUT, 0: return immediately, >0: Timeout in seconds). |
| timed_out | True if waiting for a message timed out. |
| message | Message received (if any). |
| bool ctd::mptk::MessageBus::ReceiveResponse | ( | const std::string & | receiver_thread_id, |
| const double | time_out, | ||
| bool & | timed_out, | ||
| Response & | response | ||
| ) |
Check for a message for this thread. Returns true if message available.
| bool ctd::mptk::MessageBus::ReceiveResponse | ( | const std::string & | receiver_thread_id, |
| const double | time_out, | ||
| bool & | timed_out, | ||
| Response & | response | ||
| ) |
| bool ctd::mptk::MessageBus::ReceiveResponse | ( | const std::string & | receiver_thread_id, |
| const double | time_out, | ||
| bool & | timed_out, | ||
| Response & | response | ||
| ) |
Check for a message for this thread. Returns true if message available.
| MessageBus & ctd::mptk::MessageBus::RegisterThread | ( | const std::string & | thread_id | ) |
Register thread which will send/receive messages on the Message Bus.
| MessageBus& ctd::mptk::MessageBus::RegisterThread | ( | const std::string & | thread_id | ) |
Register thread which will send/receive messages on the Message Bus.
| MessageBus& ctd::mptk::MessageBus::RegisterThread | ( | const std::string & | thread_id | ) |
Register thread which will send/receive messages on the Message Bus.
Send a message on the Message Bus.
Send a message on the Message Bus.
Send a message on the Message Bus.
| void ctd::mptk::MessageBus::SendResponse | ( | Response & | response | ) |
Send a response to a message received on the Message Bus.
| void ctd::mptk::MessageBus::SendResponse | ( | Response & | response | ) |
Send a response to a message received on the Message Bus.
| void ctd::mptk::MessageBus::SendResponse | ( | Response & | response | ) |
Send a response to a message received on the Message Bus.
1.8.5