add Xerces-C++ dependency v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Thu, 10 Jan 2019 20:05:13 +0100
branchv_0
changeset 1 9aed8c2ea97d
parent 0 751260846c40
child 2 3ab78bf63467
add Xerces-C++ dependency
src/CMakeLists.txt
src/XMLCommand.h
--- a/src/CMakeLists.txt	Thu Jan 10 19:50:21 2019 +0100
+++ b/src/CMakeLists.txt	Thu Jan 10 20:05:13 2019 +0100
@@ -18,7 +18,7 @@
 
 # Relpipe libraries:
 INCLUDE(FindPkgConfig)
-pkg_check_modules (RELPIPE_LIBS relpipe-lib-writer.cpp relpipe-lib-cli.cpp)
+pkg_check_modules (RELPIPE_LIBS relpipe-lib-writer.cpp relpipe-lib-cli.cpp xerces-c)
 include_directories(${RELPIPE_LIBS_INCLUDE_DIRS})
 link_directories(${RELPIPE_LIBS_LIBRARY_DIRS})
 
--- a/src/XMLCommand.h	Thu Jan 10 19:50:21 2019 +0100
+++ b/src/XMLCommand.h	Thu Jan 10 20:05:13 2019 +0100
@@ -23,6 +23,11 @@
 #include <vector>
 #include <algorithm>
 
+#include <xercesc/sax2/SAX2XMLReader.hpp>
+#include <xercesc/sax2/XMLReaderFactory.hpp>
+#include <xercesc/sax2/DefaultHandler.hpp>
+#include <xercesc/util/XMLString.hpp>
+
 #include <relpipe/writer/typedefs.h>
 
 namespace relpipe {
@@ -34,6 +39,7 @@
 
 	void process(std::istream& input, std::ostream& output) {
 		using namespace relpipe::writer;
+		using namespace xercesc;
 		std::shared_ptr<RelationalWriter> writer(Factory::create(output));
 
 		// TODO: remove demo