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

XML node as represented by pugixml. More...

#include <PUGIXML_DOMDocument.h>

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

Public Member Functions

 PUGIXML_DOMNode (pugi::xml_node pNode)
 
 ~PUGIXML_DOMNode ()
 
DOMNodePtr getFirstChildNode ()
 
DOMNodePtr getNextSiblingNode ()
 
DOMAttributesPtr getAttributes ()
 
std::string getName ()
 
std::string getText ()
 
- Public Member Functions inherited from FIX::DOMNode
virtual ~DOMNode ()
 

Private Attributes

pugi::xml_node m_pNode
 

Detailed Description

XML node as represented by pugixml.

Definition at line 46 of file PUGIXML_DOMDocument.h.

Constructor & Destructor Documentation

◆ PUGIXML_DOMNode()

FIX::PUGIXML_DOMNode::PUGIXML_DOMNode ( pugi::xml_node  pNode)
inline

Definition at line 49 of file PUGIXML_DOMDocument.h.

50  : m_pNode(pNode) {}

◆ ~PUGIXML_DOMNode()

FIX::PUGIXML_DOMNode::~PUGIXML_DOMNode ( )
inline

Definition at line 51 of file PUGIXML_DOMDocument.h.

51 {}

Member Function Documentation

◆ getAttributes()

DOMAttributesPtr FIX::PUGIXML_DOMNode::getAttributes ( )
virtual

Implements FIX::DOMNode.

Definition at line 58 of file PUGIXML_DOMDocument.cpp.

References FIX::PUGIXML_DOMAttributes::m_pNode, and FIX::PUGIXML_DOMAttributes::PUGIXML_DOMAttributes().

59  {
60  return DOMAttributesPtr(new PUGIXML_DOMAttributes(m_pNode));
61  }
SmartPtr< DOMAttributes > DOMAttributesPtr
Definition: DOMDocument.h:45

◆ getFirstChildNode()

DOMNodePtr FIX::PUGIXML_DOMNode::getFirstChildNode ( )
virtual

Implements FIX::DOMNode.

Definition at line 44 of file PUGIXML_DOMDocument.cpp.

References FIX::PUGIXML_DOMAttributes::m_pNode.

45  {
46  pugi::xml_node pNode = m_pNode.first_child();
47  if( !pNode ) return DOMNodePtr();
48  return DOMNodePtr(new PUGIXML_DOMNode(pNode));
49  }
PUGIXML_DOMNode(pugi::xml_node pNode)
SmartPtr< DOMNode > DOMNodePtr
Definition: DOMDocument.h:59

◆ getName()

std::string FIX::PUGIXML_DOMNode::getName ( )
virtual

Implements FIX::DOMNode.

Definition at line 63 of file PUGIXML_DOMDocument.cpp.

References FIX::PUGIXML_DOMAttributes::m_pNode.

64  {
65  return m_pNode.name();
66  }

◆ getNextSiblingNode()

DOMNodePtr FIX::PUGIXML_DOMNode::getNextSiblingNode ( )
virtual

Implements FIX::DOMNode.

Definition at line 51 of file PUGIXML_DOMDocument.cpp.

References FIX::PUGIXML_DOMAttributes::m_pNode.

52  {
53  pugi::xml_node pNode = m_pNode.next_sibling();
54  if( !pNode ) return DOMNodePtr();
55  return DOMNodePtr(new PUGIXML_DOMNode(pNode));
56  }
PUGIXML_DOMNode(pugi::xml_node pNode)
SmartPtr< DOMNode > DOMNodePtr
Definition: DOMDocument.h:59

◆ getText()

std::string FIX::PUGIXML_DOMNode::getText ( )
virtual

Implements FIX::DOMNode.

Definition at line 68 of file PUGIXML_DOMDocument.cpp.

References FIX::PUGIXML_DOMAttributes::m_pNode.

69  {
70  return m_pNode.value();
71  }

Member Data Documentation

◆ m_pNode

pugi::xml_node FIX::PUGIXML_DOMNode::m_pNode
private

Definition at line 60 of file PUGIXML_DOMDocument.h.


The documentation for this class was generated from the following files:

Generated on Sun Apr 15 2018 21:44:06 for QuickFIX by doxygen 1.8.13 written by Dimitri van Heesch, © 1997-2001