link to libxml++ / libxml2 v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Wed, 30 Dec 2020 00:39:03 +0100
branchv_0
changeset 1 d6dbd5d50d43
parent 0 73e60c77be23
child 2 426054465916
link to libxml++ / libxml2
nbproject/configurations.xml
src/CMakeLists.txt
src/XPathHandler.h
--- a/nbproject/configurations.xml	Sun Dec 27 21:57:52 2020 +0100
+++ b/nbproject/configurations.xml	Wed Dec 30 00:39:03 2020 +0100
@@ -83,6 +83,15 @@
               <pElem>../relpipe-lib-writer.cpp/include</pElem>
               <pElem>../relpipe-lib-common.cpp/include</pElem>
               <pElem>../relpipe-lib-cli.cpp/include</pElem>
+              <pElem>/usr/include/libxml++-2.6</pElem>
+              <pElem>/usr/lib/x86_64-linux-gnu/libxml++-2.6/include</pElem>
+              <pElem>/usr/include/libxml2</pElem>
+              <pElem>/usr/include/glibmm-2.4</pElem>
+              <pElem>/usr/lib/x86_64-linux-gnu/glibmm-2.4/include</pElem>
+              <pElem>/usr/include/glib-2.0</pElem>
+              <pElem>/usr/lib/x86_64-linux-gnu/glib-2.0/include</pElem>
+              <pElem>/usr/include/sigc++-2.0</pElem>
+              <pElem>/usr/lib/x86_64-linux-gnu/sigc++-2.0/include</pElem>
               <pElem>build/Debug/src</pElem>
             </incDir>
           </ccTool>
--- a/src/CMakeLists.txt	Sun Dec 27 21:57:52 2020 +0100
+++ b/src/CMakeLists.txt	Wed Dec 30 00:39:03 2020 +0100
@@ -17,7 +17,7 @@
 
 # Relpipe libraries:
 INCLUDE(FindPkgConfig)
-pkg_check_modules (RELPIPE_LIBS relpipe-lib-reader.cpp relpipe-lib-writer.cpp relpipe-lib-cli.cpp)
+pkg_check_modules (RELPIPE_LIBS relpipe-lib-reader.cpp relpipe-lib-writer.cpp relpipe-lib-cli.cpp libxml++-2.6)
 include_directories(${RELPIPE_LIBS_INCLUDE_DIRS})
 link_directories(${RELPIPE_LIBS_LIBRARY_DIRS})
 
--- a/src/XPathHandler.h	Sun Dec 27 21:57:52 2020 +0100
+++ b/src/XPathHandler.h	Wed Dec 30 00:39:03 2020 +0100
@@ -22,6 +22,8 @@
 #include <codecvt>
 #include <regex>
 
+#include <libxml++-2.6/libxml++/libxml++.h>
+
 #include <relpipe/common/type/typedefs.h>
 #include <relpipe/reader/TypeId.h>
 #include <relpipe/reader/handlers/RelationalReaderStringHandler.h>
@@ -45,6 +47,8 @@
 	std::vector<relpipe::reader::handlers::AttributeMetadata> currentReaderMetadata;
 	std::vector<relpipe::writer::AttributeMetadata> currentWriterMetadata;
 	size_t currentAttributeIndex = 0;
+	
+	xmlpp::DomParser dom;
 
 	void copyInputAttributesToOutput() {
 		for (auto rm : currentReaderMetadata) currentWriterMetadata.push_back({rm.getAttributeName(), relationalWriter->toTypeId(rm.getTypeName())});