From e190d38057892b69246391841b234a368bc2b4ad Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 1 Mar 2011 19:19:02 +0000 Subject: MAJOR rewrite of the internals. New input/output 'plugin' system. Still a lot missing. --- src/drumkitparser.h | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'src/drumkitparser.h') 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__*/ -- cgit v1.2.3