ADTF  3.18.2
port_router< T, U >

Helper template class to route a ISampleStream or a IBindingProxy. More...

Public Member Functions

 port_router ()=default
 CTOR.
 
 ~port_router ()
 DTOR.
 
tResult ResetFrom (const adtf::ucom::ant::iobject_ptr< T > &pFrom)
 Resets the From Router. More...
 
tResult AddTo (const adtf::ucom::ant::iobject_ptr< U > &pTo)
 Resets the To Routing. More...
 
void RemoveTos ()
 
tResult ConnectRouting (const adtf::ucom::ant::iobject_ptr< T > &pFrom, const adtf::ucom::ant::iobject_ptr< U > &pTo)
 Connects the Routing. More...
 
tResult DisconnectRouting (const adtf::ucom::ant::iobject_ptr< T > &pFrom, const adtf::ucom::ant::iobject_ptr< U > &pTo)
 Disonnects the Routing. More...
 

Public Attributes

adtf::ucom::object_ptr< T > m_pFrom
 the from reference.
 
std::vector< adtf::ucom::object_ptr< U > > m_oTos
 the to reference.
 

Detailed Description

template<typename T, typename U = T>
struct adtf::streaming::ant::detail::port_router< T, U >

Helper template class to route a ISampleStream or a IBindingProxy.

Definition at line 33 of file filtergraphport.h.

Member Function Documentation

◆ AddTo()

tResult AddTo ( const adtf::ucom::ant::iobject_ptr< U > &  pTo)
inline

Resets the To Routing.

Parameters
pTothe to reference.
Returns
Standard Result Code

Definition at line 91 of file filtergraphport.h.

References port_router< T, U >::ConnectRouting(), iobject_ptr_base< T >::Get(), port_router< T, U >::m_oTos, port_router< T, U >::m_pFrom, RETURN_IF_FAILED, and RETURN_NOERROR.

◆ ConnectRouting()

tResult ConnectRouting ( const adtf::ucom::ant::iobject_ptr< T > &  pFrom,
const adtf::ucom::ant::iobject_ptr< U > &  pTo 
)
inline

Connects the Routing.

Parameters
pFromthe from reference.
pTothe to reference.
Returns
Standard Result Code

Definition at line 129 of file filtergraphport.h.

References iobject_ptr_base< T >::Get(), adtf::streaming::ant::get_named_graph_object_full_name(), LOG_DETAIL, and RETURN_NOERROR.

Referenced by port_router< T, U >::AddTo(), and port_router< T, U >::ResetFrom().

◆ DisconnectRouting()

tResult DisconnectRouting ( const adtf::ucom::ant::iobject_ptr< T > &  pFrom,
const adtf::ucom::ant::iobject_ptr< U > &  pTo 
)
inline

Disonnects the Routing.

Parameters
pFromthe from reference.
pTothe to reference.
Returns
Standard Result Code

Definition at line 150 of file filtergraphport.h.

References iobject_ptr_base< T >::Get(), and RETURN_NOERROR.

Referenced by port_router< T, U >::ResetFrom().

◆ ResetFrom()

tResult ResetFrom ( const adtf::ucom::ant::iobject_ptr< T > &  pFrom)
inline