--- a/src/lib/INIReader.h Thu Nov 26 18:52:49 2020 +0100
+++ b/src/lib/INIReader.h Fri Nov 27 16:29:12 2020 +0100
@@ -32,6 +32,18 @@
class INIReader {
public:
virtual ~INIReader() = default;
+ /**
+ * TODO: after moving to alt2xml:
+ * - option will be identified by globally unique URI/IRI
+ * - parsers will provide catalog of supported options (names, enum values, documentation)
+ * - options serves as both XML parser features and properties and are mapped to them
+ */
+ virtual void setOption(const std::string& uri, const std::string& value) = 0;
+ /**
+ * TODO: after moving to alt2xml:
+ * - this will be generic handler for SAX event
+ * - but both sides will know the schema (allowed elements and attributes for INI events)
+ */
virtual void addHandler(INIContentHandler* handler) = 0;
virtual void process() = 0;
static INIReader* create(std::istream& input);