Public Member Functions | Private Attributes
ULogEvent Class Reference

#include <ULogger.h>

Inheritance diagram for ULogEvent:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual std::string getClassName () const
const std::string & getMsg () const
 ULogEvent (const std::string &msg, int level)
virtual ~ULogEvent ()

Private Attributes

std::string msg_

Detailed Description

This class is used by the ULogger to send logged messages like events. Messages with level over the event level set in ULogger::setEventLevel() are sent like ULogEvent with the message and its level. The default event level of ULogger is kFatal (see ULogger::Level).

Definition at line 121 of file ULogger.h.


Constructor & Destructor Documentation

ULogEvent::ULogEvent ( const std::string &  msg,
int  level 
) [inline]

ULogEvent constructor. Note that to retrieve the message level, use UEvent::getCode().

Parameters:
msgthe message already formatted to a full string.
levelthe severity of the message,
See also:
ULogger::Level.

Definition at line 129 of file ULogger.h.

virtual ULogEvent::~ULogEvent ( ) [inline, virtual]

Definition at line 133 of file ULogger.h.


Member Function Documentation

virtual std::string ULogEvent::getClassName ( ) const [inline, virtual]
Returns:
string "ULogEvent"

Implements UEvent.

Definition at line 141 of file ULogger.h.

const std::string& ULogEvent::getMsg ( ) const [inline]

Get the message from the event.

Definition at line 137 of file ULogger.h.


Member Data Documentation

std::string ULogEvent::msg_ [private]

Definition at line 143 of file ULogger.h.


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


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jun 6 2019 21:59:39