equal
deleted
inserted
replaced
25 |
25 |
26 class XMLContentHandler { |
26 class XMLContentHandler { |
27 public: |
27 public: |
28 |
28 |
29 virtual ~XMLContentHandler() = default; |
29 virtual ~XMLContentHandler() = default; |
|
30 |
|
31 /** |
|
32 * @param uri identifier of the option |
|
33 * @param value value of the option |
|
34 * @return whether this option is supported and was applied here |
|
35 */ |
|
36 virtual bool setOption(const std::string& uri, const std::string& value) { |
|
37 return false; |
|
38 } |
30 |
39 |
31 // FIXME: namespaces, check names |
40 // FIXME: namespaces, check names |
32 |
41 |
33 virtual void writeStartElement(const std::string& name, const std::vector<std::string>& attributes = {}) = 0; |
42 virtual void writeStartElement(const std::string& name, const std::vector<std::string>& attributes = {}) = 0; |
34 virtual void writeEndElement() = 0; |
43 virtual void writeEndElement() = 0; |