11 #include "ParserListener.h"
24 evInstrument.Subscribe(pListener, &CParserListener::OnInstrumentEvent);
25 evKeySignature.Subscribe(pListener, &CParserListener::OnKeySignatureEvent);
26 evLayer.Subscribe(pListener, &CParserListener::OnLayerEvent);
27 evTempo.Subscribe(pListener, &CParserListener::OnTempoEvent);
28 evTime.Subscribe(pListener, &CParserListener::OnTimeEvent);
29 evVoice.Subscribe(pListener, &CParserListener::OnVoiceEvent);
30 evNote.Subscribe(pListener, &CParserListener::OnNoteEvent);
46 evTime.UnSubscribe(pListener);
48 evNote.UnSubscribe(pListener);
OIL::CEventT< const CParser, const Voice > evVoice
Event Raised when Parser encounters a Voice command.
void AddListener(CParserListener *pListener)
Subscribes a Listener object for all events
void RemoveListener(CParserListener *pListener)
UnSubscribes the Listener Object from the events
OIL::CEventT< const CParser, const Tempo > evTempo
Event Raised when Parser encounters a Tempo command.
OIL::CEventT< const CParser, const KeySignature > evKeySignature
Event Raised when Parser encounters a Key Signature command.
OIL::CEventT< const CParser, const Note > evNote
Event Raised when Parser encounters a Note.
OIL::CEventT< const CParser, const Time > evTime
Event Raised when Parser encounters a Time command.
Base class that represents a Renderer Object
OIL::CEventT< const CParser, const Instrument > evInstrument
Event Raised when Parser encounters an Instrument command.
OIL::CEventT< const CParser, const Layer > evLayer
Event Raised when Parser encounters a Layer command.