CFugue
Protected Member Functions | List of all members
OIL::CEventSource Class Reference

#include <EventHandler.h>

Inherited by CEventedProperty< DATATYPE >, CFugue::CParser, and OIL::CInvokableEventT< TEventHandlerArgs > [protected].

Protected Member Functions

template<typename TEventSource , typename TEventHandlerArgs >
void RaiseEvent (CEventT< TEventSource, TEventHandlerArgs > *pEvent, TEventHandlerArgs *pArgs)
 
template<typename TEventSource , typename TEventHandlerArgs >
void RaiseEvent (CEventT< TEventSource, const TEventHandlerArgs > *pEvent, const TEventHandlerArgs *pArgs)
 

Detailed Description

Only CEventSource derived classes can raise events. So to raise events from your class, declare CEventT variables in your class and derive it from CEventSource. Use CEventSource::RaiseEvent() method when required to raise the event.

See CEventT for sample usage.

If you want to use events outside classes, then use the CInvokableEventT class.

Definition at line 305 of file EventHandler.h.

Member Function Documentation

template<typename TEventSource , typename TEventHandlerArgs >
void OIL::CEventSource::RaiseEvent ( CEventT< TEventSource, TEventHandlerArgs > *  pEvent,
TEventHandlerArgs *  pArgs 
)
protected

Invokes the Event.

Definition at line 320 of file EventHandler.h.

Referenced by CFugue::CParser::Error().

template<typename TEventSource , typename TEventHandlerArgs >
void OIL::CEventSource::RaiseEvent ( CEventT< TEventSource, const TEventHandlerArgs > *  pEvent,
const TEventHandlerArgs *  pArgs 
)
protected

Invokes the Event.

Definition at line 331 of file EventHandler.h.


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

CFugue, the C++ Music Programming Library © Copyright 2009 Cenacle Research India Private Limited Gopalakrishna Palem