equal
deleted
inserted
replaced
18 |
18 |
19 #include <stdexcept> |
19 #include <stdexcept> |
20 #include <libxml++-2.6/libxml++/libxml++.h> |
20 #include <libxml++-2.6/libxml++/libxml++.h> |
21 |
21 |
22 #include "lib/INIReader.h" |
22 #include "lib/INIReader.h" |
|
23 #include "lib/BasicUnescapingINIHandler.h" |
23 #include "lib/XMLNameCodec.h" |
24 #include "lib/XMLNameCodec.h" |
|
25 |
|
26 using namespace relpipe::in::ini::lib; |
24 |
27 |
25 namespace relpipe { |
28 namespace relpipe { |
26 namespace in { |
29 namespace in { |
27 namespace xmltable { |
30 namespace xmltable { |
28 |
31 |
105 } |
108 } |
106 |
109 |
107 void process() { |
110 void process() { |
108 HierarchicalINIContentHandler handler(parser); |
111 HierarchicalINIContentHandler handler(parser); |
109 std::shared_ptr<INIReader> reader(INIReader::create(*input)); |
112 std::shared_ptr<INIReader> reader(INIReader::create(*input)); |
110 reader->addHandler(&handler); |
113 BasicUnescapingINIContentHandler unescapingHandler(handler, true); |
|
114 reader->addHandler(&unescapingHandler); |
111 reader->process(); |
115 reader->process(); |
112 } |
116 } |
113 }; |
117 }; |
114 |
118 |
115 } |
119 } |