MSXML_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_MSXMLDOMDOCUMENT_H
23 #define FIX_MSXMLDOMDOCUMENT_H
24 
25 #ifdef _MSC_VER
26 #pragma warning( disable : 4503 4355 4786 4290 )
27 #endif
28 
29 #include "DOMDocument.h"
30 #include "Exceptions.h"
31 
32 namespace FIX
33 {
36  {
37  public:
38  MSXML_DOMAttributes( MSXML2::IXMLDOMNode* pNode )
39  {
40  pNode->get_attributes(&m_pNodeMap);
41  }
42 
44 
45  bool get( const std::string&, std::string& );
47 
48  private:
49  MSXML2::IXMLDOMNamedNodeMap* m_pNodeMap;
50  };
51 
53  class MSXML_DOMNode : public DOMNode
54  {
55  public:
56  MSXML_DOMNode( MSXML2::IXMLDOMNode* pNode )
57  : m_pNode( pNode ) {}
58 
60 
64  std::string getName();
65  std::string getText();
66 
67  private:
68  MSXML2::IXMLDOMNode* m_pNode;
69  };
70 
73  {
74  public:
75  MSXML_DOMDocument() throw( ConfigError );
77 
78  bool load( std::istream& );
79  bool load( const std::string& );
80  bool xml( std::ostream& );
81 
82  DOMNodePtr getNode( const std::string& );
83 
84  private:
85  MSXML2::IXMLDOMDocument2* m_pDoc;
86  };
87 }
88 
89 #endif
std::string getText()
MSXML_DOMNode(MSXML2::IXMLDOMNode *pNode)
std::map< std::string, std::string > map
Definition: DOMDocument.h:36
std::auto_ptr< DOMAttributes > DOMAttributesPtr
Definition: DOMDocument.h:43
std::string getName()
MSXML2::IXMLDOMNamedNodeMap * m_pNodeMap
bool load(std::istream &)
DOMNodePtr getNode(const std::string &)
bool xml(std::ostream &)
DOMNodePtr getNextSiblingNode()
MSXML_DOMAttributes(MSXML2::IXMLDOMNode *pNode)
Application is not configured correctly
Definition: Exceptions.h:87
std::auto_ptr< DOMNode > DOMNodePtr
Definition: DOMDocument.h:57
Interface that represents attribute from underlying XML parser.
Definition: DOMDocument.h:33
DOMAttributes::map toMap()
MSXML2::IXMLDOMNode * m_pNode
DOMAttributesPtr getAttributes()
XML node as represented by msxml.
XML document as represented by msxml.
Interface that represents node from underlying XML parser.
Definition: DOMDocument.h:46
XML attribute as represented by msxml.
DOMNodePtr getFirstChildNode()
MSXML2::IXMLDOMDocument2 * m_pDoc
Interface that represents document of underlying XML parser.
Definition: DOMDocument.h:60

Generated on Sat Mar 29 2014 15:13:32 for QuickFIX by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2001