42 #include "../internal/ConnFactory.hpp" 45 #include "../os/traces.h" 85 {
throw std::runtime_error(
"calling default OutputPortInterface::write(datasource) implementation"); }
static ConnPolicy data(int lock_policy=LOCK_FREE, bool init_connection=true, bool pull=false)
bool createDataConnection(InputPortInterface &sink, int lock_policy=ConnPolicy::LOCK_FREE)
boost::intrusive_ptr< SharedConnectionBase > shared_ptr
#define tracepoint(provider, tracepoint,...)
static bool createSharedConnection(base::OutputPortInterface *output_port, base::InputPortInterface *input_port, SharedConnectionBase::shared_ptr shared_connection, ConnPolicy const &policy)
virtual WriteStatus write(DataSourceBase::shared_ptr source)
virtual ChannelElementBase * getEndpoint() const =0
bool createConnection(InputPortInterface &sink)
virtual bool connectTo(PortInterface *other, ConnPolicy const &policy)
static ConnPolicy buffer(int size, int lock_policy=LOCK_FREE, bool init_connection=false, bool pull=false)
virtual bool addConnection(internal::ConnID *port_id, ChannelElementBase::shared_ptr channel_input, ConnPolicy const &policy)
virtual bool connected() const
boost::intrusive_ptr< ChannelElementBase > shared_ptr
internal::ConnectionManager cmanager
virtual void disconnect()
bool addConnection(ConnID *port_id, base::ChannelElementBase::shared_ptr channel, ConnPolicy policy)
boost::intrusive_ptr< DataSourceBase > shared_ptr
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
const std::string & getFullName() const
virtual bool connectionAdded(ChannelElementBase::shared_ptr channel_input, ConnPolicy const &policy)=0
bool createBufferConnection(InputPortInterface &sink, int size, int lock_policy=ConnPolicy::LOCK_FREE)
virtual ~OutputPortInterface()
OutputPortInterface(OutputPortInterface const &orig)