18 #ifndef MAUVE_RUNTIME_ABSTRACT_PORT_HPP 19 #define MAUVE_RUNTIME_ABSTRACT_PORT_HPP 55 virtual std::string
type_name()
const = 0;
virtual connection_type get_type() const =0
Get port type.
Abstract Port class.
Definition: AbstractPort.hpp:35
const std::string name
Port name.
Definition: AbstractPort.hpp:49
virtual bool connect_service(Service *service)=0
Connect the port to a service.
virtual bool is_connected() const =0
Check if the port is connected.
virtual std::vector< Service * > connected_services() const =0
Get the list of connected services.
The MAUVE namespace.
Definition: tracing.hpp:24
A Service.
Definition: Service.hpp:30
connection_type
Port types.
Definition: AbstractPort.hpp:28
virtual Service * get_connection(int index) const =0
Get connected Service according to the index.
virtual std::size_t connections_size() const =0
Get the number of connected services.
virtual bool disconnect()=0
Disconnect the port.
virtual std::string type_name() const =0
Get port type name.