|
Kactus2
Kactus2 reference guide
|
Interface for editing component instantiations. More...
#include <ComponentInstantiationInterface.h>
Public Member Functions | |
| ComponentInstantiationInterface (QSharedPointer< InstantiationsValidator > validator, QSharedPointer< ExpressionParser > expressionParser, QSharedPointer< ExpressionFormatter > expressionFormatter, ParametersInterface *parameterInterface, ModuleParameterInterface *moduleParameterInterface, FileBuilderInterface *fileBuilderInterface, FileSetInterface *fileSetInterface) | |
| virtual | ~ComponentInstantiationInterface ()=default |
| void | addComponentInstantiation (int const &row, std::string const &newInstantiationName=std::string("")) |
| virtual int | getAllReferencesToIdInItem (const std::string &itemName, std::string const &valueID) const override final |
| std::string | getArchitectureName (std::string const &instantiationName) const |
| std::string | getConfigurationName (std::string const &instantiationName) const |
| std::string | getDisplayName (std::string const &itemName) const |
| std::vector< std::string > | getExpressionsInSelectedItems (std::vector< std::string > instantiationNames) const |
| FileBuilderInterface * | getFileBuilderInterface () const |
| FileSetInterface * | getFileSetInterface () const |
| std::vector< std::string > | getFileSetReferences (std::string const &instantiationName) 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 |
| std::string | getLanguage (std::string const &instantiationName) const |
| std::string | getLibraryName (std::string const &instantiationName) const |
| std::string | getModuleName (std::string const &instantiationName) const |
| ModuleParameterInterface * | getModuleParameterInterface () const |
| std::string | getPackageName (std::string const &instantiationName) const |
| ParametersInterface * | getParameterInterface () const |
| bool | isLanguageStrict (std::string const &instantiationName) const |
| virtual int | itemCount () const override final |
| virtual bool | itemHasValidName (std::string const &itemName) const override final |
| bool | removeComponentInstantiation (std::string const &instantiationName) |
| bool | setArchitectureName (std::string const &instantiationName, std::string const &newArchitectureName) |
| void | setComponentInstantiations (QSharedPointer< QList< QSharedPointer< ComponentInstantiation > > > newInstantiations) |
| bool | setConfigurationName (std::string const &instantiationName, std::string const &newConfigurationName) |
| bool | setDisplayName (std::string const &itemName, std::string const &newDisplayName) |
| bool | setFileSetReferences (std::string const &instantiationName, std::vector< std::string > const &newReferences) |
| bool | setLanguage (std::string const &instantiationName, std::string const &newLanguage) |
| bool | setLanguageStrictness (std::string const &instantiationName, bool newStrictness) |
| bool | setLibraryName (std::string const &instantiationName, std::string const &newLibraryName) |
| bool | setModuleName (std::string const &instantiationName, std::string const &newModuleName) |
| virtual bool | setName (std::string const ¤tName, std::string const &newName) override final |
| bool | setPackageName (std::string const &instantiationName, std::string const &newPackageName) |
| virtual bool | validateItems () const override final |
Public Member Functions inherited from ParameterizableInterface | |
| ParameterizableInterface (const ParameterizableInterface &other)=delete | |
| No copying. No assignment. | |
| ParameterizableInterface (QSharedPointer< ExpressionParser > expressionParser, QSharedPointer< ExpressionFormatter > expressionFormatter) | |
| virtual | ~ParameterizableInterface ()=default |
| ParameterizableInterface & | operator= (const ParameterizableInterface &other)=delete |
Public Member Functions inherited from NameGroupInterface | |
| NameGroupInterface () | |
| NameGroupInterface (const NameGroupInterface &other)=delete | |
| No copying. No assignment. | |
| virtual | ~NameGroupInterface ()=default |
| virtual std::string | getDescription (std::string const &itemName) const |
| virtual std::string | getShortDescription (std::string const &itemName) const |
| NameGroupInterface & | operator= (const NameGroupInterface &other)=delete |
| virtual bool | setDescription (std::string const &itemName, std::string const &newDescription) |
| 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 ParameterizableInterface | |
| QString | formattedValueFor (QString const &expression) const |
| QString | parseExpressionToBaseNumber (QString const &expression, unsigned int const &baseNumber, bool *expressionIsValid=nullptr) const |
| QString | parseExpressionToDecimal (QString const &expression, bool *expressionIsValid=nullptr) const |
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 editing component instantiations.
Definition at line 30 of file ComponentInstantiationInterface.h.
| ComponentInstantiationInterface::ComponentInstantiationInterface | ( | QSharedPointer< InstantiationsValidator > | validator, |
| QSharedPointer< ExpressionParser > | expressionParser, | ||
| QSharedPointer< ExpressionFormatter > | expressionFormatter, | ||
| ParametersInterface * | parameterInterface, | ||
| ModuleParameterInterface * | moduleParameterInterface, | ||
| FileBuilderInterface * | fileBuilderInterface, | ||
| FileSetInterface * | fileSetInterface ) |
The constructor.
| [in] | validator | Validator for address blocks. |
| [in] | expressionParser | Parser for expressions. |
| [in] | expressionFormatter | Formatter for expressions. |
| [in] | parameterInterface | Interface for accessing parameters. |
| [in] | moduleParameterInterface | Interface for accessing module parameters |
| [in] | fileBuilderInterface | Interface for accessing file builders. |
| [in] | fileSetInterface | Interface for accessing file sets. |
|
virtualdefault |
The destructor.
| void ComponentInstantiationInterface::addComponentInstantiation | ( | int const & | row, |
| std::string const & | newInstantiationName = std::string("") ) |
Add a new component instantiation.
| [in] | row | Row of the new component instantiation. |
| [in] | newInstantiationName | Name of the new component instantiation. |
|
finaloverridevirtual |
Calculate all the references to the selected ID in the selected item.
| [in] | itemName | Name of the selected item. |
| [in] | valueID | The selected ID. |
Implements ParameterizableInterface.
| std::string ComponentInstantiationInterface::getArchitectureName | ( | std::string const & | instantiationName | ) | const |
Get the architecture name of the selected component instantiation.
| [in] | instantiationName | Name of the selected component instantiation. |
| std::string ComponentInstantiationInterface::getConfigurationName | ( | std::string const & | instantiationName | ) | const |
Get the configuration name of the selected component instantiation.
| [in] | instantiationName | Name of the selected component instantiation. |
|
virtual |
Get the display name of the selected item.
| [in] | itemName | Name of the selected item. |
Reimplemented from NameGroupInterface.
| std::vector< std::string > ComponentInstantiationInterface::getExpressionsInSelectedItems | ( | std::vector< std::string > | instantiationNames | ) | const |
Get the expressions in the selected component instantiations.
| [in] | instantiationNames | Names of the selected component instantiations. |
| FileBuilderInterface * ComponentInstantiationInterface::getFileBuilderInterface | ( | ) | const |
Get the file builder interface.
| FileSetInterface * ComponentInstantiationInterface::getFileSetInterface | ( | ) | const |
Get the file set interface.
| std::vector< std::string > ComponentInstantiationInterface::getFileSetReferences | ( | std::string const & | instantiationName | ) | const |
Get the file set references of the selected component instantiation.
| [in] | instantiationName | Name of the selected component instantiation. |
|
finalvirtual |
Get name of the indexed item.
| [in] | itemIndex | Index of the selected item. |
Implements NameGroupInterface.
|
finaloverridevirtual |
Get index of the selected item.
| [in] | itemName | Name of the selected item. |
Implements NameGroupInterface.
|
finaloverridevirtual |
Get the names of the available items.
Implements CommonInterface.
| std::string ComponentInstantiationInterface::getLanguage | ( | std::string const & | instantiationName | ) | const |
Get the language of the selected component instantiation.
| [in] | instantiationName | Name of the selected component instantiation. |
| std::string ComponentInstantiationInterface::getLibraryName | ( | std::string const & | instantiationName | ) | const |
Get the library name of the selected component instantiation.
| [in] | instantiationName | Name of the selected component instantiation. |
| std::string ComponentInstantiationInterface::getModuleName | ( | std::string const & | instantiationName | ) | const |
Get the module name of the selected component instantiation.
| [in] | instantiationName | Name of the selected component instantiation. |
| ModuleParameterInterface * ComponentInstantiationInterface::getModuleParameterInterface | ( | ) | const |
Get the module parameter interface.
| std::string ComponentInstantiationInterface::getPackageName | ( | std::string const & | instantiationName | ) | const |
Get the package name of the selected component instantiation.
| [in] | instantiationName | Name of the selected component instantiation. |
| ParametersInterface * ComponentInstantiationInterface::getParameterInterface | ( | ) | const |
Get the parameter interface.
| bool ComponentInstantiationInterface::isLanguageStrict | ( | std::string const & | instantiationName | ) | const |
Check if the language of the selected component instantiation is strict.
| [in] | instantiationName | Name of the selected component instantiation. |
|
finaloverridevirtual |
|
finaloverridevirtual |
Check if the selected item has a valid name.
| [in] | itemName | Name of the selected item. |
Implements NameGroupInterface.
| bool ComponentInstantiationInterface::removeComponentInstantiation | ( | std::string const & | instantiationName | ) |
Remove the selected component instantiation.
| [in] | instantiationName | Name of the selected component instantiation. |
| bool ComponentInstantiationInterface::setArchitectureName | ( | std::string const & | instantiationName, |
| std::string const & | newArchitectureName ) |
Set a new architecture name for the selected component instantiation.
| [in] | instantiationName | Name of the selected component instantiation. |
| [in] | newArchitectureName | The new module name. |
| void ComponentInstantiationInterface::setComponentInstantiations | ( | QSharedPointer< QList< QSharedPointer< ComponentInstantiation > > > | newInstantiations | ) |
Set available component instantiations.
| [in] | newInstantiations | The new component instantiations. |
| bool ComponentInstantiationInterface::setConfigurationName | ( | std::string const & | instantiationName, |
| std::string const & | newConfigurationName ) |
Set a new configuration name for the selected component instantiation.
| [in] | instantiationName | Name of the selected component instantiation. |
| [in] | newConfigurationName | The new module name. |
| bool ComponentInstantiationInterface::setDisplayName | ( | std::string const & | itemName, |
| std::string const & | newDisplayName ) |
Set the display name of the selected item.
| [in] | itemName | Name of the selected item. |
| [in] | newDisplayName | New display name for the item. |
| bool ComponentInstantiationInterface::setFileSetReferences | ( | std::string const & | instantiationName, |
| std::vector< std::string > const & | newReferences ) |
Set new file set references for the selected component instantiation.
| [in] | instantiationName | Name of the selected component instantiation. |
| [in] | newReferences | The new file set references. |
| bool ComponentInstantiationInterface::setLanguage | ( | std::string const & | instantiationName, |
| std::string const & | newLanguage ) |
Set a new language for the selected component instantiation.
| [in] | instantiationName | Name of the selected component instantiation. |
| [in] | newLanguage | New language. |
| bool ComponentInstantiationInterface::setLanguageStrictness | ( | std::string const & | instantiationName, |
| bool | newStrictness ) |
Set language strictness for the selected component instantiation.
| [in] | instantiationName | Name of the selected component instantiation. |
| [in] | newStrictness | The new language strictness. |
| bool ComponentInstantiationInterface::setLibraryName | ( | std::string const & | instantiationName, |
| std::string const & | newLibraryName ) |
Set a new library name for the selected component instantiation.
| [in] | instantiationName | Name of the selected component instantiation. |
| [in] | newLibraryName | The new library name. |
| bool ComponentInstantiationInterface::setModuleName | ( | std::string const & | instantiationName, |
| std::string const & | newModuleName ) |
Set a new module name for the selected component instantiation.
| [in] | instantiationName | Name of the selected component instantiation. |
| [in] | newModuleName | The new module name. |
|
finaloverridevirtual |
Set a new name for the selected item.
| [in] | currentName | Name of the selected item. |
| [in] | newName | New name for the item. |
Implements NameGroupInterface.
| bool ComponentInstantiationInterface::setPackageName | ( | std::string const & | instantiationName, |
| std::string const & | newPackageName ) |
Set a new package name for the selected component instantiation.
| [in] | instantiationName | Name of the selected component instantiation. |
| [in] | newPackageName | The new library name. |
|
finaloverridevirtual |
Validates the contained items.
Implements CommonInterface.