Kactus2
Kactus2 reference guide
Loading...
Searching...
No Matches
MasterPortInterface.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------
2// File: MasterPortInterface.h
3//-----------------------------------------------------------------------------
4// Project: Kactus2
5// Author: Mikko Teuho
6// Date: 14.12.2020
7//
8// Description:
9// Master interface for editing component ports and port abstractions.
10//-----------------------------------------------------------------------------
11
12#ifndef MASTERPORTINTERFACE_H
13#define MASTERPORTINTERFACE_H
14
15#include <KactusAPI/KactusAPIGlobal.h>
16
17#include <NameGroupInterface.h>
18
19#include <IPXACTmodels/common/DirectionTypes.h>
20
21//-----------------------------------------------------------------------------
23//-----------------------------------------------------------------------------
24class KACTUS2_API MasterPortInterface : public NameGroupInterface
25{
26public:
27
32
36 virtual ~MasterPortInterface() = default;
37
43 virtual void addWirePort(std::string const& newPortName = std::string()) = 0;
44
50 virtual void addTransactionalPort(std::string const& newPortName = std::string()) = 0;
51
59 virtual bool portIsWire(std::string const& portName) const = 0;
60
68 virtual bool portIsTransactional(std::string const& portName) const = 0;
69
75 std::string getIconPathForMissingPort() const;
76
84 std::string getIconPathForDirection(DirectionTypes::Direction direction) const;
85
93 std::string getIconPathForInitiative(QString const& initiative) const;
94
98};
99
100#endif // MASTERPORTINTERFACE_H
virtual void addTransactionalPort(std::string const &newPortName=std::string())=0
MasterPortInterface & operator=(const MasterPortInterface &other)=delete
virtual void addWirePort(std::string const &newPortName=std::string())=0
std::string getIconPathForMissingPort() const
std::string getIconPathForDirection(DirectionTypes::Direction direction) const
MasterPortInterface(const MasterPortInterface &other)=delete
No copying. No assignment.
std::string getIconPathForInitiative(QString const &initiative) const
virtual ~MasterPortInterface()=default
virtual bool portIsTransactional(std::string const &portName) const =0
virtual bool portIsWire(std::string const &portName) const =0