PandA-2024.02
|
#include <xml_attribute.hpp>
Public Types | |
using | attribute_list = std::list< xml_attribute * > |
Public Member Functions | |
void | print_attributes (std::ostream &os) const |
Print the class. More... | |
xml_attribute * | set_attribute (const std::string &name, const std::string &value) |
Set the value of the attribute with this name, and optionally with this namespace. More... | |
xml_attribute * | get_attribute (const std::string &name) const |
Obtain the attribute with this name. More... | |
attribute_list | get_attributes () |
Remove the attribute with this name. More... | |
const attribute_list & | get_attributes () const |
Obtain the list of attributes for this element. More... | |
bool | has_attributes () const |
Private Attributes | |
attribute_list | a_list |
std::map< std::string, xml_attributeRef > | a_map |
Definition at line 114 of file xml_attribute.hpp.
using attribute_sequence::attribute_list = std::list<xml_attribute*> |
Definition at line 116 of file xml_attribute.hpp.
|
inline |
Obtain the attribute with this name.
name | The name of the attribute searched. |
Definition at line 161 of file xml_attribute.hpp.
Referenced by DataXmlParser::Parse(), CompilerWrapper::ReadXml(), attribute::xload(), xml_command_t::xml_command_t(), xml_foreach_t::xml_foreach_t(), xml_parameter_t::xml_parameter_t(), xml_set_entry_t::xml_set_entry_t(), xml_set_variable_t::xml_set_variable_t(), and xml_shell_t::xml_shell_t().
|
inline |
Remove the attribute with this name.
name | The name of the attribute to be removed Obtain the list of attributes for this element. |
Definition at line 188 of file xml_attribute.hpp.
Referenced by NP_functionality::xload().
|
inline |
Obtain the list of attributes for this element.
Constant version.
Definition at line 196 of file xml_attribute.hpp.
|
inline |
Definition at line 204 of file xml_attribute.hpp.
Referenced by xml_att_decl_node::print(), and xml_element::print().
|
inline |
Print the class.
os | is the stream. |
Definition at line 121 of file xml_attribute.hpp.
Referenced by xml_att_decl_node::print(), and xml_element::print().
|
inline |
Set the value of the attribute with this name, and optionally with this namespace.
A matching attribute will be added if no matching attribute already exists.
name | The name of the attribute whose value will change. |
value | The new value for the attribute |
Definition at line 137 of file xml_attribute.hpp.
References xml_node::name, xml_attribute::set_value(), and xml_attribute::xml_attribute().
Referenced by CompilerWrapper::WriteXml(), and attribute::xwrite().
|
private |
Definition at line 210 of file xml_attribute.hpp.
|
private |
Definition at line 211 of file xml_attribute.hpp.