|
ldas-tools-al 2.6.7
|
Class to handle streaming of messages. More...
#include <Log.hh>

Public Types | |
| typedef boost::shared_ptr< StreamCBInterface > | callback_type |
| typedef boost::shared_ptr< StreamCBInterface > | callback_type |
Public Member Functions | |
| StreamInterface () | |
| Constructor. | |
| virtual | ~StreamInterface () |
| Destructor. | |
| void | Callback (callback_type Callback) |
| Establish callback. | |
| virtual void | Close ()=0 |
| How to close the stream. | |
| virtual bool | IsOpen () const =0 |
| Resturn the open state of the stream. | |
| virtual void | Open ()=0 |
| How to open the stream. | |
| virtual void | WriteMessage (const std::string &Message)=0 |
| How to open the stream. | |
| template<typename T> | |
| std::ostream & | operator<< (T a) |
| Output to the stream. | |
| StreamInterface () | |
| Constructor. | |
| virtual | ~StreamInterface () |
| Destructor. | |
| void | Callback (callback_type Callback) |
| Establish callback. | |
| virtual void | Close ()=0 |
| How to close the stream. | |
| virtual bool | IsOpen () const =0 |
| Resturn the open state of the stream. | |
| virtual void | Open ()=0 |
| How to open the stream. | |
| virtual void | WriteMessage (const std::string &Message)=0 |
| How to open the stream. | |
| template<typename T> | |
| std::ostream & | operator<< (T a) |
| Output to the stream. | |
Protected Member Functions | |
| void | onClose () |
| Destructor. | |
| void | onOpen () |
| Destructor. | |
| virtual std::ostream & | stream ()=0 |
| Gain access to the stream. | |
| void | onClose () |
| void | onOpen () |
| virtual std::ostream & | stream ()=0 |
| Gain access to the stream. | |
Private Attributes | |
| callback_type | callback |
| Callback storage. | |
Class to handle streaming of messages.
This is an pure abstract class which describes the interface that needs to be created by derived classes.
| typedef boost::shared_ptr< StreamCBInterface > LDASTools::AL::Log::StreamInterface::callback_type |
| typedef boost::shared_ptr< StreamCBInterface > LDASTools::AL::Log::StreamInterface::callback_type |
| LDASTools::AL::Log::StreamInterface::StreamInterface | ( | ) |
Constructor.
|
virtual |
Destructor.
| LDASTools::AL::Log::StreamInterface::StreamInterface | ( | ) |
Constructor.
|
virtual |
Destructor.
|
inline |
Establish callback.
| void LDASTools::AL::Log::StreamInterface::Callback | ( | callback_type | Callback | ) |
Establish callback.
|
pure virtual |
How to close the stream.
Implemented in anonymous_namespace{Log.cc}::Log::StreamFile, anonymous_namespace{Log.cc}::Log::StreamFile, anonymous_namespace{Log.cc}::Log::StreamStdErr, anonymous_namespace{Log.cc}::Log::StreamStdErr, LDASTools::AL::Log::StreamFile, LDASTools::AL::Log::StreamFile, LDASTools::AL::Log::StreamStdErr, and LDASTools::AL::Log::StreamStdErr.
|
pure virtual |
How to close the stream.
Implemented in anonymous_namespace{Log.cc}::Log::StreamFile, anonymous_namespace{Log.cc}::Log::StreamFile, anonymous_namespace{Log.cc}::Log::StreamStdErr, anonymous_namespace{Log.cc}::Log::StreamStdErr, LDASTools::AL::Log::StreamFile, LDASTools::AL::Log::StreamFile, LDASTools::AL::Log::StreamStdErr, and LDASTools::AL::Log::StreamStdErr.
|
pure virtual |
Resturn the open state of the stream.
Implemented in anonymous_namespace{Log.cc}::Log::StreamFile, anonymous_namespace{Log.cc}::Log::StreamFile, anonymous_namespace{Log.cc}::Log::StreamStdErr, anonymous_namespace{Log.cc}::Log::StreamStdErr, LDASTools::AL::Log::StreamFile, LDASTools::AL::Log::StreamFile, LDASTools::AL::Log::StreamStdErr, and LDASTools::AL::Log::StreamStdErr.
|
pure virtual |
Resturn the open state of the stream.
Implemented in anonymous_namespace{Log.cc}::Log::StreamFile, anonymous_namespace{Log.cc}::Log::StreamFile, anonymous_namespace{Log.cc}::Log::StreamStdErr, anonymous_namespace{Log.cc}::Log::StreamStdErr, LDASTools::AL::Log::StreamFile, LDASTools::AL::Log::StreamFile, LDASTools::AL::Log::StreamStdErr, and LDASTools::AL::Log::StreamStdErr.
|
protected |
Destructor.
|
protected |
|
protected |
Destructor.
|
protected |
|
pure virtual |
How to open the stream.
Implemented in anonymous_namespace{Log.cc}::Log::StreamFile, anonymous_namespace{Log.cc}::Log::StreamFile, anonymous_namespace{Log.cc}::Log::StreamStdErr, anonymous_namespace{Log.cc}::Log::StreamStdErr, LDASTools::AL::Log::StreamFile, LDASTools::AL::Log::StreamFile, LDASTools::AL::Log::StreamStdErr, and LDASTools::AL::Log::StreamStdErr.
|
pure virtual |
How to open the stream.
Implemented in anonymous_namespace{Log.cc}::Log::StreamFile, anonymous_namespace{Log.cc}::Log::StreamFile, anonymous_namespace{Log.cc}::Log::StreamStdErr, anonymous_namespace{Log.cc}::Log::StreamStdErr, LDASTools::AL::Log::StreamFile, LDASTools::AL::Log::StreamFile, LDASTools::AL::Log::StreamStdErr, and LDASTools::AL::Log::StreamStdErr.
|
inline |
Output to the stream.
|
inline |
Output to the stream.
|
protectedpure virtual |
Gain access to the stream.
Implemented in anonymous_namespace{Log.cc}::Log::StreamFile, anonymous_namespace{Log.cc}::Log::StreamFile, anonymous_namespace{Log.cc}::Log::StreamStdErr, anonymous_namespace{Log.cc}::Log::StreamStdErr, LDASTools::AL::Log::StreamFile, LDASTools::AL::Log::StreamFile, LDASTools::AL::Log::StreamStdErr, and LDASTools::AL::Log::StreamStdErr.
|
protectedpure virtual |
Gain access to the stream.
Implemented in anonymous_namespace{Log.cc}::Log::StreamFile, anonymous_namespace{Log.cc}::Log::StreamFile, anonymous_namespace{Log.cc}::Log::StreamStdErr, anonymous_namespace{Log.cc}::Log::StreamStdErr, LDASTools::AL::Log::StreamFile, LDASTools::AL::Log::StreamFile, LDASTools::AL::Log::StreamStdErr, and LDASTools::AL::Log::StreamStdErr.
|
pure virtual |
How to open the stream.
| [in] | Message | The message to send to the output stream. |
Implemented in anonymous_namespace{Log.cc}::Log::StreamFile, anonymous_namespace{Log.cc}::Log::StreamFile, anonymous_namespace{Log.cc}::Log::StreamStdErr, anonymous_namespace{Log.cc}::Log::StreamStdErr, LDASTools::AL::Log::StreamFile, LDASTools::AL::Log::StreamFile, LDASTools::AL::Log::StreamStdErr, and LDASTools::AL::Log::StreamStdErr.
|
pure virtual |
How to open the stream.
| [in] | Message | The message to send to the output stream. |
Implemented in anonymous_namespace{Log.cc}::Log::StreamFile, anonymous_namespace{Log.cc}::Log::StreamFile, anonymous_namespace{Log.cc}::Log::StreamStdErr, anonymous_namespace{Log.cc}::Log::StreamStdErr, LDASTools::AL::Log::StreamFile, LDASTools::AL::Log::StreamFile, LDASTools::AL::Log::StreamStdErr, and LDASTools::AL::Log::StreamStdErr.
|
private |
Callback storage.
If this is set, then this instance is called to handle additional actions that should happen when the stream is opened or closed.