ADTF
Loading...
Searching...
No Matches
adtf::streaming::ant::cGraph Class Reference

#include <graph.h>

Inherited by adtf::streaming::ant::graph< INTERFACE >.

Public Member Functions

 cGraph ()=default
 CTOR.
 
virtual ~cGraph ()
 DTOR.
 
tResult GetNamedGraphObject (const char *strName, ucom::ant::iobject_ptr< ucom::ant::IObject > &pObject) const
 
tResult GetNamedGraphObjects (ucom::ant::iobject_list< INamedGraphObject > &lstItems) const
 
virtual tResult AddNamedGraphObject (const ucom::ant::iobject_ptr< INamedGraphObject > &pGraphObject, int32_t ui32OrderNumber)
 
tResult RemoveNamedGraphObject (const char *strName)
 
virtual tResult RemoveNamedGraphObject (const ucom::ant::iobject_ptr< INamedGraphObject > &pGraphObject)
 Removes a Named Graph Object by instance. This virtual function must be overwritten by any derived class.
 

Protected Member Functions

tResult CheckName (const adtf_util::cString &strObjectName)
 
template<typename OBJECT_INTERFACE>
tResult AddObject (const ucom::ant::iobject_ptr< OBJECT_INTERFACE > &pGraphObject, int32_t ui32OrderNumber)
 
tResult RemoveAllConnectionsFrom (const INamedGraphObject *pObj)
 
tResult AddAlias (const char *strAliasName, const ucom::ant::iobject_ptr< INamedGraphObject > &pGraphObject)
 
tResult GetAliasObjects (ucom::ant::iobject_list< INamedGraphObject > &lstItems) const
 

Detailed Description

Default implementation for the IFilterGraph interface.

Member Function Documentation

◆ AddNamedGraphObject()

virtual tResult adtf::streaming::ant::cGraph::AddNamedGraphObject ( const ucom::ant::iobject_ptr< INamedGraphObject > & pGraphObject,
int32_t ui32OrderNumber )
virtual

This is to intialize and build an FilterGraph. See the INamedGraphObject and all derived default implementations within the SDK.

Items with the same ui32OrderNumber will initialized in order of AddNamedGraphObject call.

Parameters
[in]pGraphObjectThe item to add.
[in]ui32OrderNumberThe initialize order number of the item.
See also
INamedGraphObject
Returns
Standard Result Code
Return values
ERR_INVALID_ARGNo name set for graph object.
ERR_RESOURCE_IN_USEThere is already a graph object with the name.

Reimplemented in adtf::streaming::ant::graph< INTERFACE >, and adtf::streaming::graph< INTERFACE >.

◆ RemoveNamedGraphObject() [1/2]

tResult adtf::streaming::ant::cGraph::RemoveNamedGraphObject ( const char * strName)

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 adtf::streaming::ant::cGraph::RemoveNamedGraphObject ( const ucom::ant::iobject_ptr< INamedGraphObject > & pGraphObject)
virtual

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

The documentation for this class was generated from the following file: