S3FC project page | S3FC home page |
#include <s3_logger.h>
Inheritance diagram for s3_msgb_log_buffer:
Public Methods | |
s3_msgb_log_buffer (const std::string &my_box_name, const std::string &dst_box_name, const std::string po_ip="", const unsigned int po_port=0) | |
Constructor. More... | |
virtual | ~s3_msgb_log_buffer () |
The destructor disconnects the message box from the Postal System. More... | |
Private Methods | |
virtual void | write_to_device () |
Necessary overload for s3_generic_streambuf::write_to_device(). More... | |
Private Attributes | |
s3_message_box | msg_box |
The S3 message box associated with this thread. More... | |
const std::string | dest_box_name |
The name of the destination message box. More... |
Do not use this class direcly, rather use s3_msgb_logger.
Definition at line 296 of file s3_logger.h.
|
Constructor. 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 334 of file s3_logger.h. References s3_message_box::connect, dest_box_name, s3_message_box::init, s3_message_box::initialised, s3_message_box::set_name, and s3_conversion::to_string. |
|
The destructor disconnects the message box from the Postal System.
Definition at line 375 of file s3_logger.h. References s3_message_box::disconnect, and s3_generic_streambuf::sync. |
|
Necessary overload for s3_generic_streambuf::write_to_device().
Implements s3_generic_streambuf. Definition at line 301 of file s3_logger.h. References dest_box_name, msg_box, and s3_message_box::send_msg. |
|
The name of the destination message box.
Definition at line 312 of file s3_logger.h. Referenced by s3_msgb_log_buffer, and write_to_device. |
|
The S3 message box associated with this thread.
Definition at line 309 of file s3_logger.h. Referenced by write_to_device. |
Send comments to: s3fc@stonethree.com |
|