40 #include "../Service.hpp" 41 #include "../OperationCaller.hpp" 42 #include "../internal/ConnFactory.hpp" 49 : name(name), iface(0), cmanager(this) {}
84 "Returns the port name.");
The Interface of a TaskContext which exposes its data-flow ports.
boost::intrusive_ptr< SharedConnectionBase > shared_ptr
virtual bool isLocal() const
Returns true if this port is located on this process, and false otherwise.
bool removeConnection(ConnID *port_id, bool disconnect=true)
virtual internal::SharedConnectionBase::shared_ptr getSharedConnection() const
Returns a pointer to the shared connection element this port may be connected to. ...
PortInterface(const std::string &name)
bool connectedTo(base::PortInterface *port)
Returns true if there exists a connection to the given port.
const std::string & getName() const
Get the name of this Port.
DataFlowInterface * getInterface() const
Returns the DataFlowInterface this port belongs to or null if it was not added to such an interface...
This class allows storage and retrieval of operations, ports, attributes and properties provided by a...
Represents a local connection created by the ConnFactory.
virtual void disconnect()=0
Removes any connection that either go to or come from this port.
Convenient short notation for every sub-namespace of RTT.
Operation< Signature > & addSynchronousOperation(Operation< Signature > &op)
Add an operation object to the interface.
virtual bool removeConnection(internal::ConnID *cid)
Removes a user created connection from this port.
virtual Service * createPortObject()
Create accessor Object for this Port, for addition to a TaskContext Object interface.
virtual bool connectedTo(PortInterface *port)
Returns true if this port is connected to the given port.
bool setName(const std::string &name)
Change the name of this unconnected Port.
virtual int serverProtocol() const
Returns the protocol over which this port can be accessed.
bool setPortDescription(const std::string &name, const std::string description)
Sets the description for the service of an added port.
internal::ConnectionManager cmanager
void setInterface(DataFlowInterface *iface)
Once a port is added to a DataFlowInterface, it gets a pointer to that interface. ...
DataFlowInterface * iface
virtual internal::ConnID * getPortID() const
Returns the identity of this port in a ConnID object.
This class is used in places where a permanent representation of a reference to a connection is neede...
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
PortInterface & doc(const std::string &desc)
Set the documentation of this port.
virtual bool connected() const =0
Returns true if this port is connected.
The base class of every data flow port.
TaskContext * getOwner() const
Returns the component this interface belongs to.
internal::SharedConnectionBase::shared_ptr getSharedConnection() const
Returns a pointer to the shared connection element this port may be connected to. ...