PUGIXML_DOMDocument.h
Go to the documentation of this file.
1 /* -*- C++ -*- */
2 
3 /****************************************************************************
4 ** Copyright (c) 2001-2014
5 **
6 ** This file is part of the QuickFIX FIX Engine
7 **
8 ** This file may be distributed under the terms of the quickfixengine.org
9 ** license as defined by quickfixengine.org and appearing in the file
10 ** LICENSE included in the packaging of this file.
11 **
12 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
13 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
14 **
15 ** See http://www.quickfixengine.org/LICENSE for licensing information.
16 **
17 ** Contact ask@quickfixengine.org if any conditions of this licensing are
18 ** not clear to you.
19 **
20 ****************************************************************************/
21 
22 #ifndef FIX_PUGIXMLDOMDOCUMENT_H
23 #define FIX_PUGIXMLDOMDOCUMENT_H
24 
25 #include "DOMDocument.h"
26 #include "Exceptions.h"
27 #include "pugixml.hpp"
28 
29 namespace FIX
30 {
33  {
34  public:
35  PUGIXML_DOMAttributes( pugi::xml_node pNode )
36  : m_pNode(pNode) {}
37 
38  bool get( const std::string&, std::string& );
40 
41  private:
42  pugi::xml_node m_pNode;
43  };
44 
46  class PUGIXML_DOMNode : public DOMNode
47  {
48  public:
49  PUGIXML_DOMNode( pugi::xml_node pNode )
50  : m_pNode(pNode) {}
52 
56  std::string getName();
57  std::string getText();
58 
59  private:
60  pugi::xml_node m_pNode;
61  };
62 
65  {
66  public:
69 
70  bool load( std::istream& );
71  bool load( const std::string& );
72  bool xml( std::ostream& );
73 
74  DOMNodePtr getNode( const std::string& );
75 
76  private:
77  pugi::xml_document m_pDoc;
78  };
79 }
80 
81 #endif
Interface that represents attribute from underlying XML parser.
Definition: DOMDocument.h:36
std::map< std::string, std::string > map
Definition: DOMDocument.h:38
Interface that represents document of underlying XML parser.
Definition: DOMDocument.h:63
Interface that represents node from underlying XML parser.
Definition: DOMDocument.h:49
XML attribute as represented by pugixml.
bool get(const std::string &, std::string &)
PUGIXML_DOMAttributes(pugi::xml_node pNode)
XML document as represented by pugixml.
DOMNodePtr getNode(const std::string &)
XML node as represented by pugixml.
DOMAttributesPtr getAttributes()
PUGIXML_DOMNode(pugi::xml_node pNode)
Definition: Acceptor.cpp:35
SmartPtr< DOMAttributes > DOMAttributesPtr
Definition: DOMDocument.h:45
SmartPtr< DOMNode > DOMNodePtr
Definition: DOMDocument.h:59
Application is not configured correctly
Definition: Exceptions.h:88

Generated on Wed Nov 24 2021 09:55:53 for QuickFIX by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2001