PandA-2024.02
|
Foreach block, where the set of script nodes is applied to each parameter. More...
#include <xml_script_command.hpp>
Public Member Functions | |
xml_foreach_t (std::string _variable) | |
xml_foreach_t (const xml_element *element) | |
std::string | get_xml_name () const override |
Gets the XML element name of this node type. More... | |
xml_nodeRef | create_xml_node () const override |
Creates an XML node for polixml data structures. More... | |
~xml_foreach_t () override | |
void | clean () override |
Cleans object attributes. More... | |
Public Member Functions inherited from xml_script_node_t | |
virtual bool | checkCondition (const DesignParametersRef &dp) const |
If the node has a compile-time condition, this method evaluates it. More... | |
xml_script_node_t (xml_script_node_enum_t _type) | |
virtual | ~xml_script_node_t () |
Data Fields | |
std::string | variable |
std::vector< xml_script_node_tRef > | Nodes |
Data Fields inherited from xml_script_node_t | |
xml_script_node_enum_t | nodeType |
Additional Inherited Members | |
Static Public Member Functions inherited from xml_script_node_t | |
static xml_script_node_enum_t | find_type (const xml_element *element) |
Finds the type of an XML element. More... | |
static xml_script_node_t * | create (const xml_element *element) |
Creates a script node by parsing the XML element. More... | |
static bool | evaluate_condition (const std::string *condition) |
Evaluates a string condition. More... | |
static bool | evaluate_condition (const std::string *condition, const DesignParametersRef &dp) |
Evaluates a string condition. More... | |
Foreach block, where the set of script nodes is applied to each parameter.
Definition at line 305 of file xml_script_command.hpp.
|
explicit |
Definition at line 856 of file xml_script_command.cpp.
|
explicit |
Definition at line 860 of file xml_script_command.cpp.
References xml_script_node_t::create(), el, attribute_sequence::get_attribute(), xml_child::get_children(), xml_attribute::get_value(), Nodes, THROW_ASSERT, and variable.
|
override |
Definition at line 892 of file xml_script_command.cpp.
References clean().
|
overridevirtual |
Cleans object attributes.
Implements xml_script_node_t.
Definition at line 897 of file xml_script_command.cpp.
References Nodes.
Referenced by ~xml_foreach_t().
|
overridevirtual |
Creates an XML node for polixml data structures.
Implements xml_script_node_t.
Definition at line 907 of file xml_script_command.cpp.
References get_xml_name(), and NOT_YET_IMPLEMENTED.
|
overridevirtual |
Gets the XML element name of this node type.
Implements xml_script_node_t.
Definition at line 902 of file xml_script_command.cpp.
References TAG_FOREACH.
Referenced by create_xml_node().
std::vector<xml_script_node_tRef> xml_foreach_t::Nodes |
Definition at line 309 of file xml_script_command.hpp.
Referenced by clean(), and xml_foreach_t().
std::string xml_foreach_t::variable |
Definition at line 308 of file xml_script_command.hpp.
Referenced by xml_foreach_t().