XslFunctions.hpp 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*##############################################################################
  2. HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. ############################################################################## */
  13. #if !defined(__XSL_FUNCTIONS_HPP__)
  14. #define __XSL_FUNCTIONS_HPP__
  15. #if 0 //this is just a sample Xalan (XSLT) external function
  16. #include "deploy.hpp"
  17. // Base header file. Must be first.
  18. #include "XPath/XPathDefinitions.hpp"
  19. // Base class header file...
  20. #include "XPath/Function.hpp"
  21. /**
  22. * XPath implementation of a function.that either replaces
  23. * all \\ by / on linux systems or viceversa for windows
  24. */
  25. class DEPLOY_API FunctionSample : public Function
  26. {
  27. public:
  28. FunctionSample();
  29. virtual ~FunctionSample();
  30. // These methods are inherited from Function ...
  31. virtual XObjectPtr execute(
  32. XPathExecutionContext& executionContext,
  33. XalanNode* context,
  34. const XObjectPtr arg1,
  35. const XObjectPtr arg2,
  36. const Locator* locator) const;
  37. #if defined(XALAN_NO_COVARIANT_RETURN_TYPE)
  38. virtual Function* clone() const;
  39. #else
  40. virtual FunctionSample* clone() const;
  41. #endif
  42. protected:
  43. const XalanDOMString getError() const;
  44. private:
  45. // Not implemented...
  46. Function& operator=(const FunctionSample&);
  47. bool operator==(const FunctionSample&) const;
  48. };
  49. #endif //0
  50. #endif // __XSL_FUNCTIONS_HPP__