LibMusicXML 3.22
reader.h
1/*
2 MusicXML Library
3 Copyright (C) Grame 2006-2013
4
5 This Source Code Form is subject to the terms of the Mozilla Public
6 License, v. 2.0. If a copy of the MPL was not distributed with this
7 file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
9 Grame Research Laboratory, 11, cours de Verdun Gensoul 69002 Lyon - France
10 research@grame.fr
11*/
12
13#ifndef __reader__
14#define __reader__
15
16class reader
17{
18 public:
19 reader() {}
20 virtual ~reader() {};
21
22 virtual bool xmlDecl (const char* version, const char *encoding, int standalone) = 0;
23 virtual bool docType (const char* start, bool status, const char *pub, const char *sys) = 0;
24
25 virtual void newComment (const char* comment) {}
26 virtual void newProcessingInstruction (const char* pi) {}
27 virtual bool newElement (const char* eltName) = 0;
28 virtual bool newAttribute (const char* eltName, const char *val) = 0;
29 virtual void setValue (const char* value) = 0;
30 virtual bool endElement (const char* eltName) = 0;
31 virtual void error (const char* s, int lineno) = 0;
32};
33
34
35#endif