aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdrian Kummerländer2014-05-08 20:14:35 +0200
committerAdrian Kummerländer2014-05-08 20:14:35 +0200
commit209f0b2fd9310f503d4599b12483fddc04d1f7dd (patch)
tree6ef70e3d00871ecd122db6e3bce7db6e5477f1f9 /src
parent168537848c7317f81ba44d0986e6cd7da2afb976 (diff)
downloadInputXSLT-209f0b2fd9310f503d4599b12483fddc04d1f7dd.tar
InputXSLT-209f0b2fd9310f503d4599b12483fddc04d1f7dd.tar.gz
InputXSLT-209f0b2fd9310f503d4599b12483fddc04d1f7dd.tar.bz2
InputXSLT-209f0b2fd9310f503d4599b12483fddc04d1f7dd.tar.lz
InputXSLT-209f0b2fd9310f503d4599b12483fddc04d1f7dd.tar.xz
InputXSLT-209f0b2fd9310f503d4599b12483fddc04d1f7dd.tar.zst
InputXSLT-209f0b2fd9310f503d4599b12483fddc04d1f7dd.zip
Removed gtest based test cases and added program options
* selectively testing document construction in plain C++ code has turned out to be more work than worth it ** i.e. removed test cases and GTest dependency * added boost::program_options based frontent to InputXSLT ** example command: "./test --transformation ../dummy/transform.xsl --target out.xml" ** the plan is to use a simple shell script that generated test transformations and compares the output to reference files
Diffstat (limited to 'src')
-rw-r--r--src/function/read_directory.h3
-rw-r--r--src/function/read_file.h3
-rw-r--r--src/function/read_xml_file.h3
3 files changed, 9 insertions, 0 deletions
diff --git a/src/function/read_directory.h b/src/function/read_directory.h
index d34a80a..85e7f1b 100644
--- a/src/function/read_directory.h
+++ b/src/function/read_directory.h
@@ -9,6 +9,9 @@ class FunctionReadDirectory : public FunctionBase<FunctionReadDirectory> {
public:
using FunctionBase<FunctionReadDirectory>::FunctionBase;
+ protected:
+ friend FunctionBase;
+
xercesc::DOMDocument* constructDocument(
const FilesystemContext&,
const boost::filesystem::path&
diff --git a/src/function/read_file.h b/src/function/read_file.h
index b89263e..b581ee5 100644
--- a/src/function/read_file.h
+++ b/src/function/read_file.h
@@ -9,6 +9,9 @@ class FunctionReadFile : public FunctionBase<FunctionReadFile> {
public:
using FunctionBase<FunctionReadFile>::FunctionBase;
+ protected:
+ friend FunctionBase;
+
xercesc::DOMDocument* constructDocument(
const FilesystemContext&,
const boost::filesystem::path&
diff --git a/src/function/read_xml_file.h b/src/function/read_xml_file.h
index b1d165d..4aebe56 100644
--- a/src/function/read_xml_file.h
+++ b/src/function/read_xml_file.h
@@ -9,6 +9,9 @@ class FunctionReadXmlFile : public FunctionBase<FunctionReadXmlFile> {
public:
using FunctionBase<FunctionReadXmlFile>::FunctionBase;
+ protected:
+ friend FunctionBase;
+
xercesc::DOMDocument* constructDocument(
const FilesystemContext&,
const boost::filesystem::path&