32 template<
typename T,
typename U = T>
38 std::vector<adtf::ucom::object_ptr<U>>
m_oTos;
66 "This port is already connected to a sample stream / binding proxy.");
69 for (
const auto& pTo:
m_oTos)
77 for (
const auto& pTo:
m_oTos)
115 for (
const auto& pTo:
m_oTos)
132 if (pFrom.
Get() !=
nullptr && pTo.
Get() !=
nullptr)
137 return pFrom->AttachRouting(pTo);
153 if (pFrom.
Get() !=
nullptr && pTo.
Get() !=
nullptr)
155 return pFrom->DetachRouting(pTo);
173 IFilterGraphDataPort,
174 named_graph_object<trigger_pipe_item<IFilterGraphDataInPort>>>
179 std::atomic_bool m_bActive;
192 tResult InnerDisconnect()
override;
197 bool IsConnected()
const override;
199 tResult SetInactive()
override;
216 IFilterGraphDataPort,
217 named_graph_object<trigger_pipe_item<IFilterGraphDataOutPort>>>
220 template <
typename T>
225 std::atomic_bool m_bActive;
246 bool IsConnected()
const override;
248 tResult SetInactive()
override;
263 IFilterGraphInterfacePort,
264 named_graph_object<IFilterGraphInterfaceServerPort>>
269 template <
typename T>
306 IFilterGraphInterfacePort,
307 named_graph_object<IFilterGraphInterfaceClientPort>>
312 template <
typename T>
330 tResult InnerUnbind()
override;
349 trigger_pipe_item<named_graph_object<IFilterGraphRunnerPort>>>
354 template <
typename T>
377 ant::ITriggerPipeSource,
378 ant::ITriggerPipeItem,
379 ant::INamedGraphObject,
381 ant::IFilterGraphPort,
382 ant::IFilterGraphRunnerPort,
383 base::flash::IRunnable>
395 ADTF_FLASH_TRIGGER_PIPE_ITEM_METHOD_DECLARATIONS
398 class cImplementation;
399 std::unique_ptr<cImplementation> m_pImplementation;
404 ant::ITriggerPipeSource,
405 ant::ITriggerPipeItem,
406 ant::INamedGraphObject,
410 IFilterGraphDataPort,
411 IFilterGraphDataInPort,
412 base::flash::IRunnable>
421 tResult InnerDisconnect()
override;
426 bool IsConnected()
const override;
428 tResult SetInactive()
override;
437 ADTF_FLASH_TRIGGER_PIPE_ITEM_METHOD_DECLARATIONS
440 class cImplementation;
441 std::unique_ptr<cImplementation> m_pImplementation;
445 ant::ITriggerPipeSource,
446 ant::ITriggerPipeItem,
447 ant::INamedGraphObject,
451 IFilterGraphDataPort,
452 IFilterGraphDataOutPort,
453 base::flash::IRunnable>
462 tResult InnerDisconnect()
override;
467 bool IsConnected()
const override;
469 tResult SetInactive()
override;
478 ADTF_FLASH_TRIGGER_PIPE_ITEM_METHOD_DECLARATIONS
481 class cImplementation;
482 std::unique_ptr<cImplementation> m_pImplementation;
499 IFilterGraphInterfacePort,
500 named_graph_object<IFilterGraphInterfaceClientPort>>
513 tResult InnerUnbind()
override;
525 class cImplementation;
526 std::unique_ptr<cImplementation> m_pImplementation;
538 ITriggerPipeHierachy>
545 ADTF_QUIET_TRIGGER_PIPE_ITEM_METHOD_DECLARATIONS
552 ITriggerPipeHierachy>
559 ADTF_QUIET_TRIGGER_PIPE_ITEM_METHOD_DECLARATIONS
566 ITriggerPipeHierachy>
573 ADTF_QUIET_TRIGGER_PIPE_ITEM_METHOD_DECLARATIONS
#define LOG_DETAIL(...)
Logs additional information.
#define RETURN_ERROR_DESC(_code,...)
Same as RETURN_ERROR(_error) using a printf like parameter list for detailed error description.
#define RETURN_IF_FAILED(s)
Return if expression is failed, which requires the calling function's return type to be tResult.
#define RETURN_NOERROR
Return status ERR_NOERROR, which requires the calling function's return type to be tResult.
A common result class usable as return value throughout.
Default implementation of a ClientPort.
cFilterGraphClientPort()=default
CTOR.
virtual ~cFilterGraphClientPort()=default
DTOR.
cFilterGraphClientPort(const char *strName)
CTOR with name.
The Default implementation of the DataInPort.
cFilterGraphDataInPort()=default
CTOR.
cFilterGraphDataInPort(const char *strName)
CTOR with name.
virtual ~cFilterGraphDataInPort()=default
DTOR.
The Default implementation of the IFilterGraphDataOutPort.
cFilterGraphDataOutPort()=default
CTOR.
cFilterGraphDataOutPort(const char *strName)
CTOR with name.
virtual ~cFilterGraphDataOutPort()=default
DTOR.
Default implementation of a RunnerPort.
virtual ~cFilterGraphRunnerPort()=default
DTOR.
cFilterGraphRunnerPort(const char *strName)
CTOR with name.
cFilterGraphRunnerPort()=default
CTOR.
Default implementation of a ServerPort .
virtual ~cFilterGraphServerPort()=default
DTOR.
cFilterGraphServerPort(const char *strName)
CTOR with name.
cFilterGraphServerPort()=default
CTOR.
cFilterGraphRunnerPort(const char *strName)
CTOR with name.
Default implementation of a ClientPort.
cFilterGraphClientPort()
CTOR.
virtual ~cFilterGraphClientPort()=default
DTOR.
cFilterGraphClientPort(const char *strName)
CTOR with name.
virtual T * Get() const =0
Get raw pointer to shared object.
Base object pointer to realize binary compatible reference counting in interface methods.
Object pointer implementation used for reference counting on objects of type IObject.
Use this template if you want to implement an ucom::ant::IObject based Interface and/or subclass an e...
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
adtf_util::cString get_named_graph_object_full_name(const INamedGraphObject &oGraphObject)
Helper function to retrieve a full qualified unique name of an object registered in IFilterGraph.
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Helper template class to route a ISampleStream or a IBindingProxy.
std::vector< adtf::ucom::object_ptr< U > > m_oTos
the to reference.
tResult DisconnectRouting(const adtf::ucom::ant::iobject_ptr< T > &pFrom, const adtf::ucom::ant::iobject_ptr< U > &pTo)
Disonnects the Routing.
tResult ResetFrom(const adtf::ucom::ant::iobject_ptr< T > &pFrom)
Resets the From Router.
tResult AddTo(const adtf::ucom::ant::iobject_ptr< U > &pTo)
Resets the To Routing.
adtf::ucom::object_ptr< T > m_pFrom
the from reference.
tResult ConnectRouting(const adtf::ucom::ant::iobject_ptr< T > &pFrom, const adtf::ucom::ant::iobject_ptr< U > &pTo)
Connects the Routing.
port_router()=default
CTOR.
Copyright © Audi Electronics Venture GmbH.