synthberry
Software MIDI synthesizer for the Raspberry Pi.
 All Classes Functions
inoteobserver.h
1 #ifndef INOTEOBSERVER_H
2 #define INOTEOBSERVER_H
3 
4 #include <memory>
5 #include "note.h"
6 
7 class INoteObservable;
8 using PNoteObservable = std::shared_ptr<INoteObservable>;
9 
11 {
12 public:
13  virtual ~INoteObserver(){};
14  virtual void noteAdded(const Note &note) = 0;
15  virtual void noteRemoved(const Note &note) = 0;
16  virtual void notify(const PNoteObservable &&subject) = 0;
17 };
18 
19 using PNoteObserver = std::shared_ptr<INoteObserver>;
20 
21 #endif // INOTEOBSERVER_H