ADTF
|
Default implementation for the IFilterGraph interface. More...
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) |
This is to intialize and build an FilterGraph. 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... | |
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 |
Private Member Functions | |
template<typename OBJECT_INTERFACE > | |
tResult | EraseObject (const ucom::ant::iobject_ptr< OBJECT_INTERFACE > &pGraphObject) |
Private Attributes | |
std::map< adtf_util::cString, ucom::object_ptr< INamedGraphObject > > | m_oGraphObjects |
Graph Object Registry. | |
std::multimap< int32_t, ucom::object_ptr< INamedGraphObject > > | m_oObjectOrder |
Graph Object Registry. | |
Default implementation for the IFilterGraph interface.
|
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.
[in] | pGraphObject | The item to add. |
[in] | ui32OrderNumber | The initialize order number of the item. |
ERR_INVALID_ARG | No name set for graph object. |
ERR_RESOURCE_IN_USE | There is already a graph object with the name. |
Reimplemented in graph< INTERFACE >.
Referenced by adtf::streaming::devil::add_binding_proxy(), adtf::streaming::devil::add_data_in_port(), adtf::streaming::devil::add_data_out_port(), adtf::streaming::devil::add_graph_object(), adtf::streaming::devil::add_sample_stream_in_port(), adtf::streaming::devil::add_sample_stream_out_port(), and graph< INTERFACE >::AddNamedGraphObject().
tResult RemoveNamedGraphObject | ( | const char * | strName | ) |
Removes a named Object from the Filter Graph.
[in] | strName | Name of the item to remove. |
ERR_NOT_FOUND | No item with the name strName exists |
|
virtual |
Removes a Named Graph Object by instance.
This virtual function must be overwritten by any derived class.
pGraphObject | the Graph Object to remove |