The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
events::generic_event Class Reference

#include <generic_event.hpp>

Public Member Functions

 generic_event (std::string name)
 
virtual ~generic_event ()
 
virtual bool attach_handler (observer *obs)
 
virtual bool detach_handler (observer *obs)
 
virtual void notify_observers ()
 

Private Attributes

std::string name_
 
std::vector< observer * > observers_
 
bool change_handler_
 
bool notify_active_
 

Detailed Description

Definition at line 46 of file generic_event.hpp.

Constructor & Destructor Documentation

events::generic_event::generic_event ( std::string  name)

Definition at line 21 of file generic_event.cpp.

virtual events::generic_event::~generic_event ( )
inlinevirtual

Definition at line 49 of file generic_event.hpp.

Member Function Documentation

bool events::generic_event::attach_handler ( observer obs)
virtual
bool events::generic_event::detach_handler ( observer obs)
virtual
void events::generic_event::notify_observers ( )
virtual

Member Data Documentation

bool events::generic_event::change_handler_
private

Definition at line 63 of file generic_event.hpp.

Referenced by attach_handler(), detach_handler(), and notify_observers().

std::string events::generic_event::name_
private

Definition at line 56 of file generic_event.hpp.

Referenced by notify_observers().

bool events::generic_event::notify_active_
private

Definition at line 67 of file generic_event.hpp.

Referenced by attach_handler(), detach_handler(), and notify_observers().

std::vector<observer*> events::generic_event::observers_
private

Definition at line 59 of file generic_event.hpp.

Referenced by attach_handler(), detach_handler(), and notify_observers().


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