PandA-2024.02
|
If/Then/Else block, evaluated at compile-time. More...
#include <xml_script_command.hpp>
Public Member Functions | |
xml_ite_block_t (const std::string *_condition) | |
xml_ite_block_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_ite_block_t () override | |
void | clean () override |
Cleans object attributes. More... | |
bool | checkCondition (const DesignParametersRef &dp) const override |
If the node has a compile-time condition, this method evaluates it. More... | |
Public Member Functions inherited from xml_script_node_t | |
xml_script_node_t (xml_script_node_enum_t _type) | |
virtual | ~xml_script_node_t () |
Data Fields | |
std::string | condition |
std::vector< xml_script_node_tRef > | thenNodes |
std::vector< xml_script_node_tRef > | elseNodes |
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... | |
If/Then/Else block, evaluated at compile-time.
Definition at line 281 of file xml_script_command.hpp.
|
explicit |
Definition at line 749 of file xml_script_command.cpp.
|
explicit |
Definition at line 756 of file xml_script_command.cpp.
References xml_script_node_t::create(), el, elseNodes, xml_child::get_children(), xml_node::get_name(), thenNodes, and THROW_ERROR.
|
override |
Definition at line 818 of file xml_script_command.cpp.
References clean().
|
overridevirtual |
If the node has a compile-time condition, this method evaluates it.
dp | Design parameters, used to check conditions at compile time. |
Reimplemented from xml_script_node_t.
Definition at line 851 of file xml_script_command.cpp.
References condition, and xml_script_node_t::evaluate_condition().
|
overridevirtual |
Cleans object attributes.
Implements xml_script_node_t.
Definition at line 823 of file xml_script_command.cpp.
References elseNodes, and thenNodes.
Referenced by ~xml_ite_block_t().
|
overridevirtual |
Creates an XML node for polixml data structures.
Implements xml_script_node_t.
Definition at line 834 of file xml_script_command.cpp.
References xml_child::add_child_element(), condition, elseNodes, get_xml_name(), and thenNodes.
|
overridevirtual |
Gets the XML element name of this node type.
Implements xml_script_node_t.
Definition at line 829 of file xml_script_command.cpp.
References TAG_ITE_BLOCK.
Referenced by create_xml_node().
std::string xml_ite_block_t::condition |
Definition at line 284 of file xml_script_command.hpp.
Referenced by checkCondition(), create_xml_node(), bash_flow_wrapper::toString(), NanoXploreWrapper::toString(), LatticeWrapper::toString(), and AlteraWrapper::toString().
std::vector<xml_script_node_tRef> xml_ite_block_t::elseNodes |
Definition at line 286 of file xml_script_command.hpp.
Referenced by clean(), create_xml_node(), bash_flow_wrapper::toString(), NanoXploreWrapper::toString(), AlteraWrapper::toString(), LatticeWrapper::toString(), and xml_ite_block_t().
std::vector<xml_script_node_tRef> xml_ite_block_t::thenNodes |
Definition at line 285 of file xml_script_command.hpp.
Referenced by clean(), create_xml_node(), bash_flow_wrapper::toString(), NanoXploreWrapper::toString(), AlteraWrapper::toString(), LatticeWrapper::toString(), and xml_ite_block_t().