ldas-tools-al 2.6.7
 
Loading...
Searching...
No Matches
anonymous_namespace{Log.cc}::Log::StreamStdErr Class Reference

#include <Log.hh>

Inheritance diagram for anonymous_namespace{Log.cc}::Log::StreamStdErr:
Collaboration diagram for anonymous_namespace{Log.cc}::Log::StreamStdErr:

Public Types

typedef boost::shared_ptr< StreamCBInterfacecallback_type
 
typedef boost::shared_ptr< StreamCBInterfacecallback_type
 

Public Member Functions

 StreamStdErr ()
 Constructor.
 
 StreamStdErr ()
 Constructor.
 
virtual ~StreamStdErr ()
 Destructor.
 
virtual ~StreamStdErr ()
 Destructor.
 
virtual void Close ()
 How to close the stream.
 
virtual void Close ()
 How to close the stream.
 
virtual bool IsOpen () const
 Return the open state of the stream.
 
virtual bool IsOpen () const
 Return the open state of the stream.
 
virtual void Open ()
 How to open the stream.
 
virtual void Open ()
 How to open the stream.
 
virtual void WriteMessage (const std::string &Message)
 How to open the stream.
 
virtual void WriteMessage (const std::string &Message)
 How to open the stream.
 
void Callback (callback_type Callback)
 Establish callback.
 
void Callback (callback_type Callback)
 Establish callback.
 
template<typename T>
std::ostream & operator<< (T a)
 Output to the stream.
 
template<typename T>
std::ostream & operator<< (T a)
 Output to the stream.
 

Protected Member Functions

virtual std::ostream & stream ()
 Gain access to the stream.
 
virtual std::ostream & stream ()
 Gain access to the stream.
 
void onClose ()
 Destructor.
 
void onClose ()
 
void onOpen ()
 Destructor.
 
void onOpen ()
 

Protected Attributes

bool on_open_called
 Tracks if a call to onOpen has been made.
 

Private Attributes

callback_type callback
 Callback storage.
 

Member Typedef Documentation

◆ callback_type [1/2]

◆ callback_type [2/2]

Constructor & Destructor Documentation

◆ StreamStdErr() [1/2]

LDASTools::AL::Log::StreamStdErr::StreamStdErr ( )

Constructor.

◆ StreamStdErr() [2/2]

LDASTools::AL::Log::StreamStdErr::StreamStdErr ( )

Constructor.

◆ ~StreamStdErr() [1/2]

LDASTools::AL::Log::StreamStdErr::~StreamStdErr ( )
virtual

Destructor.

◆ ~StreamStdErr() [2/2]

virtual LDASTools::AL::Log::StreamStdErr::~StreamStdErr ( )
virtual

Destructor.

Member Function Documentation

◆ Callback() [1/2]

void LDASTools::AL::Log::StreamInterface::Callback ( callback_type Callback)
inlineinherited

Establish callback.

◆ Callback() [2/2]

void LDASTools::AL::Log::StreamInterface::Callback ( callback_type Callback)
inherited

Establish callback.

◆ Close() [1/2]

void LDASTools::AL::Log::StreamStdErr::Close ( )
virtual

How to close the stream.

Implements LDASTools::AL::Log::StreamInterface.

◆ Close() [2/2]

virtual void LDASTools::AL::Log::StreamStdErr::Close ( )
virtual

How to close the stream.

Implements LDASTools::AL::Log::StreamInterface.

◆ IsOpen() [1/2]

bool LDASTools::AL::Log::StreamStdErr::IsOpen ( ) const
virtual

Return the open state of the stream.

Resturn the open state of the stream.

Returns
If the stream is open and writable, then return true. Otherwise, false.

Implements LDASTools::AL::Log::StreamInterface.

◆ IsOpen() [2/2]

virtual bool LDASTools::AL::Log::StreamStdErr::IsOpen ( ) const
virtual

Return the open state of the stream.

Returns
If the stream is open and writable, then return true. Otherwise, false.

Implements LDASTools::AL::Log::StreamInterface.

◆ onClose() [1/2]

void LDASTools::AL::Log::StreamInterface::onClose ( )
protectedinherited

Destructor.

◆ onClose() [2/2]

void LDASTools::AL::Log::StreamInterface::onClose ( )
protectedinherited

◆ onOpen() [1/2]

void LDASTools::AL::Log::StreamInterface::onOpen ( )
protectedinherited

Destructor.

◆ onOpen() [2/2]

void LDASTools::AL::Log::StreamInterface::onOpen ( )
protectedinherited

◆ Open() [1/2]

void LDASTools::AL::Log::StreamStdErr::Open ( )
virtual

How to open the stream.

Implements LDASTools::AL::Log::StreamInterface.

◆ Open() [2/2]

virtual void LDASTools::AL::Log::StreamStdErr::Open ( )
virtual

How to open the stream.

Implements LDASTools::AL::Log::StreamInterface.

◆ operator<<() [1/2]

template<typename T>
std::ostream & LDASTools::AL::Log::StreamInterface::operator<< ( T a)
inlineinherited

Output to the stream.

◆ operator<<() [2/2]

template<typename T>
std::ostream & LDASTools::AL::Log::StreamInterface::operator<< ( T a)
inlineinherited

Output to the stream.

◆ stream() [1/2]

std::ostream & LDASTools::AL::Log::StreamStdErr::stream ( )
protectedvirtual

Gain access to the stream.

Implements LDASTools::AL::Log::StreamInterface.

◆ stream() [2/2]

virtual std::ostream & LDASTools::AL::Log::StreamStdErr::stream ( )
protectedvirtual

Gain access to the stream.

Implements LDASTools::AL::Log::StreamInterface.

◆ WriteMessage() [1/2]

void LDASTools::AL::Log::StreamStdErr::WriteMessage ( const std::string & Message)
virtual

How to open the stream.

Parameters
[in]MessageThe message to send to the output stream.

Implements LDASTools::AL::Log::StreamInterface.

◆ WriteMessage() [2/2]

virtual void LDASTools::AL::Log::StreamStdErr::WriteMessage ( const std::string & Message)
virtual

How to open the stream.

Parameters
[in]MessageThe message to send to the output stream.

Implements LDASTools::AL::Log::StreamInterface.

Member Data Documentation

◆ callback

callback_type LDASTools::AL::Log::StreamInterface::callback
privateinherited

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.

◆ on_open_called

bool LDASTools::AL::Log::StreamStdErr::on_open_called
protected

Tracks if a call to onOpen has been made.


The documentation for this class was generated from the following files: