From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/class_NLMISC__CEventServer.html | 506 +++++++++++++++++++++++ 1 file changed, 506 insertions(+) create mode 100644 docs/doxygen/nel/class_NLMISC__CEventServer.html (limited to 'docs/doxygen/nel/class_NLMISC__CEventServer.html') diff --git a/docs/doxygen/nel/class_NLMISC__CEventServer.html b/docs/doxygen/nel/class_NLMISC__CEventServer.html new file mode 100644 index 00000000..42c33c78 --- /dev/null +++ b/docs/doxygen/nel/class_NLMISC__CEventServer.html @@ -0,0 +1,506 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
+
+ + +
+ + +
+Docs + +
+  + + + + + +
Documentation 
+ +
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  
+

NLMISC::CEventServer Class Reference

CEventServer. +More... +

+#include <event_server.h> +

+Collaboration diagram for NLMISC::CEventServer:

Collaboration graph
+ + + + + +
[legend]
List of all members. + + + + + + + + + + + + + + + + + + + + +

Public Methods

void postEvent (CEvent * event)
 add event to the list. More...

void pump ()
 get call every callbacks associated with event id. More...

void addListener (CClassId id, IEventListener* listener )
 Add a callback (associated with an id). More...

void removeListener (CClassId id, IEventListener* listener )
 Remove a callback. More...

void addEmitter (IEventEmitter * emitter)
 Add an Emitter to the server. More...

void removeEmitter (IEventEmitter * emitter)
 Remove an Emitter from the server. More...


Protected Methods

virtual bool pumpEvent (CEvent* event)
 call every callbacks associated with event id. More...


Private Attributes

mapListener _Listeners
std::list<IEventEmitter*> _Emitters
std::list<CEvent*> _Events
+

Detailed Description

+CEventServer. +

+

+Author(s):
+ Stephane Coutelas , Nevrax France
+Date:
+ 2000
+

+ +

+Definition at line 52 of file event_server.h.


Member Function Documentation

+

+ + + + +
+ + + + + + +
+void NLMISC::CEventServer::addEmitter ( + +IEventEmitter * emitter ) +
+
+ + + + + +
+   + + +

+Add an Emitter to the server. +

+

+Parameters:
+ + +
emitter +
+
+

+Definition at line 133 of file event_server.cpp.

+

+ + + + +
+ + + + + + + + + + +
+void NLMISC::CEventServer::addListener ( + +CClassId id, +
+IEventListener * listener ) +
+
+ + + + + +
+   + + +

+Add a callback (associated with an id). +

+

+Parameters:
+ + + +
id + of the CEvent class to hook
listener + to use with this event
+
+

+Definition at line 102 of file event_server.cpp.

+

+ + + + +
+ + + + + + +
+void NLMISC::CEventServer::postEvent ( + +CEvent * event ) +
+
+ + + + + +
+   + + +

+add event to the list. +

+

+Parameters:
+ + +
event +
+
+

+Definition at line 39 of file event_server.cpp.

+

+ + + + +
+ + + + + + +
+void NLMISC::CEventServer::pump ( + +) +
+
+ + + + + +
+   + + +

+get call every callbacks associated with event id. +

+

+Parameters:
+ + +
event +
+
+

+Definition at line 49 of file event_server.cpp.

+

+ + + + +
+ + + + + + +
+bool NLMISC::CEventServer::pumpEvent ( + +CEvent * event ) [protected, virtual] +
+
+ + + + + +
+   + + +

+call every callbacks associated with event id. +

+

+Parameters:
+ + +
event +
+
+Returns:
+ true if the pointer must be delete, false if it not. (post to another message queue...)
+

+Definition at line 78 of file event_server.cpp.

+

+ + + + +
+ + + + + + +
+void NLMISC::CEventServer::removeEmitter ( + +IEventEmitter * emitter ) +
+
+ + + + + +
+   + + +

+Remove an Emitter from the server. +

+

+Parameters:
+ + +
emitter +
+
+

+Definition at line 142 of file event_server.cpp.

+

+ + + + +
+ + + + + + + + + + +
+void NLMISC::CEventServer::removeListener ( + +CClassId id, +
+IEventListener * listener ) +
+
+ + + + + +
+   + + +

+Remove a callback. +

+

+Parameters:
+ + + +
id + of event's callback
listener + to be removed
+
+

+Definition at line 111 of file event_server.cpp.

+


Member Data Documentation

+

+ + + + +
+ + + + + +
+std::list< IEventEmitter *> NLMISC::CEventServer::_Emitters [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 55 of file event_server.h.

+

+ + + + +
+ + + + + +
+std::list< CEvent *> NLMISC::CEventServer::_Events [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 56 of file event_server.h.

+

+ + + + +
+ + + + + +
+mapListener NLMISC::CEventServer::_Listeners [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 54 of file event_server.h.

+


The documentation for this class was generated from the following files: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1