summaryrefslogtreecommitdiff
path: root/src/instrumentparser.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-29 22:19:49 +0200
commit8c585aa006741b95c1175afcdb01cdd3d8d2d7db (patch)
tree66c482877189c0d63708caffa0e614caf1b8f228 /src/instrumentparser.h
parent01e216f82e24e7668a892e5a912ccbf1369ae255 (diff)
Do the file related actions in SAXParser.
Diffstat (limited to 'src/instrumentparser.h')
-rw-r--r--src/instrumentparser.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/instrumentparser.h b/src/instrumentparser.h
index a203444..965694a 100644
--- a/src/instrumentparser.h
+++ b/src/instrumentparser.h
@@ -35,19 +35,17 @@ class InstrumentParser
: public SAXParser
{
public:
- InstrumentParser(const std::string& instrfile, Instrument &instrument);
- ~InstrumentParser();
+ InstrumentParser(Instrument &instrument);
+
+ virtual int parseFile(const std::string& filename) override;
std::vector<InstrumentChannel*> channellist;
protected:
- int readData(std::string& data, std::size_t size) override;
-
virtual void startTag(const std::string& name, const attr_t& attr) override;
virtual void endTag(const std::string& name) override;
private:
- FILE* fd{nullptr};
Instrument& instrument;
Sample* s{nullptr};