42 const std::map<util::cString, util::cString>& oProperties,
49 if (!oProperties.empty())
51 auto pConfiguration = ucom::ucom_cast<base::IConfiguration*>(pNewObject.
Get());
52 for (
const auto& oProperty: oProperties)
54 base::set_property_by_path<util::cString>(*pConfiguration, oProperty.first, oProperty.second);
59 return pObject.
Reset(pNewObject);
75 const std::map<util::cString, util::cString>& oProperties = {},
76 int32_t nOrderNumber = 0)
79 return add_graph_object(oGraph, strCID, strName, oProperties, nOrderNumber, pObject);
82 inline tResult add_sample_stream(ant::cGraph& oGraph,
88 RETURN_IF_FAILED(oGraph.AddNamedGraphObject(pNewSampleStream, nOrderNumber));
89 return pSampleStream.
Reset(pNewSampleStream);
102 int32_t nOrderNumber = 0)
105 return add_sample_stream(oGraph, strName, nOrderNumber, pSampleStream);
119 int32_t nOrderNumber,
124 return pBindingProxy.
Reset(pNewBindingProxy);
151 int32_t nOrderNumber,
156 return pPort.
Reset(pNewPort);
169 int32_t nOrderNumber = 0)
186 int32_t nOrderNumber,
191 return pPort.
Reset(pNewPort);
204 int32_t nOrderNumber = 0)
223 int32_t nOrderNumber,
228 return pPort.
Reset(pNewPort);
243 int32_t nOrderNumber = 0)
262 int32_t nOrderNumber,
267 return pPort.
Reset(pNewPort);
282 int32_t nOrderNumber = 0)
302 adtf::ucom::object_vector<IPin> oPins;
304 for (
auto& pPin: oPins)
319 adtf::ucom::object_vector<IBindingObject> oBindingObjects;
321 for (
auto& pBindingObject: oBindingObjects)
335 adtf::ucom::object_vector<IRunner> oRunnerObjects;
336 pRuntimeBehaviour->
GetRunners(oRunnerObjects);
337 for (
auto& pRunner: oRunnerObjects)
360 adtf::ucom::object_vector<INamedGraphObject> oChildren;
362 for (
auto& pChild: oChildren)
379 auto pDataBinding = ucom_cast<IDataBinding*>(&oObject);
385 auto pInterfaceBinding = ucom_cast<IInterfaceBinding*>(&oObject);
386 if (pInterfaceBinding)
391 auto pRuntimeBehaviour = ucom_cast<IRuntimeBehaviour*>(&oObject);
392 if (pRuntimeBehaviour)
397 auto pGraph = ucom_cast<IGraph*>(&oObject);
410 using devil::add_sample_stream;
#define RETURN_IF_FAILED(s)
Return if expression is failed, which requires the calling function's return type to be tResult.
A common result class usable as return value throughout.
The IDataBinding interfaces provides methods for retrive information of the Pins published.
virtual tResult GetPins(ucom::ant::iobject_list< IPin > &lstPins) const =0
Returns the current Pins (only const access).
Defines the Interface used to connect Items to each other.
virtual tResult GetNamedGraphObjects(ucom::ant::iobject_list< INamedGraphObject > &lstItems) const =0
Gets a every registered graph objects.
The IInterfaceBinding provides an interface to implement and access a common dynamic binding object r...
virtual tResult GetBindingObjects(iobject_list< IBindingObject > &lstBindingObject)=0
Return a list of all Binding Objects on lstBindingObject.
Interface for a NamedGraphObject which can be added to the FilterGraph.
The RuntimeBehaviour interface is to clearly define a filters running entry points (IRunner) and thei...
virtual tResult GetRunners(iobject_list< IRunner > &lstRunners) const =0
Returns the current Runners.
Default implementation for the IFilterGraph interface.
virtual tResult AddNamedGraphObject(const ucom::ant::iobject_ptr< INamedGraphObject > &pGraphObject, int32_t ui32OrderNumber)
This is to intialize and build an FilterGraph.
virtual tResult CreateInstance(const char *strCID, iobject_ptr< IObject > &pObject, const tChar *strNameOfObject="") const =0
Creates a new instance of an object.
Interface definition for a container of objects.
virtual tResult PushObject(const value_type &oObject)=0
Pushes a object of value_type to the container.
virtual tResult Reset(const iobject_ptr< T > &i_oOther)=0
Reset this object_ptr<> with the content of another iobject_ptr<>
Base object pointer to realize binary compatible reference counting in interface methods.
Object pointer implementation used for reference counting on objects of type IObject.
virtual T * Get() const
Get pointer to shared object.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
string_base< cStackString > cString
cString implementation for a stack string which works on stack if string is lower than A_UTILS_DEFAUL...
tResult add_binding_proxy(ant::cGraph &oGraph, const util::cString &strName, int32_t nOrderNumber, ucom::iobject_ptr< ucom::IObject > &pBindingProxy)
adds a Binding Proxy to a graph and return the created proxy.
tResult add_sample_stream_in_port(ant::cGraph &oGraph, const util::cString &strName, const util::cString &strPortID, int32_t nOrderNumber, ucom::iobject_ptr< ucom::IObject > &pPort)
adds a Stream In Port to a graph and return the created port.
tResult add_sample_stream_out_port(ant::cGraph &oGraph, const util::cString &strName, const util::cString &strPortID, int32_t nOrderNumber, ucom::iobject_ptr< ucom::IObject > &pPort)
adds a Stream Out Port to a graph and return the created port.
tResult add_data_out_port(ant::cGraph &oGraph, const util::cString &strName, int32_t nOrderNumber, ucom::iobject_ptr< ucom::IObject > &pPort)
adds an Out Port to a graph and return the created port.
tResult add_graph_object(ant::cGraph &oGraph, const util::cString &strCID, const util::cString &strName, const std::map< util::cString, util::cString > &oProperties, int32_t nOrderNumber, ucom::iobject_ptr< ucom::IObject > &pObject)
Convenience functionality to create and add add graph object to a existing graph.
tResult add_data_in_port(ant::cGraph &oGraph, const util::cString &strName, int32_t nOrderNumber, ucom::iobject_ptr< ucom::IObject > &pPort)
adds an In Port to a graph and return the created port.
void get_runner_objects(ant::IRuntimeBehaviour *pRuntimeBehaviour, ucom::ant::iobject_enum< ucom::ant::IObject > &oObjects)
Get all runner objects object out of pRuntimeBehaviour.
void get_child_objects(ant::INamedGraphObject &oObject, ucom::ant::iobject_enum< ucom::ant::IObject > &oObjects)
Get all child objects of the given oObject.
void get_data_binding_objects(ant::IDataBinding *pDataBinding, ucom::ant::iobject_enum< adtf::ucom::ant::IObject > &oObjects)
Get all the data binding objects out of pDataBinding.
void get_graph_objects(ant::IGraph *pGraph, ucom::ant::iobject_enum< ucom::ant::IObject > &oObjects)
Get all graph objects out of the pGraph.
void get_interface_binding_objects(ant::IInterfaceBinding *pInterfaceBinding, ucom::ant::iobject_enum< adtf::ucom::ant::IObject > &oObjects)
Get all the interface binding objects out of pInterfaceBinding.
Namespace for the ADTF uCOM3 SDK.
Namespace for entire ADTF SDK.
adtf::ucom::IRuntime * _runtime
Global Runtime Pointer to reference to the current runtime.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.