CFugue
ParserListener.h
1 /*
2  This is part of CFugue, a C++ Runtime for MIDI Score Programming
3  Copyright (C) 2009 Gopalakrishna Palem
4 
5  For links to further information, or to contact the author,
6  see <http://cfugue.sourceforge.net/>.
7 
8  $LastChangedDate: 2013-12-18 10:59:57 +0530 (Wed, 18 Dec 2013) $
9  $Rev: 197 $
10  $LastChangedBy: krishnapg $
11 */
12 
13 #ifndef __PARSERLISTENER_H__D2514D7C_F971_49d6_B8E0_E892725FEB73__
14 #define __PARSERLISTENER_H__D2514D7C_F971_49d6_B8E0_E892725FEB73__
15 
16 #include "Common/EventHandler.h"
17 
18 namespace CFugue
19 {
20  //Forward Declarations
21  class CParser;
22  class ChannelPressure;
23  class ControllerEvent;
24  class Instrument;
25  class KeySignature;
26  class Layer;
27  class PitchBend;
28  class PolyphonicPressure;
29  class Tempo;
30  class Time;
31  class Voice;
32  struct Note;
33 
34  /// <Summary>
35  /// \brief Base class that represents a Renderer Object
36  /// </Summary>
38  {
39  public:
40 
41  inline CParserListener(void) { }
42 
43  inline virtual ~CParserListener(void) { }
44 
45  inline virtual void OnChannelPressureEvent(const CParser* pParser, const ChannelPressure* pCP) { }
46 
47  inline virtual void OnControllerEvent(const CParser* pParser, const ControllerEvent* pCEvent) { }
48 
49  inline virtual void OnInstrumentEvent(const CParser* pParser, const Instrument* pInstrument) { }
50 
51  inline virtual void OnKeySignatureEvent(const CParser* pParser, const KeySignature* pKeySig) { }
52 
53  inline virtual void OnLayerEvent(const CParser* pParser, const Layer* pLayer) { }
54 
55  inline virtual void OnMeasureEvent(const CParser* pParser, OIL::CEventHandlerArgs* pArgs) { }
56 
57  inline virtual void OnPitchBendEvent(const CParser* pParser, const PitchBend* pPB) { }
58 
59  inline virtual void OnPolyphonicPressureEvent(const CParser* pParser, const PolyphonicPressure* pPressure) { }
60 
61  inline virtual void OnTempoEvent(const CParser* pParser, const Tempo* pTempo) { }
62 
63  inline virtual void OnTimeEvent(const CParser* pParser, const Time* pTime) { }
64 
65  inline virtual void OnVoiceEvent(const CParser* pParser, const Voice* pVoice) { }
66 
67  inline virtual void OnNoteEvent(const CParser* pParser, const Note* pNote) { }
68  };
69 
70 } // namespace CFugue
71 
72 #endif // __PARSERLISTENER_H__D2514D7C_F971_49d6_B8E0_E892725FEB73__
Takes care of defining the MIDI Controller Events used in MusicStrings.
Class representing the Key Signature.
Definition: KeySignature.h:79
Class representing a Musical Note
Definition: Note.h:19
Base class that represents a Parser Object.
Definition: Parser.h:63
Base class that represents a Renderer Object

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