|
Kactus2
Kactus2 reference guide
|
Interface for accessing design ad hoc connections. More...
#include <AdHocConnectionInterface.h>
Public Member Functions | |
| AdHocConnectionInterface () | |
| AdHocConnectionInterface (const AdHocConnectionInterface &other)=delete | |
| No copying. No assignment. | |
| virtual | ~AdHocConnectionInterface ()=default |
| void | addAdHocConnection (std::string const &startComponentInstance, std::string const &startPort, std::string const &endComponentInstance, std::string const &endPort, std::string const &connectionName="") |
| void | addHierarchicalAdHocConnection (std::string const &instanceName, std::string const &instancePort, std::string const &topPort, std::string const &connectionName="") |
| bool | adHocConnectionExists (std::string const &connectionName) const |
| std::string | getConnectionName (std::string const &startInstanceName, std::string const &startPortName, std::string const &endInstanceName, std::string const &endPortName) const |
| virtual std::string | getDescription (std::string const &itemName) const override final |
| std::string | getHierarchicalConnectionName (std::string const &instanceName, std::string const &instancePort, std::string const &topPort) const |
| std::string | getIndexedItemName (int itemIndex) const final |
| virtual int | getItemIndex (std::string const &itemName) const override final |
| virtual std::vector< std::string > | getItemNames () const override final |
| virtual int | itemCount () const override final |
| virtual bool | itemHasValidName (std::string const &itemName) const override final |
| AdHocConnectionInterface & | operator= (const AdHocConnectionInterface &other)=delete |
| bool | removeAdHocConnection (std::string const &connectionName) |
| bool | removeInstanceAdHocConnections (std::string const &instanceName) |
| void | renameComponentReferences (std::string const ¤tName, std::string const &newName) |
| void | setConnections (QSharedPointer< Design > newDesign) |
| virtual bool | setDescription (std::string const &itemName, std::string const &newDescription) override final |
| virtual bool | setName (std::string const ¤tName, std::string const &newName) override final |
| virtual bool | validateItems () const override final |
Public Member Functions inherited from NameGroupInterface | |
| NameGroupInterface () | |
| NameGroupInterface (const NameGroupInterface &other)=delete | |
| No copying. No assignment. | |
| virtual | ~NameGroupInterface ()=default |
| virtual std::string | getDisplayName (std::string const &itemName) const |
| virtual std::string | getShortDescription (std::string const &itemName) const |
| NameGroupInterface & | operator= (const NameGroupInterface &other)=delete |
| virtual bool | setDisplayName (std::string const &itemName, std::string const &newDisplayName) const |
| bool | setShortDescription (std::string const &itemName, std::string const &newShortDescription) const |
Public Member Functions inherited from CommonInterface | |
| CommonInterface ()=default | |
| CommonInterface (const CommonInterface &other)=delete | |
| No copying. No assignment. | |
| virtual | ~CommonInterface ()=default |
| CommonInterface & | operator= (const CommonInterface &other)=delete |
Additional Inherited Members | |
Protected Member Functions inherited from CommonInterface | |
| QString | getUniqueName (std::string const &newName, std::string const &itemTypeName) const |
| bool | nameHasChanged (std::string const &newName, std::string const &oldName) const |
Interface for accessing design ad hoc connections.
Definition at line 25 of file AdHocConnectionInterface.h.
| AdHocConnectionInterface::AdHocConnectionInterface | ( | ) |
The constructor.
|
virtualdefault |
The destructor.
|
delete |
No copying. No assignment.
| void AdHocConnectionInterface::addAdHocConnection | ( | std::string const & | startComponentInstance, |
| std::string const & | startPort, | ||
| std::string const & | endComponentInstance, | ||
| std::string const & | endPort, | ||
| std::string const & | connectionName = "" ) |
Add a new ad hoc connection.
| [in] | startComponentInstance | Name of the component instance containing the first port. |
| [in] | startPort | Name of the first port. |
| [in] | endComponentInstance | Name of the component instance containing the second port. |
| [in] | endPort | Name of the second port. |
| [in] | connectionName | Name of the new ad hoc connection. |
| void AdHocConnectionInterface::addHierarchicalAdHocConnection | ( | std::string const & | instanceName, |
| std::string const & | instancePort, | ||
| std::string const & | topPort, | ||
| std::string const & | connectionName = "" ) |
Add a new hierarchical ad hoc connection.
| [in] | instanceName | Name of the component instance containing the selected port. |
| [in] | instancePort | Name of the selected port. |
| [in] | topPort | Name of the top component port. |
| [in] | connectionName | Name of the new ad hoc connection. |
| bool AdHocConnectionInterface::adHocConnectionExists | ( | std::string const & | connectionName | ) | const |
Check if the selected ad hoc connection exists.
| [in] | connectionName | Name of the selected ad hoc connection. |
| std::string AdHocConnectionInterface::getConnectionName | ( | std::string const & | startInstanceName, |
| std::string const & | startPortName, | ||
| std::string const & | endInstanceName, | ||
| std::string const & | endPortName ) const |
Get the name of the selected ad hoc connection.
| [in] | startInstanceName | Name of the instance containing the first port. |
| [in] | startPortName | Name of the first port. |
| [in] | endInstanceName | Name of the instance containing the second port. |
| [in] | endPortName | Name of the second port. |
|
finaloverridevirtual |
Get the description of the selected ad hoc connection.
| [in] | itemName | Name of the selected ad hoc connection. |
Reimplemented from NameGroupInterface.
| std::string AdHocConnectionInterface::getHierarchicalConnectionName | ( | std::string const & | instanceName, |
| std::string const & | instancePort, | ||
| std::string const & | topPort ) const |
Get the name of the selected hierarchical ad hoc connection.
| [in] | instanceName | Name of the component instance containing the selected port. |
| [in] | instancePort | Name of the selected component instance port. |
| [in] | topPort | Name of the top component port. |
|
finalvirtual |
Get name of the indexed ad hoc connection.
| [in] | itemIndex | Index of the selected ad hoc connection. |
Implements NameGroupInterface.
|
finaloverridevirtual |
Get index of the selected ad hoc connection.
| [in] | itemName | Name of the selected ad hoc connection. |
Implements NameGroupInterface.
|
finaloverridevirtual |
Get the names of the available bus interfaces.
Implements CommonInterface.
|
finaloverridevirtual |
Get the number of available ad hoc connections.
Implements CommonInterface.
|
finaloverridevirtual |
Check if the selected ad hoc connection has a valid name.
| [in] | itemName | Name of the selected ad hoc connection. |
Implements NameGroupInterface.
|
delete |
| bool AdHocConnectionInterface::removeAdHocConnection | ( | std::string const & | connectionName | ) |
Remove the selected ad hoc connection.
| [in] | busName | Name of the selected ad hoc connection. |
| bool AdHocConnectionInterface::removeInstanceAdHocConnections | ( | std::string const & | instanceName | ) |
Remove ad hoc connections connected to the selected component instance.
| [in] | instanceName | Name of the selected component instance. |
| void AdHocConnectionInterface::renameComponentReferences | ( | std::string const & | currentName, |
| std::string const & | newName ) |
Rename the component references in connections.
| [in] | currentName | Current name of the component instance. |
| [in] | newName | New name for the component instance. |
| void AdHocConnectionInterface::setConnections | ( | QSharedPointer< Design > | newDesign | ) |
Setup the ad hoc connections.
| [in] | newDesign | Design containing the ad hoc connections. |
|
finaloverridevirtual |
Set a new description for the selected ad hoc connection.
| [in] | itemName | Name of the selected ad hoc connection. |
| [in] | newDescription | New description. |
Reimplemented from NameGroupInterface.
|
finaloverridevirtual |
Set a new name for the selected ad hoc connection.
| [in] | currentName | Name of the selected ad hoc connection. |
| [in] | newName | New name for the ad hoc connection. |
Implements NameGroupInterface.
|
finaloverridevirtual |
Validates the contained ad hoc connections.
Implements CommonInterface.