--- a/src/XMLDocumentConstructor.h Sun Mar 07 17:50:11 2021 +0100
+++ b/src/XMLDocumentConstructor.h Sat Mar 13 17:58:09 2021 +0100
@@ -16,12 +16,16 @@
*/
#pragma once
+#include <libxml++-2.6/libxml++/libxml++.h>
+
+#include "lib/BasicASN1Reader.h"
+#include "lib/GenericASN1ContentHandler.h"
+#include "lib/DOMBuildingSAXContentHandler.h"
+
namespace relpipe {
namespace in {
namespace xmltable {
-#include <libxml++-2.6/libxml++/libxml++.h>
-
class XMLDocumentConstructor {
private:
std::istream* input = nullptr;
@@ -30,11 +34,15 @@
XMLDocumentConstructor(std::istream* input, xmlpp::DomParser* parser) : input(input), parser(parser) {
}
-
+
void setOption(const std::string& uri, const std::string& value) {
}
void process() {
+
+ relpipe::in::asn1::lib::BasicASN1Reader reader;
+ reader.write(nullptr, 0); // FIXME: transfer data from input to reader + use DOMBuildingSAXContentHandler
+
parser->parse_stream(*input);
}
};