00001 /* 00002 * Licensed to the Apache Software Foundation (ASF) under one 00003 * or more contributor license agreements. See the NOTICE file 00004 * distributed with this work for additional information 00005 * regarding copyright ownership. The ASF licenses this file 00006 * to you under the Apache License, Version 2.0 (the "License"); 00007 * you may not use this file except in compliance with the License. 00008 * You may obtain a copy of the License at 00009 * 00010 * http://www.apache.org/licenses/LICENSE-2.0 00011 * 00012 * Unless required by applicable law or agreed to in writing, software 00013 * distributed under the License is distributed on an "AS IS" BASIS, 00014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00015 * See the License for the specific language governing permissions and 00016 * limitations under the License. 00017 */ 00018 #if !defined(FUNCTIONDOCUMENT_HEADER_GUARD_1357924680) 00019 #define FUNCTIONDOCUMENT_HEADER_GUARD_1357924680 00020 00021 00022 00023 // Base header file. Must be first. 00024 #include <xalanc/XSLT/XSLTDefinitions.hpp> 00025 00026 00027 00028 #include <xalanc/XPath/Function.hpp> 00029 00030 00031 00032 XALAN_CPP_NAMESPACE_BEGIN 00033 00034 00035 00036 // Implementation of the XSLT function document(). 00037 // 00038 class XALAN_XSLT_EXPORT FunctionDocument : public Function 00039 { 00040 public: 00041 00042 typedef Function ParentType; 00043 00044 FunctionDocument(); 00045 00046 virtual 00047 ~FunctionDocument(); 00048 00049 // These methods are inherited from Function ... 00050 00051 virtual XObjectPtr 00052 execute( 00053 XPathExecutionContext& executionContext, 00054 XalanNode* context, 00055 const XObjectPtr arg, 00056 const Locator* locator) const; 00057 00058 virtual XObjectPtr 00059 execute( 00060 XPathExecutionContext& executionContext, 00061 XalanNode* context, 00062 const XObjectPtr arg1, 00063 const XObjectPtr arg2, 00064 const Locator* locator) const; 00065 00066 using ParentType::execute; 00067 00068 #if defined(XALAN_NO_COVARIANT_RETURN_TYPE) 00069 virtual Function* 00070 #else 00071 virtual FunctionDocument* 00072 #endif 00073 clone(MemoryManager& theManager) const; 00074 00075 protected: 00076 00077 virtual const XalanDOMString& 00078 getError(XalanDOMString& theResult) const; 00079 00080 private: 00081 00082 XObjectPtr 00083 doExecute( 00084 XPathExecutionContext& executionContext, 00085 XalanNode* context, 00086 const XObjectPtr& arg, 00087 XalanDOMString* base, 00088 int argCount, 00089 const Locator* locator, 00090 bool fNoRelativeURI = false) const; 00091 00092 // Not implemented... 00093 FunctionDocument& 00094 operator=(const FunctionDocument&); 00095 00096 bool 00097 operator==(const FunctionDocument&) const; 00098 }; 00099 00100 00101 00102 XALAN_CPP_NAMESPACE_END 00103 00104 00105 00106 #endif // FUNCTIONDOCUMENT_HEADER_GUARD_1357924680
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|