diff options
author | André Nusser <andre.nusser@googlemail.com> | 2016-03-23 18:24:29 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-03-29 22:43:31 +0200 |
commit | ef1d7e4478649296ccb17900acc949a604097d66 (patch) | |
tree | 52660b7d9d96b8bef165429c50c2a89084cae141 /src/drumkitparser.h | |
parent | 390f6f094d43f0d8cfca4efff13d002eb4cf6f19 (diff) |
Do the file related actions in SAXParser.
Diffstat (limited to 'src/drumkitparser.h')
-rw-r--r-- | src/drumkitparser.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/drumkitparser.h b/src/drumkitparser.h index 1c49ed8..f857590 100644 --- a/src/drumkitparser.h +++ b/src/drumkitparser.h @@ -34,17 +34,15 @@ class DrumKitParser : public SAXParser { public: - DrumKitParser(const std::string& kitfile, DrumKit& kit); - ~DrumKitParser(); + DrumKitParser(DrumKit& kit); + + virtual int parseFile(const std::string& filename) override; protected: void startTag(const std::string& name, const attr_t& attributes) override; void endTag(const std::string& name) override; - int readData(std::string& data, std::size_t size) override; - private: - FILE* fd; DrumKit& kit; std::string path; |