Mercurial > hg > svcore
comparison data/midi/MIDIEvent.h @ 1599:ce185d4dd408 bqaudiostream
Merge from default branch
author | Chris Cannam |
---|---|
date | Wed, 23 Jan 2019 14:43:43 +0000 |
parents | ad5f892c0c4d |
children | c3b5564cfb78 |
comparison
equal
deleted
inserted
replaced
1598:d2555df635ec | 1599:ce185d4dd408 |
---|---|
17 This is a modified version of a source file from the | 17 This is a modified version of a source file from the |
18 Rosegarden MIDI and audio sequencer and notation editor. | 18 Rosegarden MIDI and audio sequencer and notation editor. |
19 This file copyright 2000-2006 Richard Bown and Chris Cannam. | 19 This file copyright 2000-2006 Richard Bown and Chris Cannam. |
20 */ | 20 */ |
21 | 21 |
22 #ifndef _MIDI_EVENT_H_ | 22 #ifndef SV_MIDI_EVENT_H |
23 #define _MIDI_EVENT_H_ | 23 #define SV_MIDI_EVENT_H |
24 | 24 |
25 #include <QString> | 25 #include <QString> |
26 #include <string> | 26 #include <string> |
27 #include <iostream> | 27 #include <iostream> |
28 #include <stdexcept> | 28 #include <stdexcept> |
224 std::cerr << "WARNING: MIDI exception: " | 224 std::cerr << "WARNING: MIDI exception: " |
225 << message.toLocal8Bit().data() << std::endl; | 225 << message.toLocal8Bit().data() << std::endl; |
226 } | 226 } |
227 virtual ~MIDIException() throw() { } | 227 virtual ~MIDIException() throw() { } |
228 | 228 |
229 virtual const char *what() const throw() { | 229 const char *what() const throw() override { |
230 return m_message.toLocal8Bit().data(); | 230 return m_message.toLocal8Bit().data(); |
231 } | 231 } |
232 | 232 |
233 protected: | 233 protected: |
234 QString m_message; | 234 QString m_message; |