#include <SHEndpoint.h>
Inheritance diagram for SH::Endpoint:
Public Member Functions | |
Endpoint (Base *mySH, bool isSink) | |
virtual | ~Endpoint () |
void | init () |
void | uninit () |
virtual void | pushReport (ReportPtr report)=0 |
virtual SH_RC | connect (Endpoint *ep) |
virtual SH_RC | disconnect () |
bool | is_connected () const |
bool | is_sink () const |
Base * | sh () |
Retrieve the owning stream handler (for child classes only). | |
virtual SH_RC | changePos (u_int64 pos)=0 |
Protected Member Functions | |
virtual void | push_report_to_peer (ReportPtr report)=0 |
|
Endpoint(const DataPort& port) The primary constructor is meant to instantiate end points of a stream handler from their specification. The specification is stored in DataPort structures, the instantiation is requested by the graph manager. |
|
|
|
Implemented in SH::SinkEndpoint, and SH::SourceEndpoint.
|
|
This function is mainly intended to remember that this endpoint is now connected, and the other endpoint's pointer. An error is return if a connection has already been made to this endpoint. Child classes may add additional checks. Reimplemented in SH::SinkEndpoint, and SH::SourceEndpoint.
|
|
Remove a connection that has been made. Reimplemented in SH::SinkEndpoint, and SH::SourceEndpoint.
|
|
|
|
Indicates whether this endpoints if connected to exactly one other endpoint. |
|
Indicates whether this endpoint is a source or a sink. |
|
If this endpoints is connected, the Base can send the given report to the connected endpoint by calling this function on its own endpoint. Implemented in SH::SinkEndpoint, and SH::SourceEndpoint.
|
|
This endpoint receives a report from its connected endpoint. The direction (upstream,downstream) of the report is implicit. The interpretation of the report is specific to the stream handler. If an endpoint in the opposite direction exists, a stream handler must forward reports to all endpoints at the opposite side if it is unable to interpret that report. Implemented in SH::SinkEndpoint, and SH::SourceEndpoint.
|
|
Retrieve the owning stream handler (for child classes only).
|
|
|