|
HAL
v4.5.0-83-g30c8f0afc
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
|
#include <hal_core/plugin_system/plugin_parameter.h>

Public Types | |
| enum | ParameterType { Absent , Boolean , Color , ComboBox , Dictionary , ExistingDir , ExistingFile , Float , Gate , Integer , Label , Module , NewFile , PushButton , String , TabName } |
Public Member Functions | |
| PluginParameter (ParameterType tp=Absent, const std::string &tag=std::string(), const std::string &lbl=std::string(), const std::string &val=std::string()) | |
| std::string | get_tagname () const |
| std::string | get_label () const |
| std::string | get_value () const |
| ParameterType | get_type () const |
| void | set_value (const std::string &v) |
| void | set_tagname (const std::string &tg) |
A single configurable parameter of a plugin, described by its type, tag name, label, and current value. The GUI uses these descriptions to render input widgets for a plugin without knowing anything about the plugin itself.
Definition at line 36 of file plugin_parameter.h.
The kind of value that a parameter holds, which also determines how it is presented to the user.
Definition at line 42 of file plugin_parameter.h.
|
inline |
Construct a new plugin parameter.
| [in] | tp | - The type of the parameter. Defaults to PluginParameter::Absent. |
| [in] | tag | - The tag name by which the plugin identifies the parameter. Defaults to an empty string. |
| [in] | lbl | - The label that is shown to the user. Defaults to an empty string. |
| [in] | val | - The initial value. Defaults to an empty string. |
Definition at line 77 of file plugin_parameter.h.
|
inline |
Get the label that is shown to the user.
Definition at line 92 of file plugin_parameter.h.
Referenced by hal::PYBIND11_PLUGIN().
|
inline |
Get the tag name by which the plugin identifies the parameter.
Definition at line 85 of file plugin_parameter.h.
Referenced by hal::PYBIND11_PLUGIN().
|
inline |
Get the type of the parameter.
Definition at line 107 of file plugin_parameter.h.
Referenced by hal::PluginParameterFileDialog::PluginParameterFileDialog(), hal::PluginParameterNodeDialog::PluginParameterNodeDialog(), and hal::PYBIND11_PLUGIN().
|
inline |
Get the value of the parameter. The value is always stored as a string, no matter which type the parameter has.
Definition at line 100 of file plugin_parameter.h.
Referenced by hal::PluginParameterFileDialog::PluginParameterFileDialog(), hal::PluginParameterNodeDialog::PluginParameterNodeDialog(), and hal::PYBIND11_PLUGIN().
|
inline |
Set the tag name by which the plugin identifies the parameter.
| [in] | tg | - The new tag name. |
Definition at line 122 of file plugin_parameter.h.
Referenced by hal::PYBIND11_PLUGIN().
|
inline |
Set the value of the parameter. The value is always stored as a string, no matter which type the parameter has.
| [in] | v | - The new value. |
Definition at line 115 of file plugin_parameter.h.
Referenced by hal::PYBIND11_PLUGIN().