S3FC project page | S3FC home page |
#include <s3_logger.h>
Inheritance diagram for s3_msgb_log_rx_thread:
Public Methods | |
s3_msgb_log_rx_thread (const std::string &my_box_name, std::ostream *ostream_arg=0, const std::string &po_ip="", const unsigned int po_port=0) | |
The constructor. More... | |
virtual | ~s3_msgb_log_rx_thread () |
Destructor. More... | |
void | main_loop () |
The main loop streams received messages to the applicable ostream. More... | |
Protected Attributes | |
s3_message_box | msg_box |
The S3 message box associated with this thread. More... | |
std::ostream * | ostr |
A pointer to the ostream to where received messages will be logged. More... |
When a message is streamed to s3_msgb_logger, that message is send to a message box. The thread encapsulated by this class will read the message from its inbox and log that message.
The ostream to which this class wil log can be set via the constructor. If no ostream is specified, received messages are streamed to cerr.
Definition at line 753 of file s3_logger.h.
|
The constructor. Connects the message box to the postal system. When values other than the defaults are provided for both the Post Office switch IP and Port arguments, the message box system is initialised if it is not yet initialised. When these arguments are omitted, the message box system must be initialised prior to the instantiation of this class. If the message box connection fail for whatever reason, an s3_generic_exception will be thrown.
Definition at line 785 of file s3_logger.h. References s3_message_box::connect, s3_message_box::init, s3_message_box::initialised, ostr, s3_thread_base::state_changed, and s3_message_box::subscribe_arrival. |
|
Destructor. Disconnects the message box from the postal system. Definition at line 814 of file s3_logger.h. References s3_message_box::disconnect. |
|
The main loop streams received messages to the applicable ostream.
Implements s3_thread_base. Definition at line 822 of file s3_logger.h. References s3_message::get_body, s3_message_box::get_msg, s3_message::is_empty, ostr, s3_thread_base::test_cancel, and s3_thread_base::wait_on_state_changed. |
|
The S3 message box associated with this thread.
Definition at line 760 of file s3_logger.h. |
|
A pointer to the ostream to where received messages will be logged.
Definition at line 763 of file s3_logger.h. Referenced by main_loop, and s3_msgb_log_rx_thread. |
Send comments to: s3fc@stonethree.com |
|