Class to handle streaming of messages.
More...
#include <Log.hh>
Inherited by LDASTools::AL::Log::StreamFile, and LDASTools::AL::Log::StreamStdErr.
|
| 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.
|
|
|
void | onClose () |
| Destructor.
|
|
void | onOpen () |
| Destructor.
|
|
virtual std::ostream & | stream ()=0 |
| Gain access to the stream.
|
|
virtual std::ostream & | stream ()=0 |
| Gain access to the stream.
|
|
Class to handle streaming of messages.
This is an pure abstract class which describes the interface that needs to be created by derived classes.
◆ IsOpen() [1/2]
virtual bool LDASTools::AL::Log::StreamInterface::IsOpen |
( |
| ) |
const |
|
pure virtual |
Resturn the open state of the stream.
- Returns
- If the stream is open and writable, then return true. Otherwise, false.
◆ IsOpen() [2/2]
virtual bool LDASTools::AL::Log::StreamInterface::IsOpen |
( |
| ) |
const |
|
pure virtual |
Resturn the open state of the stream.
- Returns
- If the stream is open and writable, then return true. Otherwise, false.
◆ WriteMessage() [1/2]
virtual void LDASTools::AL::Log::StreamInterface::WriteMessage |
( |
const std::string & |
Message | ) |
|
|
pure virtual |
How to open the stream.
- Parameters
-
[in] | Message | The message to send to the output stream. |
◆ WriteMessage() [2/2]
virtual void LDASTools::AL::Log::StreamInterface::WriteMessage |
( |
const std::string & |
Message | ) |
|
|
pure virtual |
How to open the stream.
- Parameters
-
[in] | Message | The message to send to the output stream. |
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.4/build/include/ldastoolsal/Log.hh
- /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.4/src/Log.hh
- /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.4/src/Log.cc