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.

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

References m_pNode.

◆ getFirstChildNode()

DOMNodePtr FIX::PUGIXML_DOMNode::getFirstChildNode ( )
virtual

Implements FIX::DOMNode.

Definition at line 44 of file PUGIXML_DOMDocument.cpp.

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

References m_pNode.

◆ getName()

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

Implements FIX::DOMNode.

Definition at line 63 of file PUGIXML_DOMDocument.cpp.

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

References m_pNode.

◆ getNextSiblingNode()

DOMNodePtr FIX::PUGIXML_DOMNode::getNextSiblingNode ( )
virtual

Implements FIX::DOMNode.

Definition at line 51 of file PUGIXML_DOMDocument.cpp.

52 {
53 pugi::xml_node pNode = m_pNode.next_sibling();
54 if( !pNode ) return DOMNodePtr();
55 return DOMNodePtr(new PUGIXML_DOMNode(pNode));
56 }

References m_pNode.

◆ getText()

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

Implements FIX::DOMNode.

Definition at line 68 of file PUGIXML_DOMDocument.cpp.

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

References m_pNode.

Member Data Documentation

◆ m_pNode

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

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

Generated on Thu Feb 29 2024 22:38:19 for QuickFIX by doxygen 1.9.8 written by Dimitri van Heesch, © 1997-2001