Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
radial_menu_model::XmlElement Class Reference

#include <xml_element.hpp>

Public Member Functions

template<typename T >
attribute (const std::string &key, const T &default_val) const
 
std::vector< XmlElementConstPtrchildElements () const
 
template<typename T >
bool getAttribute (const std::string &key, T *const val) const
 
const std::string & name () const
 
std::size_t numChildElements () const
 
virtual ~XmlElement ()
 

Static Public Member Functions

static XmlElementConstPtr fromString (const std::string &str)
 

Protected Member Functions

 XmlElement (const std::shared_ptr< const boost::property_tree::ptree > &xml, const boost::property_tree::ptree::value_type *const elm)
 

Protected Attributes

const boost::property_tree::ptree::value_type *const elm_
 
const std::shared_ptr< const boost::property_tree::ptree > xml_
 

Detailed Description

Definition at line 22 of file xml_element.hpp.

Constructor & Destructor Documentation

◆ XmlElement()

radial_menu_model::XmlElement::XmlElement ( const std::shared_ptr< const boost::property_tree::ptree > &  xml,
const boost::property_tree::ptree::value_type *const  elm 
)
inlineprotected

Definition at line 24 of file xml_element.hpp.

◆ ~XmlElement()

virtual radial_menu_model::XmlElement::~XmlElement ( )
inlinevirtual

Definition at line 29 of file xml_element.hpp.

Member Function Documentation

◆ attribute()

template<typename T >
T radial_menu_model::XmlElement::attribute ( const std::string &  key,
const T &  default_val 
) const
inline

Definition at line 35 of file xml_element.hpp.

◆ childElements()

std::vector< XmlElementConstPtr > radial_menu_model::XmlElement::childElements ( ) const
inline

Definition at line 59 of file xml_element.hpp.

◆ fromString()

static XmlElementConstPtr radial_menu_model::XmlElement::fromString ( const std::string &  str)
inlinestatic

Definition at line 69 of file xml_element.hpp.

◆ getAttribute()

template<typename T >
bool radial_menu_model::XmlElement::getAttribute ( const std::string &  key,
T *const  val 
) const
inline

Definition at line 40 of file xml_element.hpp.

◆ name()

const std::string& radial_menu_model::XmlElement::name ( ) const
inline

Definition at line 32 of file xml_element.hpp.

◆ numChildElements()

std::size_t radial_menu_model::XmlElement::numChildElements ( ) const
inline

Definition at line 49 of file xml_element.hpp.

Member Data Documentation

◆ elm_

const boost::property_tree::ptree::value_type* const radial_menu_model::XmlElement::elm_
protected

Definition at line 97 of file xml_element.hpp.

◆ xml_

const std::shared_ptr< const boost::property_tree::ptree > radial_menu_model::XmlElement::xml_
protected

Definition at line 96 of file xml_element.hpp.


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


radial_menu_model
Author(s):
autogenerated on Mon Feb 28 2022 23:22:00