diff options
author | deva <deva> | 2011-03-01 19:19:02 +0000 |
---|---|---|
committer | deva <deva> | 2011-03-01 19:19:02 +0000 |
commit | e190d38057892b69246391841b234a368bc2b4ad (patch) | |
tree | 34f946bc1c3b86997d4cd45e63c433ef07b36486 /src/drumkitparser.h | |
parent | c393edc920f8ee126d1bced3500b6bc1ecf86f83 (diff) |
MAJOR rewrite of the internals. New input/output 'plugin' system. Still a lot missing.
Diffstat (limited to 'src/drumkitparser.h')
-rw-r--r-- | src/drumkitparser.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/drumkitparser.h b/src/drumkitparser.h index 22fe83e..783ed5f 100644 --- a/src/drumkitparser.h +++ b/src/drumkitparser.h @@ -32,27 +32,19 @@ class DrumKitParser : public SAXParser { public: - DrumKitParser(std::string kitfile, bool preload = false, int min_velocity = -1); + DrumKitParser(const std::string &kitfile, DrumKit &kit); ~DrumKitParser(); - void startTag(std::string name, std::map< std::string, std::string> attributes); + void startTag(std::string name, + std::map< std::string, std::string> attributes); void endTag(std::string name); - DrumKit *getDrumkit(); - protected: int readData(char *data, size_t size); private: FILE *fd; - DrumKit *dk; - - Sample *lastsample; - Instrument *lastinstrument; - Velocity *lastvelocity; - - bool preload; - int min_velocity; + DrumKit &kit; }; #endif/*__DRUMGIZMO_DRUMKITPARSER_H__*/ |