pub struct Component { /* private fields */ }Expand description
Components are objects that can contain Functions, Data Variables, and other Components.
They can be queried for information about the items contained within them.
Components have a Guid, which persistent across saves and loads of the database, and should be used for retrieving components when such is required and a reference to the Component cannot be held.
Source§
Source
Add function to this component.
Source
Check whether this component contains a function.
Source
Remove function from this component.
Source
Move component to this component. This will remove it from the old parent.
Source
Check whether this component contains a component.
Source
Remove a component from the current component, moving it to the root.
This function has no effect when used from the root component.
Use BinaryView.remove_component to Remove a component from the tree entirely.
Source
Add data variable to this component.
Source
Check whether this component contains a data variable.
Source
Remove data variable from this component.
Source
Original name of the component
Source
Original name set for this component
:note: The .display_name property should be used for bv.get_component_by_path() lookups.
This can differ from the .display_name property if one of its sibling components has the same .original_name; In that
case, .name will be an automatically generated unique name (e.g. “MyComponentName (1)”) while .original_name will
remain what was originally set (e.g. “MyComponentName”)
If this component has a duplicate name and is moved to a component where none of its siblings share its name,
.name will return the original “MyComponentName”
Source
The component that contains this component, if it exists.
Source
Is an iterator for all Components contained within this Component
Source
List of all Functions contained within this Component
Source
List of all Data Variables contained within this Component
Source
Get data variables referenced by this component
recursive- Get all DataVariables referenced by this component and subcomponents.
Source
Get Types referenced by this component
recursive- Get all Types referenced by this component and subcomponents.