My Project
Classes | Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
ParaEngine::CJabberEventBinding Class Reference

Jabber event that could be bound with NPL script. More...

#include <JabberEventBinding.h>

Classes

class  CScriptCallBack
 a structure for holding the script callback. More...
 

Public Member Functions

void InitEventMappingTable (bool bDisable=false)
 
void EnableEvent (int eEvent)
 enable/disable an event
 
void DisableEvent (int eEvent)
 
void MapEvent (int eSrcEvent, int eDestEvent)
 Mapping an event to another event.
 
void UnmapEvent (int eSrcEvent, int eDestEvent)
 Unmap an event to any event.
 
bool IsMapTo (int eSrcEvent, int eDestEvent) const
 Decide if the first event is mapped to the second event.
 
void MapEventToScript (int eEvent, const CScriptCallBack *script)
 
void UnmapEventToScript (int eEvent)
 
void ClearAllScripts ()
 clear all script mapping from the MapEventToScript() based calls. More...
 
const CScriptCallBackGetEventScript (int eEvent) const
 
bool HasEventScript (int eEvent) const
 

Static Public Member Functions

static void StaticInit ()
 
static int StringToEventValue (const string &str)
 
static const string & EventValueToString (int value)
 

Protected Attributes

bitset< JE_LAST > m_pEventEnable
 
map< int, CScriptCallBackm_pEventToScript
 
set< int > m_pEventMappingTable [JE_LAST]
 

Static Protected Attributes

static map< string, int > StringToEventTable
 
static map< int, string > EventToStringTable
 

Detailed Description

Jabber event that could be bound with NPL script.

Member Function Documentation

§ ClearAllScripts()

void ParaEngine::CJabberEventBinding::ClearAllScripts ( )

clear all script mapping from the MapEventToScript() based calls.


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