Tool::LogManager Class Reference

LogManager Class. More...

#include <LogManager.hpp>

List of all members.

Public Member Functions

bool attachLogListener (LogListener *listener, const bool &history=true)
 Attaches a LogListener if not already attached.
bool detachLogListener (LogListener *listener)
 Detaches a LogListener if attached to the manager.
bool isAttached (LogListener *listener) const
 Detaches a LogListener if attached to the manager.
void clear ()
 Detaches all the LogListeners.
const std::deque< LogCommand > & getHistory () const
 Returns the History.
void startSubSection (const std::string &message)
void finishSubSection (const std::string &message)
void startProgress (const std::string &message)
void finishProgess (const bool success=true)
void send (const Message &message)
void send (const LogCommand &cmd)
void setEnabled (const bool &enable)
const bool & isEnabled () const

Static Public Member Functions

static LogManagergetInstance ()

Detailed Description

LogManager Class.


Member Function Documentation

bool Tool::LogManager::attachLogListener ( LogListener listener,
const bool &  history = true 
)

Attaches a LogListener if not already attached.

Parameters:
listener The LogListener to be attached. (May not be NULL)
history if true the history will be pushed to the Listener when attached
Returns:
true if the LogListener has be attached.
bool Tool::LogManager::detachLogListener ( LogListener listener  ) 

Detaches a LogListener if attached to the manager.

Parameters:
listener The LogListener to be attached.
Returns:
true if the LogListener has be detached.
const std::deque< LogCommand > & Tool::LogManager::getHistory (  )  const

Returns the History.

Returns:
the history of the already sent messages
bool Tool::LogManager::isAttached ( LogListener listener  )  const

Detaches a LogListener if attached to the manager.

Parameters:
listener The LogListener to be attached.
Returns:
true if the LogListener has be detached.

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

Generated by  doxygen 1.6.2