diff options
author | Adrian Kummerlaender | 2014-06-26 20:26:32 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2014-06-26 20:26:32 +0200 |
commit | 266b408ee53b9bc7db2b1a5c92e62adfd2af6def (patch) | |
tree | b84551406742ba892824a5770ae8fb8ec3a6a510 /src/function/write_file.h | |
parent | 7b872121000d4db4026d0c90fcb95a10f1e43694 (diff) | |
download | InputXSLT-266b408ee53b9bc7db2b1a5c92e62adfd2af6def.tar InputXSLT-266b408ee53b9bc7db2b1a5c92e62adfd2af6def.tar.gz InputXSLT-266b408ee53b9bc7db2b1a5c92e62adfd2af6def.tar.bz2 InputXSLT-266b408ee53b9bc7db2b1a5c92e62adfd2af6def.tar.lz InputXSLT-266b408ee53b9bc7db2b1a5c92e62adfd2af6def.tar.xz InputXSLT-266b408ee53b9bc7db2b1a5c92e62adfd2af6def.tar.zst InputXSLT-266b408ee53b9bc7db2b1a5c92e62adfd2af6def.zip |
Implemented basic external "write-file" function
* accepts a path parameter and the content to be written
* removed target parameter form FunctionTransform
** transformation result is now returned as a string
*** nodeset return value is planned
** e.g. writing the result to the fs is optional and has to be achieved using FunctionWriteFile
* changed "transform" test case accordingly
* this marks a paradigm shift and is the continuation of the changes described in 741a70f
** InputXSLT now also implements a output function
* added basic io error handling to FunctionReadFile
Diffstat (limited to 'src/function/write_file.h')
-rw-r--r-- | src/function/write_file.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/function/write_file.h b/src/function/write_file.h new file mode 100644 index 0000000..2260055 --- /dev/null +++ b/src/function/write_file.h @@ -0,0 +1,28 @@ +#ifndef INPUTXSLT_SRC_FUNCTION_WRITE_FILE_H_ +#define INPUTXSLT_SRC_FUNCTION_WRITE_FILE_H_ + +#include "base.h" + +namespace InputXSLT { + +class FunctionWriteFile : public FunctionBase< + FunctionWriteFile, + boost::filesystem::path, + std::string +> { + public: + using FunctionBase::FunctionBase; + + protected: + friend FunctionBase; + + xercesc::DOMDocument* constructDocument( + boost::filesystem::path, + std::string + ); + +}; + +} + +#endif // INPUTXSLT_SRC_FUNCTION_WRITE_FILE_H_ |