PandA-2024.02
|
Command line parameter. More...
#include <xml_script_command.hpp>
Public Member Functions | |
xml_parameter_t (const std::string *_name, const std::string *_singleValue, const std::string *_condition, const std::string &_separator, bool _curlyBrackets) | |
xml_parameter_t (const xml_element *element) | |
~xml_parameter_t () override | |
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... | |
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 * | name |
std::string * | singleValue |
std::vector< xml_set_entry_tRef > | multiValues |
std::string * | condition |
std::string | separator |
bool | curlyBrackets |
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... | |
Command line parameter.
Just like a variable, it can be either a single value or a set of entries.
Definition at line 199 of file xml_script_command.hpp.
xml_parameter_t::xml_parameter_t | ( | const std::string * | _name, |
const std::string * | _singleValue, | ||
const std::string * | _condition, | ||
const std::string & | _separator, | ||
bool | _curlyBrackets | ||
) |
Definition at line 400 of file xml_script_command.cpp.
References condition, curlyBrackets, multiValues, name, separator, and singleValue.
|
explicit |
Definition at line 412 of file xml_script_command.cpp.
References condition, curlyBrackets, xml_script_node_t::evaluate_condition(), attribute_sequence::get_attribute(), xml_child::get_children(), xml_node::get_name(), xml_attribute::get_value(), multiValues, name, separator, singleValue, TAG_ENTRY, and THROW_ERROR.
|
override |
Definition at line 474 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 520 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 479 of file xml_script_command.cpp.
References multiValues, name, and singleValue.
Referenced by ~xml_parameter_t().
|
overridevirtual |
Creates an XML node for polixml data structures.
Implements xml_script_node_t.
Definition at line 494 of file xml_script_command.cpp.
References condition, curlyBrackets, get_xml_name(), multiValues, name, and singleValue.
|
overridevirtual |
Gets the XML element name of this node type.
Implements xml_script_node_t.
Definition at line 489 of file xml_script_command.cpp.
References TAG_PARAMETER.
Referenced by create_xml_node().
std::string* xml_parameter_t::condition |
Definition at line 205 of file xml_script_command.hpp.
Referenced by checkCondition(), create_xml_node(), XilinxWrapper::toString(), and xml_parameter_t().
bool xml_parameter_t::curlyBrackets |
Definition at line 207 of file xml_script_command.hpp.
Referenced by create_xml_node(), bash_flow_wrapper::toString(), NanoXploreWrapper::toString(), AlteraWrapper::toString(), LatticeWrapper::toString(), and xml_parameter_t().
std::vector<xml_set_entry_tRef> xml_parameter_t::multiValues |
Definition at line 204 of file xml_script_command.hpp.
Referenced by clean(), create_xml_node(), bash_flow_wrapper::toString(), NanoXploreWrapper::toString(), AlteraWrapper::toString(), LatticeWrapper::toString(), XilinxWrapper::toString(), and xml_parameter_t().
std::string* xml_parameter_t::name |
Definition at line 202 of file xml_script_command.hpp.
Referenced by clean(), create_xml_node(), bash_flow_wrapper::toString(), NanoXploreWrapper::toString(), AlteraWrapper::toString(), LatticeWrapper::toString(), XilinxWrapper::toString(), and xml_parameter_t().
std::string xml_parameter_t::separator |
Definition at line 206 of file xml_script_command.hpp.
Referenced by bash_flow_wrapper::toString(), NanoXploreWrapper::toString(), AlteraWrapper::toString(), LatticeWrapper::toString(), XilinxWrapper::toString(), and xml_parameter_t().
std::string* xml_parameter_t::singleValue |
Definition at line 203 of file xml_script_command.hpp.
Referenced by clean(), create_xml_node(), bash_flow_wrapper::toString(), NanoXploreWrapper::toString(), AlteraWrapper::toString(), LatticeWrapper::toString(), XilinxWrapper::toString(), and xml_parameter_t().