summaryrefslogtreecommitdiff
path: root/libs/evoral/evoral/SMF.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-02-14 17:39:49 +0000
committerDavid Robillard <d@drobilla.net>2009-02-14 17:39:49 +0000
commitd4394595896e2f4c91079fa66f15a4e88f66f1d3 (patch)
tree9ee5fec478cb0bba368c9c2f8c9eabe70a4e5d77 /libs/evoral/evoral/SMF.hpp
parent5ffdf1857eec24e37a4164b6ec61e188dbbd4cac (diff)
Remove abstract MIDIFile interface (maintaining interface with old crap was getting annoying).
git-svn-id: svn://localhost/ardour2/branches/3.0@4553 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/evoral/evoral/SMF.hpp')
-rw-r--r--libs/evoral/evoral/SMF.hpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/libs/evoral/evoral/SMF.hpp b/libs/evoral/evoral/SMF.hpp
index be1ed667cc..f45719cdab 100644
--- a/libs/evoral/evoral/SMF.hpp
+++ b/libs/evoral/evoral/SMF.hpp
@@ -21,7 +21,6 @@
#define EVORAL_SMF_HPP
#include <cassert>
-#include "evoral/MIDIFile.hpp"
struct smf_struct;
struct smf_track_struct;
@@ -33,11 +32,17 @@ namespace Evoral {
template<typename Time> class Event;
template<typename Time> class EventRingBuffer;
+#define THROW_FILE_ERROR throw(typename SMF<Time>::FileError)
+
/** Standard Midi File (Type 0)
*/
template<typename Time>
-class SMF : public MIDIFile<Time> {
+class SMF {
public:
+ class FileError : public std::exception {
+ const char* what() const throw() { return "Unknown SMF error"; }
+ };
+
SMF() : _last_ev_time(0), _smf(0), _smf_track(0), _empty(true) {};
virtual ~SMF();