diff options
Diffstat (limited to 'src/function/read_directory.h')
-rw-r--r-- | src/function/read_directory.h | 35 |
1 files changed, 9 insertions, 26 deletions
diff --git a/src/function/read_directory.h b/src/function/read_directory.h index 02a0305..2c28642 100644 --- a/src/function/read_directory.h +++ b/src/function/read_directory.h @@ -1,38 +1,21 @@ #ifndef INPUTXSLT_SRC_FUNCTION_READ_DIRECTORY_H_ #define INPUTXSLT_SRC_FUNCTION_READ_DIRECTORY_H_ -#include <xalanc/XalanTransformer/XalanTransformer.hpp> -#include <xalanc/XPath/XObjectFactory.hpp> -#include <xalanc/XPath/Function.hpp> -#include <xalanc/XPath/XObject.hpp> - -#include <memory> - -#include "common.h" -#include "support/dom/document_cache.h" +#include "base.h" namespace InputXSLT { -class FunctionReadDirectory : public xalan::Function { +class FunctionReadDirectory : public FunctionBase<FunctionReadDirectory> { public: - FunctionReadDirectory(); - - virtual xalan::XObjectPtr execute( - xalan::XPathExecutionContext&, - xalan::XalanNode*, - const xalan::XObjectPtr, - const xalan::Locator* - ) const; - - virtual FunctionReadDirectory* clone(xalan::MemoryManager&) const; - - FunctionReadDirectory& operator=(const FunctionReadDirectory&) = delete; - bool operator==(const FunctionReadDirectory&) const = delete; + using FunctionBase<FunctionReadDirectory>::FunctionBase; - private: - std::shared_ptr<DomDocumentCache> document_cache_; + protected: + friend FunctionBase<FunctionReadDirectory>; - const xalan::XalanDOMString& getError(xalan::XalanDOMString&) const; + xercesc::DOMDocument* constructDocument( + const FilesystemContext&, + const boost::filesystem::path& + ); }; |