fintp_base
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ExtensionNewLine.h
Go to the documentation of this file.
1 /*
2 * FinTP - Financial Transactions Processing Application
3 * Copyright (C) 2013 Business Information Systems (Allevo) S.R.L.
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>
17 * or contact Allevo at : 031281 Bucuresti, 23C Calea Vitan, Romania,
18 * phone +40212554577, office@allevo.ro <mailto:office@allevo.ro>, www.allevo.ro.
19 */
20 
21 #ifndef EXTENSIONNEWLINE_H
22 #define EXTENSIONNEWLINE_H
23 
24 #include <xalanc/Include/PlatformDefinitions.hpp>
25 #include <xalanc/XPath/Function.hpp>
26 #include <xercesc/util/PlatformUtils.hpp>
27 #include <xalanc/XalanTransformer/XalanTransformer.hpp>
28 #include <xalanc/XPath/XObjectFactory.hpp>
29 
30 #include "../DllMain.h"
31 
32 XALAN_USING_XALAN(Function)
33 XALAN_USING_XALAN(XPathExecutionContext)
34 XALAN_USING_XALAN(XalanDOMString)
35 XALAN_USING_XALAN(XalanNode)
36 //XALAN_USING_XALAN(StaticStringToDOMString)
37 XALAN_USING_XALAN(XObjectPtr)
38 
39 #ifdef XALAN_1_9
40 XALAN_USING_XALAN(MemoryManagerType)
41 #endif
42 
43 namespace FinTP
44 {
45  class ExportedObject FunctionReplace : public Function
46  {
47  public:
48  virtual XObjectPtr execute( XPathExecutionContext& executionContext, XalanNode* context, const XObjectArgVectorType& args,const LocatorType* locator ) const;
49 
50  #ifdef XALAN_1_9
51  #if defined( XALAN_NO_COVARIANT_RETURN_TYPE )
52  virtual Function* clone( MemoryManagerType& theManager ) const;
53  #else
54  virtual FunctionReplace* clone( MemoryManagerType& theManager ) const;
55  #endif
56  protected:
57  const XalanDOMString& getError( XalanDOMString& theResult ) const;
58  #else
59  #if defined( XALAN_NO_COVARIANT_RETURN_TYPE )
60  virtual Function* clone() const;
61  #else
62  virtual FunctionReplace* clone() const;
63  #endif
64  protected:
65  const XalanDOMString getError() const;
66  #endif
67 
68  private:
69  // The assignment and equality operators are not implemented...
70  FunctionReplace& operator=( const FunctionReplace& );
71  bool operator==( const FunctionReplace& ) const;
72  };
73 }
74 
75 #endif // EXTENSIONNEWLINE_H