40 const util::cString& strCID,
41 const util::cString& strName,
42 const std::map<util::cString, util::cString>& oProperties,
47 RETURN_IF_FAILED(_runtime->CreateInstance(strCID, pNewObject));
48 RETURN_IF_FAILED(pNewObject->SetName(strName));
49 if (!oProperties.empty())
52 for (
const auto& oProperty: oProperties)
54 base::set_property_by_path<util::cString>(*pConfiguration, oProperty.first, oProperty.second);
59 return pObject.
Reset(pNewObject);
73 const util::cString& strCID,
74 const util::cString& strName,
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);
82inline tResult add_sample_stream(ant::cGraph& oGraph,
83 const util::cString& strName,
88 RETURN_IF_FAILED(oGraph.AddNamedGraphObject(pNewSampleStream, nOrderNumber));
89 return pSampleStream.
Reset(pNewSampleStream);
101 const util::cString& strName,
102 int32_t nOrderNumber = 0)
105 return add_sample_stream(oGraph, strName, nOrderNumber, pSampleStream);
118 const util::cString& strName,
119 int32_t nOrderNumber,
124 return pBindingProxy.
Reset(pNewBindingProxy);
150 const util::cString& strName,
151 int32_t nOrderNumber,
156 return pPort.
Reset(pNewPort);
168 const util::cString& strName,
169 int32_t nOrderNumber = 0)
185 const util::cString& strName,
186 int32_t nOrderNumber,
191 return pPort.
Reset(pNewPort);
203 const util::cString& strName,
204 int32_t nOrderNumber = 0)
221 const util::cString& strName,
222 const util::cString& strPortID,
223 int32_t nOrderNumber,
228 return pPort.
Reset(pNewPort);
241 const util::cString& strName,
242 const util::cString& strPortID,
243 int32_t nOrderNumber = 0)
260 const util::cString& strName,
261 const util::cString& strPortID,
262 int32_t nOrderNumber,
267 return pPort.
Reset(pNewPort);
280 const util::cString& strName,
281 const util::cString& strPortID,
282 int32_t nOrderNumber = 0)
304 for (
auto& pPin: oPins)
321 for (
auto& pBindingObject: oBindingObjects)
336 pRuntimeBehaviour->
GetRunners(oRunnerObjects);
337 for (
auto& pRunner: oRunnerObjects)
362 for (
auto& pChild: oChildren)
386 if (pInterfaceBinding)
392 if (pRuntimeBehaviour)
406using devil::add_graph_object;
407using devil::add_binding_proxy;
408using devil::add_data_in_port;
409using devil::add_data_out_port;
410using devil::add_sample_stream;
411using devil::add_sample_stream_in_port;
412using devil::add_sample_stream_out_port;
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736
Definition data_binding_intf.h:24
virtual tResult GetPins(ucom::ant::iobject_list< IPin > &lstPins) const =0
Definition graph_intf.h:103
virtual tResult GetNamedGraphObjects(ucom::ant::iobject_list< INamedGraphObject > &lstItems) const =0
Definition interface_binding_intf.h:27
virtual tResult GetBindingObjects(iobject_list< IBindingObject > &lstBindingObject)=0
Definition named_graph_object_intf.h:25
Definition runtime_behaviour_intf.h:22
virtual tResult GetRunners(iobject_list< IRunner > &lstRunners) const =0
virtual tResult AddNamedGraphObject(const ucom::ant::iobject_ptr< INamedGraphObject > &pGraphObject, int32_t ui32OrderNumber)
Definition object_list.h:22
virtual tResult PushObject(const value_type &oObject)=0
virtual tResult Reset(const iobject_ptr< T > &i_oOther)=0
Reset this object_ptr<> with the content of another iobject_ptr<>
Definition object_ptr.h:384
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.
Definition graph_utils.h:117
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.
Definition graph_utils.h:259
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.
Definition graph_utils.h:220
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.
Definition graph_utils.h:149
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.
Definition graph_utils.h:39
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.
Definition graph_utils.h:184
void get_runner_objects(ant::IRuntimeBehaviour *pRuntimeBehaviour, ucom::ant::iobject_enum< ucom::ant::IObject > &oObjects)
Get all runner objects object out of pRuntimeBehaviour.
Definition graph_utils.h:333
void get_child_objects(ant::INamedGraphObject &oObject, ucom::ant::iobject_enum< ucom::ant::IObject > &oObjects)
Get all child objects of the given oObject.
Definition graph_utils.h:375
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.
Definition graph_utils.h:299
void get_graph_objects(ant::IGraph *pGraph, ucom::ant::iobject_enum< ucom::ant::IObject > &oObjects)
Get all graph objects out of the pGraph.
Definition graph_utils.h:357
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.
Definition graph_utils.h:316
Namespace for the ADTF Streaming SDK.
Definition bindingproxyinport.h:14
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.
Definition graph_utils.h:39
object_enum< T, INTERFACE_TYPE, std::vector > object_vector
Definition object_list.h:410
Namespace for the ADTF uCOM SDK.
Definition adtf_system.h:324
InterfacePointerType ucom_cast(ObjectPointerType i_pObject) noexcept
Alias always bringing the latest version of ant::ucom_cast() into scope.
Definition ucom_cast.h:157
ant::iobject_ptr< T > iobject_ptr
Alias always bringing the latest version of ant::iobject_ptr into scope.
Definition object_ptr_intf.h:437
object_ptr< Implementation > make_object_ptr(Args &&... args)
Alias always bringing the latest version of ant::make_object_ptr() into scope.
Definition object_ptr_utilities.h:129
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtf_client_connector.h:14