FIX::PUGIXML_DOMAttributes Class Reference

XML attribute as represented by pugixml. More...

#include <PUGIXML_DOMDocument.h>

Inheritance diagram for FIX::PUGIXML_DOMAttributes:
Collaboration diagram for FIX::PUGIXML_DOMAttributes:

Public Member Functions

 PUGIXML_DOMAttributes (pugi::xml_node pNode)
bool get (const std::string &, std::string &)
DOMAttributes::map toMap ()
Public Member Functions inherited from FIX::DOMAttributes
virtual ~DOMAttributes ()

Private Attributes

pugi::xml_node m_pNode

Additional Inherited Members

Public Types inherited from FIX::DOMAttributes
typedef std::map< std::string, std::string > map

Detailed Description

XML attribute as represented by pugixml.

Definition at line 32 of file PUGIXML_DOMDocument.h.

Constructor & Destructor Documentation

◆ PUGIXML_DOMAttributes()

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

Definition at line 35 of file PUGIXML_DOMDocument.h.

36 : m_pNode(pNode) {}

References m_pNode.

Member Function Documentation

◆ get()

bool FIX::PUGIXML_DOMAttributes::get ( const std::string & name,
std::string & value )
virtual

Implements FIX::DOMAttributes.

Definition at line 31 of file PUGIXML_DOMDocument.cpp.

32 {
33 pugi::xml_attribute result = m_pNode.attribute(name.c_str());
34 if( !result ) return false;
35 value = result.value();
36 return true;
37 }

References m_pNode.

◆ toMap()

DOMAttributes::map FIX::PUGIXML_DOMAttributes::toMap ( )
virtual

Implements FIX::DOMAttributes.

Definition at line 39 of file PUGIXML_DOMDocument.cpp.

40 {
41 return DOMAttributes::map();
42 }
std::map< std::string, std::string > map
Definition DOMDocument.h:38

Member Data Documentation

◆ m_pNode

pugi::xml_node FIX::PUGIXML_DOMAttributes::m_pNode
private

Definition at line 42 of file PUGIXML_DOMDocument.h.

Referenced by get(), and PUGIXML_DOMAttributes().


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

Generated on for QuickFIX by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2001