Public Member Functions | Private Attributes | List of all members
ULogEvent Class Reference

#include <ULogger.h>

Inheritance diagram for ULogEvent:
Inheritance graph
[legend]

Public Member Functions

virtual std::string getClassName () const
 
const std::stringgetMsg () const
 
 ULogEvent (const std::string &msg, int level)
 
virtual ~ULogEvent ()
 
- Public Member Functions inherited from UEvent
int getCode () const
 
virtual ~UEvent ()
 

Private Attributes

std::string msg_
 

Additional Inherited Members

- Protected Member Functions inherited from UEvent
 UEvent (int code=0)
 

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::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.

◆ ~ULogEvent()

virtual ULogEvent::~ULogEvent ( )
inlinevirtual

Definition at line 133 of file ULogger.h.

Member Function Documentation

◆ getClassName()

virtual std::string ULogEvent::getClassName ( ) const
inlinevirtual
Returns
string "ULogEvent"

Implements UEvent.

Definition at line 141 of file ULogger.h.

◆ getMsg()

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

Get the message from the event.

Definition at line 137 of file ULogger.h.

Member Data Documentation

◆ msg_

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 Mon Jan 23 2023 03:38:59