Kactus2
Kactus2 reference guide
Loading...
Searching...
No Matches
CommonInterface Class Referenceabstract

Common functions for interfaces. More...

#include <CommonInterface.h>

Inheritance diagram for CommonInterface:
AbstractionTypeInterface FileBuilderInterface NameGroupInterface PortMapInterface ResetInterface TransparentBridgeInterface AbstractParameterInterface AdHocConnectionInterface BusInterfaceInterface ComponentInstanceInterface ComponentInstantiationInterface FieldInterface FileInterface FileSetInterface InterconnectionInterface MasterPortInterface MemoryBlockInterface MemoryMapInterface RegisterInterface

Public Member Functions

 CommonInterface ()=default
 
 CommonInterface (const CommonInterface &other)=delete
 No copying. No assignment.
 
virtual ~CommonInterface ()=default
 
virtual std::vector< std::string > getItemNames () const =0
 
virtual int itemCount () const =0
 
CommonInterfaceoperator= (const CommonInterface &other)=delete
 
virtual bool validateItems () const =0
 

Protected Member Functions

QString getUniqueName (std::string const &newName, std::string const &itemTypeName) const
 
bool nameHasChanged (std::string const &newName, std::string const &oldName) const
 

Detailed Description

Common functions for interfaces.

Definition at line 24 of file CommonInterface.h.

Constructor & Destructor Documentation

◆ CommonInterface() [1/2]

CommonInterface::CommonInterface ( )
default

The constructor.

◆ ~CommonInterface()

virtual CommonInterface::~CommonInterface ( )
virtualdefault

The destructor.

◆ CommonInterface() [2/2]

CommonInterface::CommonInterface ( const CommonInterface & other)
delete

No copying. No assignment.

Member Function Documentation

◆ getItemNames()

◆ getUniqueName()

QString CommonInterface::getUniqueName ( std::string const & newName,
std::string const & itemTypeName ) const
protected

Transform the selected name to a unique item name.

Parameters
[in]newNameThe selected name.
Returns
A unique name derived from the selected name.

◆ itemCount()

◆ nameHasChanged()

bool CommonInterface::nameHasChanged ( std::string const & newName,
std::string const & oldName ) const
protected

Check if the new name is different from the current name.

Parameters
[in]newNameThe new name.
[in]oldNameThe current name.
Returns
True, if the new name is different, false otherwise.

◆ operator=()

CommonInterface & CommonInterface::operator= ( const CommonInterface & other)
delete

◆ validateItems()


The documentation for this class was generated from the following file: