![]() |
Kactus2
Kactus2 reference guide
|
Interface for accessing abstraction types. More...
#include <AbstractionTypeInterface.h>
Public Member Functions | |
AbstractionTypeInterface (const AbstractionTypeInterface &other)=delete | |
No copying. No assignment. | |
AbstractionTypeInterface (PortMapInterface *portMapInterface, QSharedPointer< AbstractionTypeValidator > validator, LibraryInterface *library) | |
virtual | ~AbstractionTypeInterface ()=default |
void | addAbstraction (int const &typeIndex) |
void | addAbstractionType (std::string const &newVendor, std::string const &newLibrary, std::string const &newName, std::string const &newVersion) const |
QSharedPointer< AbstractionType > | getAbstraction (int const &abstractionIndex) const |
QSharedPointer< ConfigurableVLNVReference > | getAbstractionReference (int const &typeIndex) const |
std::vector< std::string > | getAbstractionReferences () const |
std::string | getAbstractionReferenceString () const |
std::string | getCombinedViews (int const &abstractionIndex) const |
std::string | getIndexedAbstraction (int const &itemIndex) const |
virtual std::vector< std::string > | getItemNames () const override final |
std::vector< std::string > | getPhysicalPortsFromPortMaps (int const &abstractionIndex) const |
PortMapInterface * | getPortMapInterface () const |
std::vector< std::string > | getViewReferences (int const &abstractionIndex) const |
bool | hasAbstractionReference (int const &typeIndex) const |
bool | hasValidAbstractionReference (int const &typeIndex) const |
bool | hasValidViewReferences (int const &typeIndex) const |
virtual int | itemCount () const override final |
AbstractionTypeInterface & | operator= (const AbstractionTypeInterface &other)=delete |
bool | removeAbstraction (int const &typeIndex) |
bool | setAbstraction (int const &abstractionIndex, std::string const &newVendor, std::string const &newLibrary, std::string const &newName, std::string const &newVersion) |
void | setAbstractionTypes (QSharedPointer< QList< QSharedPointer< AbstractionType > > > newAbstractions, General::InterfaceMode busMode, QString const &systemGroup) |
void | setBusMode (General::InterfaceMode busMode) |
void | setSystemGroup (QString const &systemGroup) |
bool | setupAbstractionDefinitionForPortMapInterface (int const &abstractionTypeIndex) |
bool | setupAbstractionTypeForPortMapInterface (int const &abstractionTypeIndex) |
bool | setViewReferences (int const &abstractionIndex, std::vector< std::string > newViews) |
virtual bool | validateItems () const override final |
![]() | |
CommonInterface ()=default | |
CommonInterface (const CommonInterface &other)=delete | |
No copying. No assignment. | |
virtual | ~CommonInterface ()=default |
CommonInterface & | operator= (const CommonInterface &other)=delete |
Additional Inherited Members | |
![]() | |
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 abstraction types.
Definition at line 34 of file AbstractionTypeInterface.h.
AbstractionTypeInterface::AbstractionTypeInterface | ( | PortMapInterface * | portMapInterface, |
QSharedPointer< AbstractionTypeValidator > | validator, | ||
LibraryInterface * | library ) |
The constructor.
[in] | portMapInterface | Interface for accessing port maps. |
[in] | validator | Validator for abstraction types. |
[in] | library | Interface for the VLNV library. |
|
virtualdefault |
The destructor.
|
delete |
No copying. No assignment.
void AbstractionTypeInterface::addAbstraction | ( | int const & | typeIndex | ) |
Add an abstraction type.
[in] | typeIndex | Index of the selected abstraction type. |
void AbstractionTypeInterface::addAbstractionType | ( | std::string const & | newVendor, |
std::string const & | newLibrary, | ||
std::string const & | newName, | ||
std::string const & | newVersion ) const |
Add the selected abstraction type.
[in] | newVendor | Vendor of the new abstraction reference. |
[in] | newLibrary | Library of the new abstraction reference. |
[in] | newName | Name of the new abstraction reference. |
[in] | newVersion | Version of the new abstraction reference. |
QSharedPointer< AbstractionType > AbstractionTypeInterface::getAbstraction | ( | int const & | abstractionIndex | ) | const |
Get the selected abstraction type.
[in] | abstractionIndex | Index of the selected abstraction type. |
QSharedPointer< ConfigurableVLNVReference > AbstractionTypeInterface::getAbstractionReference | ( | int const & | typeIndex | ) | const |
Get the abstraction reference of the selected abstraction type.
[in] | typeIndex | Index of the selected abstraction type. |
std::vector< std::string > AbstractionTypeInterface::getAbstractionReferences | ( | ) | const |
Get the list of abstraction references.
std::string AbstractionTypeInterface::getAbstractionReferenceString | ( | ) | const |
Get the abstraction reference string.
std::string AbstractionTypeInterface::getCombinedViews | ( | int const & | abstractionIndex | ) | const |
Get the view references of the selected abstraction type as a single string.
[in] | abstractionIndex | Index of the selected abstraction type. |
std::string AbstractionTypeInterface::getIndexedAbstraction | ( | int const & | itemIndex | ) | const |
Get the abstraction reference string of the selected abstraction type.
[in] | itemIndex | Index of the selected abstraction type. |
|
finaloverridevirtual |
Get the abstraction references of the available abstraction types.
Implements CommonInterface.
std::vector< std::string > AbstractionTypeInterface::getPhysicalPortsFromPortMaps | ( | int const & | abstractionIndex | ) | const |
Get the physical port names from all the contained port maps of the selected abstraction type.
[in] | abstractionIndex | Index of the selected abstraction type. |
PortMapInterface * AbstractionTypeInterface::getPortMapInterface | ( | ) | const |
Get the contained port map interface.
std::vector< std::string > AbstractionTypeInterface::getViewReferences | ( | int const & | abstractionIndex | ) | const |
Get the view references of the selected abstraction type.
[in] | abstractionIndex | Index of the abstraction type. |
bool AbstractionTypeInterface::hasAbstractionReference | ( | int const & | typeIndex | ) | const |
Check if the selected abstraction type has an abstraction reference.
[in] | typeIndex | Index of the selected abstraction type. |
bool AbstractionTypeInterface::hasValidAbstractionReference | ( | int const & | typeIndex | ) | const |
Check if the selected abstraction type has a valid abstraction reference.
[in] | typeIndex | Index of the selected abstraction type. |
bool AbstractionTypeInterface::hasValidViewReferences | ( | int const & | typeIndex | ) | const |
Check if the selected abstraction type has valid view references.
[in] | typeIndex | Index of the selected abstraction type. |
|
finaloverridevirtual |
Get the number of available abstraction types.
Implements CommonInterface.
|
delete |
bool AbstractionTypeInterface::removeAbstraction | ( | int const & | typeIndex | ) |
Remove the selected abstraction type.
[in] | typeIndex | Index of the selected abstraction type. |
bool AbstractionTypeInterface::setAbstraction | ( | int const & | abstractionIndex, |
std::string const & | newVendor, | ||
std::string const & | newLibrary, | ||
std::string const & | newName, | ||
std::string const & | newVersion ) |
Set a new abstraction reference for the selected abstraction type.
[in] | abstractionIndex | Index of the selected abstraction type. |
[in] | newVendor | Vendor of the new abstraction reference. |
[in] | newLibrary | Library of the new abstraction reference. |
[in] | newName | Name of the new abstraction reference. |
[in] | newVersion | Version of the new abstraction reference. |
void AbstractionTypeInterface::setAbstractionTypes | ( | QSharedPointer< QList< QSharedPointer< AbstractionType > > > | newAbstractions, |
General::InterfaceMode | busMode, | ||
QString const & | systemGroup ) |
Setup the abstraction types.
[in] | newAbstractions | The new abstraction types. |
[in] | busMode | The new bus interface mode. |
[in] | systemGroup | The new system group. |
void AbstractionTypeInterface::setBusMode | ( | General::InterfaceMode | busMode | ) |
Setup a new bus interface mode.
[in] | busMode | The selected bus interface mode. |
void AbstractionTypeInterface::setSystemGroup | ( | QString const & | systemGroup | ) |
Setup a new system group.
[in] | systemGroup | The selected system group. |
bool AbstractionTypeInterface::setupAbstractionDefinitionForPortMapInterface | ( | int const & | abstractionTypeIndex | ) |
Setup the abstraction definition for port map interface.
[in] | abstractionTypeIndex | Index of the selected abstraction definition. |
bool AbstractionTypeInterface::setupAbstractionTypeForPortMapInterface | ( | int const & | abstractionTypeIndex | ) |
Setup the containing port map interface.
[in] | abstractionTypeIndex | Index of the selected abstraction type. |
bool AbstractionTypeInterface::setViewReferences | ( | int const & | abstractionIndex, |
std::vector< std::string > | newViews ) |
Set view references for the selected abstraction type.
[in] | abstractionIndex | Index of the selected abstraction type. |
[in] | newViews | The new view references. |
|
finaloverridevirtual |
Validates the contained abstraction types.
Implements CommonInterface.