Go to the documentation of this file.
60 virtual std::string
name()
const;
62 virtual int width()
const = 0;
90 const std::pair<const Port*, const Port*>& pp1,
91 const std::pair<const Port*, const Port*>& pp2)
const;
virtual Socket * unconnectedSocket(int index) const
Port(const std::string &name, Unit &parentUnit)
virtual Socket * inputSocket() const
virtual ObjectState * saveState() const
bool operator()(const std::pair< const Port *, const Port * > &pp1, const std::pair< const Port *, const Port * > &pp2) const
virtual int width() const =0
static const std::string OSKEY_SECOND_SOCKET
ObjectState attribute key for the name of the other connected socket.
static const std::string OSNAME_PORT
ObjectState name for Port.
virtual int socketCount() const
std::string name_
Name of the port.
virtual void setName(const std::string &name)
virtual void loadState(const ObjectState *state)
virtual void attachSocket(Socket &socket)
Port & operator=(const Port &)
Assingment forbidden.
virtual void detachSocket(Socket &socket)
Unit * parentUnit_
Parent unit.
virtual bool isOutput() const
Socket * socket2_
Connection to the second socket.
Socket * socket1_
Connection to the first socket.
virtual std::string name() const
static const std::string OSKEY_NAME
ObjectState attribute key for the name of the port.
void loadStateWithoutReferences(const ObjectState *state)
virtual Socket * outputSocket() const
virtual bool isInput() const
virtual bool isConnectedTo(const Socket &socket) const
virtual void detachAllSockets()
static const std::string OSKEY_FIRST_SOCKET
ObjectState attribute key for the name of the connected socket.
Unit * parentUnit() const