ManaPlus
Public Member Functions | Private Attributes
AssertListener Class Reference

#include <assertlistener.h>

Inheritance diagram for AssertListener:
DebugMessageListener

Public Member Functions

 AssertListener ()
 
void debugMessage (const std::string &msg)
 
const StringVectgetMessages () const
 
- Public Member Functions inherited from DebugMessageListener
 DebugMessageListener ()
 
virtual ~ DebugMessageListener ()
 

Private Attributes

StringVect mMessages
 

Additional Inherited Members

- Static Public Member Functions inherited from DebugMessageListener
static void distributeEvent (const std::string &msg)
 
static void addListener (DebugMessageListener *const listener)
 
static void removeListener (const DebugMessageListener *const listener)
 

Detailed Description

Definition at line 31 of file assertlistener.h.

Constructor & Destructor Documentation

◆ AssertListener()

AssertListener::AssertListener ( )

Definition at line 28 of file assertlistener.cpp.

28  :
30  mMessages()
31 {
32 }
StringVect mMessages

Member Function Documentation

◆ debugMessage()

void AssertListener::debugMessage ( const std::string &  msg)
virtual

Implements DebugMessageListener.

Definition at line 34 of file assertlistener.cpp.

35 {
36  mMessages.push_back(msg);
37 }
bool msg(InputEvent &event)
Definition: chat.cpp:39

References mMessages, and Actions::msg().

◆ getMessages()

const StringVect & AssertListener::getMessages ( ) const

Definition at line 39 of file assertlistener.cpp.

40 {
41  return mMessages;
42 }

References mMessages.

Referenced by createGuiWindows().

Field Documentation

◆ mMessages

StringVect AssertListener::mMessages
private

Definition at line 43 of file assertlistener.h.

Referenced by debugMessage(), and getMessages().


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