equal
deleted
inserted
replaced
18 |
18 |
19 #include <string> |
19 #include <string> |
20 #include <istream> |
20 #include <istream> |
21 |
21 |
22 #include "INIContentHandler.h" |
22 #include "INIContentHandler.h" |
|
23 #include "UnescapingProcessor.h" |
23 |
24 |
24 namespace relpipe { |
25 namespace relpipe { |
25 namespace in { |
26 namespace in { |
26 namespace ini { |
27 namespace ini { |
27 namespace lib { |
28 namespace lib { |
43 * TODO: after moving to alt2xml: |
44 * TODO: after moving to alt2xml: |
44 * - this will be generic handler for SAX event |
45 * - this will be generic handler for SAX event |
45 * - but both sides will know the schema (allowed elements and attributes for INI events) |
46 * - but both sides will know the schema (allowed elements and attributes for INI events) |
46 */ |
47 */ |
47 virtual void addHandler(INIContentHandler* handler) = 0; |
48 virtual void addHandler(INIContentHandler* handler) = 0; |
|
49 virtual void addUnescapingProcessor(std::shared_ptr<UnescapingProcessor> processor, const std::string uri, bool enabledByDefault) = 0; |
48 virtual void process() = 0; |
50 virtual void process() = 0; |
49 static INIReader* create(std::istream& input); |
51 static INIReader* create(std::istream& input); |
50 }; |
52 }; |
51 |
53 |
52 } |
54 } |