WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
Event Class Reference

Lightweight event object carrying a type tag and sender reference. More...

#include <Event.h>

Inheritance diagram for Event:
[legend]
Collaboration diagram for Event:
[legend]

Public Types

enum  EventType { DESTROYED = 0x00000000 }
 

Public Member Functions

 Event (Observable *, EventType)
 
virtual ~Event ()=default
 
EventType type () const
 
void setType (EventType type)
 
Observablesender ()
 

Private Attributes

EventType m_type
 
Observablem_p_sender
 

Detailed Description

Lightweight event object carrying a type tag and sender reference.

Used by the Observer pattern to notify subscribers of state changes.

Definition at line 8 of file Event.h.

Member Enumeration Documentation

◆ EventType

Enumerator
DESTROYED 

Definition at line 11 of file Event.h.

Constructor & Destructor Documentation

◆ Event()

Event::Event ( Observable observable,
EventType  type 
)

Definition at line 3 of file Event.cpp.

◆ ~Event()

virtual Event::~Event ( )
virtualdefault

Member Function Documentation

◆ sender()

Observable * Event::sender ( )
inline

Definition at line 23 of file Event.h.

◆ setType()

void Event::setType ( EventType  type)
inline

Definition at line 21 of file Event.h.

Here is the call graph for this function:

◆ type()

EventType Event::type ( ) const
inline

Definition at line 20 of file Event.h.

Here is the caller graph for this function:

Member Data Documentation

◆ m_p_sender

Observable* Event::m_p_sender
private

Definition at line 27 of file Event.h.

◆ m_type

EventType Event::m_type
private

Definition at line 26 of file Event.h.


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