summaryrefslogtreecommitdiff
path: root/src/drumkitparser.h
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2016-03-23 18:24:29 +0100
committerAndré Nusser <andre.nusser@googlemail.com>2016-03-23 18:24:29 +0100
commit5c04b951ffe53e1a31182bb0814908af8d7f0a6f (patch)
tree5499759253aaa92abfa853aa55fede9e9029f140 /src/drumkitparser.h
parente8fcde7654f2d7dce494ebe1ca27abbebc3908b4 (diff)
Do the file related actions in SAXParser.
Diffstat (limited to 'src/drumkitparser.h')
-rw-r--r--src/drumkitparser.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/drumkitparser.h b/src/drumkitparser.h
index 2344261..98ea875 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;