ADTF
cStreamingGraph
Inheritance diagram for cStreamingGraph:
[legend]

Public Member Functions

tResult AddNamedGraphObject (const ucom::ant::iobject_ptr< INamedGraphObject > &pItem, int32_t ui32OrderNumber) override
 
tResult RemoveNamedGraphObject (const ucom::ant::iobject_ptr< INamedGraphObject > &pGraphObject) override
 
tResult AddStreamIn (const char *strName, const char *strSampleStreamSource, const char *strSampleStreamPin, const char *strAlias)
 
tResult AddStreamOut (const char *strName, const char *strSampleStreamSink, const char *strSampleStreamPin, const char *strAlias)
 
tResult AddStreamInterfaceIn (const char *strName, const char *strSampleStreamSource, const char *strSampleStreamPin, const char *strBindingProxy)
 
tResult AddStreamInterfaceOut (const char *strName, const char *strBindingProxy, const char *strSampleStreamSink, const char *strSampleStreamPin)
 
tResult AddConnection (const char *strName, const char *strSourceName, const char *strSourceConnector, const char *strDestinationName, const char *strDestinationConnector, int32_t ui32OrderNumber, bool bSync)
 
tResult SetState (tStreamingState eState) override
 
tStreamingState GetState () override
 
tResult SetFiltergraphSubState (IFilterGraph::tFilterGraphState eFilterGraphState)
 Since Micro Runlevels are in use we have substates where streaming graph is constructed and the filtergraph is initialized step by step. More...
 
tResult RemoveNamedGraphObject (const char *strName)
 Removes a named Object from the Filter Graph. More...
 
virtual tResult RemoveNamedGraphObject (const ucom::ant::iobject_ptr< INamedGraphObject > &pGraphObject)
 Removes a Named Graph Object by instance. More...
 
- Public Member Functions inherited from named_graph_object< graph< IStreamingGraph > >
 named_graph_object ()
 CTOR.
 
 named_graph_object (const char *strName)
 CTOR with name. More...
 
virtual ~named_graph_object ()=default
 DTOR.
 
tResult SetName (const char *strName) override
 Sets the Name of the object. More...
 
tResult GetName (base::ant::IString &&strName) const override
 Gets the Name of the object. More...
 
tResult SetParent (const ucom::ant::IObject *poParentObject) override
 Sets Parent of the object. More...
 
tResult GetParent (const ucom::ant::IObject *&poParentObject) const override
 Gets the Parent of the object. More...
 
- Public Member Functions inherited from object< Bases >
tResult GetInterface (const char *i_strIID, void *&o_pInterface) override
 Query interfaces on an object. More...
 
tResult GetInterface (const char *i_strIID, const void *&o_pInterface) const override
 Provides const correct interface querying. More...
 
void Destroy () const override
 Destruct and deallocate instantiations of type IObject. More...
 
- Public Member Functions inherited from IObject
 ADTF_IID (IObject, "object.ant.ucom.adtf.iid")
 Marks the IObject to be castable with the ucom_cast() More...
 

Private Member Functions

tResult SetStateImpl (tStreamingState eFromState, tStreamingState eToState, tStreamingState &eErrorState, std::optional< IFilterGraph::tFilterGraphState > eFilterGraphSubState) const
 
tResult RegisterFilterGraph (IFilterGraph &oFiltergraph)
 
tResult UnregisterFilterGraph (IFilterGraph *oFiltergraph)
 
template<typename T >
tResult AddStreamPort (const adtf_util::cString &strPrefix, const ucom::object_ptr< T > &pPort, uint8_t eCat)
 
template<typename T >
tResult AddStreamInterfacePort (const adtf_util::cString &strPrefix, const ucom::object_ptr< T > &pPort, uint8_t eCat)
 
tResult RegisterFiltergraphStreamPorts (const adtf_util::cString &strPrefix, IFilterGraph &oFiltergraph)
 
void DestructAllObjects ()
 
void DestructObject (ucom::ant::object_ptr< IStreamingService > pService)
 
tResult Init () const
 
tResult Shutdown (std::optional< IFilterGraph::tFilterGraphState > eFilterGraphSubState) const
 
tResult StartStreaming () const
 
tResult StopStreaming () const
 

Private Attributes

ucom::ant::object_ptr< IFilterGraphm_pFilterGraph
 
IStreamingGraph::tStreamingState m_eStreamingState = IStreamingGraph::tStreamingState::State_Constructed
 

Additional Inherited Members

- Protected Member Functions inherited from named_graph_object< graph< IStreamingGraph > >
 named_graph_object (const named_graph_object &)=delete
 delete copy CTOR
 
 named_graph_object (named_graph_object &&)=delete
 delete move CTOR
 
named_graph_objectoperator= (const named_graph_object &)=delete
 delete copy operator
 
named_graph_objectoperator= (named_graph_object &&)=delete
 delete move operator
 
void LogNamedMessage (const char *strMessage)
 Helper to log a message with the full name of the object. More...
 
- Protected Member Functions inherited from IObject
 ~IObject ()=default
 Protected destructor --> Use implemented Destroy() instead of delete!
 

Detailed Description

Definition at line 24 of file streaming_graph.h.

Member Function Documentation

◆ RemoveNamedGraphObject() [1/2]

tResult RemoveNamedGraphObject

Removes a named Object from the Filter Graph.

Parameters
[in]strNameName of the item to remove.
Returns
Standard Result Code
Return values
ERR_NOT_FOUNDNo item with the name strName exists

◆ RemoveNamedGraphObject() [2/2]

virtual tResult RemoveNamedGraphObject

Removes a Named Graph Object by instance.

This virtual function must be overwritten by any derived class.

Parameters
pGraphObjectthe Graph Object to remove
Returns
tResult

◆ SetFiltergraphSubState()

tResult SetFiltergraphSubState ( IFilterGraph::tFilterGraphState  eFilterGraphState)

Since Micro Runlevels are in use we have substates where streaming graph is constructed and the filtergraph is initialized step by step.

This internal method is to set such an substate.

Remarks
A call on this method is only valid if at least adtf::streaming::IStreamingGraph::tStreamingState::State_Constructed has been reached AND the filtergraph has been added!