Public Member Functions | Private Attributes | List of all members
FIX::PUGIXML_DOMDocument Class Reference

XML document as represented by pugixml. More...

#include <PUGIXML_DOMDocument.h>

Inheritance diagram for FIX::PUGIXML_DOMDocument:
Inheritance graph
[legend]
Collaboration diagram for FIX::PUGIXML_DOMDocument:
Collaboration graph
[legend]

Public Member Functions

 PUGIXML_DOMDocument () throw ( ConfigError )
 
 ~PUGIXML_DOMDocument ()
 
bool load (std::istream &)
 
bool load (const std::string &)
 
bool xml (std::ostream &)
 
DOMNodePtr getNode (const std::string &)
 
- Public Member Functions inherited from FIX::DOMDocument
virtual ~DOMDocument ()
 

Private Attributes

pugi::xml_document m_pDoc
 

Detailed Description

XML document as represented by pugixml.

Definition at line 79 of file PUGIXML_DOMDocument.h.

Constructor & Destructor Documentation

◆ PUGIXML_DOMDocument()

FIX::PUGIXML_DOMDocument::PUGIXML_DOMDocument ( )
throw (ConfigError
)

Definition at line 88 of file PUGIXML_DOMDocument.cpp.

88  { return false; }
89  }
90 

◆ ~PUGIXML_DOMDocument()

FIX::PUGIXML_DOMDocument::~PUGIXML_DOMDocument ( )

Definition at line 92 of file PUGIXML_DOMDocument.cpp.

92  {
93  try
94  {
95  return m_pDoc.load_file(url.c_str());

References m_pDoc.

Member Function Documentation

◆ getNode()

DOMNodePtr FIX::PUGIXML_DOMDocument::getNode ( const std::string &  XPath)
virtual

Implements FIX::DOMDocument.

Definition at line 120 of file PUGIXML_DOMDocument.cpp.

◆ load() [1/2]

bool FIX::PUGIXML_DOMDocument::load ( const std::string &  url)
virtual

Implements FIX::DOMDocument.

Definition at line 106 of file PUGIXML_DOMDocument.cpp.

106  {
107  pugi::xpath_node result = m_pDoc.select_single_node(XPath.c_str());
108  if( !result ) return DOMNodePtr();
109 
110  return DOMNodePtr(new PUGIXML_DOMNode(result.node()));
111  }
112 }

References m_pDoc.

◆ load() [2/2]

bool FIX::PUGIXML_DOMDocument::load ( std::istream &  stream)
virtual

Implements FIX::DOMDocument.

Definition at line 97 of file PUGIXML_DOMDocument.cpp.

97  { return false; }
98  }
99 
100  bool PUGIXML_DOMDocument::xml( std::ostream& out )
101  {
102  return false;
103  }
104 

◆ xml()

bool FIX::PUGIXML_DOMDocument::xml ( std::ostream &  out)
virtual

Implements FIX::DOMDocument.

Definition at line 115 of file PUGIXML_DOMDocument.cpp.

Member Data Documentation

◆ m_pDoc

pugi::xml_document FIX::PUGIXML_DOMDocument::m_pDoc
private

Definition at line 92 of file PUGIXML_DOMDocument.h.

Referenced by FIX::PUGIXML_DOMNode::getText(), load(), and ~PUGIXML_DOMDocument().


The documentation for this class was generated from the following files:
FIX::PUGIXML_DOMDocument::xml
bool xml(std::ostream &)
Definition: PUGIXML_DOMDocument.cpp:115
FIX::DOMNodePtr
SmartPtr< DOMNode > DOMNodePtr
Definition: DOMDocument.h:59
FIX::PUGIXML_DOMDocument::m_pDoc
pugi::xml_document m_pDoc
Definition: PUGIXML_DOMDocument.h:92

Generated on Thu Apr 23 2020 04:32:03 for QuickFIX by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2001