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

XML attribute as represented by pugixml. More...

#include <PUGIXML_DOMDocument.h>

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

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.

References toMap().

Referenced by FIX::PUGIXML_DOMNode::getAttributes().

36  : m_pNode(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.

References m_pNode.

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  }

◆ toMap()

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

Implements FIX::DOMAttributes.

Definition at line 39 of file PUGIXML_DOMDocument.cpp.

Referenced by PUGIXML_DOMAttributes().

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

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