From 334efe3383c436d61a8e5dd95b923cb0d5db9652 Mon Sep 17 00:00:00 2001 From: Adrian Kummerländer Date: Sat, 19 Apr 2014 15:01:33 +0200 Subject: Further code style fixes * .. in the face of the planned development of usable external functions using the current proof-of-concept coding * replaced usage of std::shared_ptr in FunctionReadXmlFile class with explicit implementation of default and copy constructor * separated implementation and interfaces --- src/function/read_xml_file.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src/function/read_xml_file.h (limited to 'src/function/read_xml_file.h') diff --git a/src/function/read_xml_file.h b/src/function/read_xml_file.h new file mode 100644 index 0000000..1556764 --- /dev/null +++ b/src/function/read_xml_file.h @@ -0,0 +1,42 @@ +#ifndef INPUTXSLT_SRC_FUNCTION_READ_XML_FILE_H_ +#define INPUTXSLT_SRC_FUNCTION_READ_XML_FILE_H_ + +#include +#include +#include +#include +#include +#include +#include + +#include "utility.h" + +namespace InputXSLT { + +class FunctionReadXmlFile : public xalan::Function { + public: + FunctionReadXmlFile(); + FunctionReadXmlFile(const FunctionReadXmlFile&); + + virtual xalan::XObjectPtr execute( + xalan::XPathExecutionContext& executionContext, + xalan::XalanNode* context, + const xalan::Function::XObjectArgVectorType& arguments, + const xalan::Locator* locator + ) const; + + virtual FunctionReadXmlFile* clone(xalan::MemoryManager&) const; + + FunctionReadXmlFile& operator=(const FunctionReadXmlFile&) = delete; + bool operator==(const FunctionReadXmlFile&) const = delete; + + private: + mutable xalan::XercesParserLiaison parser_; + + const xalan::XalanDOMString& getError(xalan::XalanDOMString& result) const; + +}; + +} + +#endif // INPUTXSLT_SRC_FUNCTION_READ_XML_FILE_H_ -- cgit v1.2.3