fintp_base
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
XPathHelper.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 XPATHHELPER_H
22 #define XPATHHELPER_H
23 
24 #include "DllMain.h"
25 
26 #include <string>
27 
28 #include <xalanc/Include/PlatformDefinitions.hpp>
29 #include <xercesc/util/PlatformUtils.hpp>
30 #include <xercesc/framework/LocalFileInputSource.hpp>
31 
32 #include <xalanc/XPath/XPathConstructionContextDefault.hpp>
33 #include <xalanc/XPath/XPathExecutionContextDefault.hpp>
34 #include <xalanc/XPath/XPathEvaluator.hpp>
35 #include <xalanc/DOMSupport/XalanDocumentPrefixResolver.hpp>
36 
37 #include <xalanc/XPath/XPathFactoryDefault.hpp>
38 #include <xalanc/XPath/XObjectFactory.hpp>
39 #include <xalanc/XPath/XObject.hpp>
40 
41 #include <xalanc/DOMSupport/XalanDocumentPrefixResolver.hpp>
42 
43 #include <xalanc/PlatformSupport/XSLException.hpp>
44 #include <xalanc/XPath/NodeRefList.hpp>
45 #include <xalanc/XalanDOM/XalanDOMString.hpp>
46 #include <xalanc/XalanSourceTree/XalanSourceTreeDOMSupport.hpp>
47 #include <xalanc/XalanSourceTree/XalanSourceTreeInit.hpp>
48 #include <xalanc/XalanSourceTree/XalanSourceTreeParserLiaison.hpp>
49 
50 using namespace std;
51 
52 namespace FinTP
53 {
55  {
56  private :
57 
58  //XALAN_CPP_NAMESPACE_QUALIFIER XPathEvaluator m_Evaluator;
59  //XALAN_CPP_NAMESPACE_QUALIFIER XalanSourceTreeDOMSupport m_DOMSupport;
60  //XALAN_CPP_NAMESPACE_QUALIFIER XalanSourceTreeParserLiaison m_Liaison;
61 
62  XPathHelper();
63 
64  public :
65 
66  ~XPathHelper();
67 
68  //evaluate function
69  static XALAN_CPP_NAMESPACE_QUALIFIER XalanNode* const Evaluate( const string& xPath, XALAN_CPP_NAMESPACE_QUALIFIER XalanDocument* doc, const string& defaultPrefix = "" );
70  static XALAN_CPP_NAMESPACE_QUALIFIER NodeRefList const EvaluateNodes( const string& xPath, XALAN_CPP_NAMESPACE_QUALIFIER XalanDocument* doc, const string& defaultPrefix = "" );
71 
72  static string SerializeToString( XALAN_CPP_NAMESPACE_QUALIFIER XalanNode* refNode );
73  //static string SerializeToString2( XALAN_CPP_NAMESPACE_QUALIFIER XalanNode* crtNode );
74  static string SerializeToString( XALAN_CPP_NAMESPACE_QUALIFIER XalanDOMString refString );
75  };
76 }
77 
78 #endif // XPATHHELPER_H