ADTF  3.18.2
graph_intf.h
Go to the documentation of this file.
1 
7 #pragma once
8 
10 
11 #include <adtfucom3/adtf_ucom3.h>
12 
13 namespace adtf
14 {
15 namespace streaming
16 {
17 namespace ant
18 {
24  {
25  protected:
27  ~IGraphConnection() = default;
28 
29  public:
31  ADTF_IID(IGraphConnection, "graphconnection.ant.streaming.adtf.iid");
32 
33  public:
34 
41 
47  virtual tResult GetSourceName(base::ant::IString&& strName) const = 0;
48 
54  virtual tResult GetSourceConnectorName(base::ant::IString&& strName) const = 0;
55 
62 
68  virtual tResult GetDestinationName(base::ant::IString&& strName) const = 0;
69 
76 
83  virtual tResult Connect() = 0;
84 
89  virtual tResult Disconnect() = 0;
90 
96  virtual bool IsConnected() const = 0;
97  };
98 
103  class IGraph : public ucom::ant::IObject
104  {
105  protected:
107  ~IGraph() = default;
108 
109  public:
111  ADTF_IID(IGraph, "graph.ant.streaming.adtf.iid");
112 
113 
124  virtual tResult GetNamedGraphObject(const char* strName, ucom::ant::iobject_ptr<IObject>& pObject) const = 0;
125 
134 
135  };
136 
137 } //namespace ant
139 using ant::IGraph;
140 
141 } //namespace streaming
142 } //namespace adtf
Copyright © Audi Electronics Venture GmbH.
The IString interface provides methods for getting and setting strings through abstract interfaces.
Definition: string_intf.h:28
Interface to describe a connection within the IGraph.
Definition: graph_intf.h:24
virtual tResult Disconnect()=0
Disconnects the connection between the source and the destination.
virtual bool IsConnected() const =0
Return if either the connection is established or not.
virtual tResult GetDestinationConnectorName(base::ant::IString &&strName) const =0
Gets the destination object name.
virtual tResult GetDestinationName(base::ant::IString &&strName) const =0
Gets the destination object name.
virtual tResult GetSourceConnectorName(base::ant::IString &&strName) const =0
Gets the source object name.
~IGraphConnection()=default
not destrucable
virtual tResult GetDestination(ucom::ant::iobject_ptr< INamedGraphObject > &pDestination) const =0
Gets the destination object.
ADTF_IID(IGraphConnection, "graphconnection.ant.streaming.adtf.iid")
defintion of interface id
virtual tResult GetSourceName(base::ant::IString &&strName) const =0
Gets the source object name.
virtual tResult Connect()=0
Establishes the conenction between the source and the destination.
virtual tResult GetSource(ucom::ant::iobject_ptr< INamedGraphObject > &pSource) const =0
Gets the source object.
Defines the Interface used to connect Items to each other.
Definition: graph_intf.h:104
virtual tResult GetNamedGraphObject(const char *strName, ucom::ant::iobject_ptr< IObject > &pObject) const =0
Gets a registered graph object by strName.
virtual tResult GetNamedGraphObjects(ucom::ant::iobject_list< INamedGraphObject > &lstItems) const =0
Gets a every registered graph objects.
~IGraph()=default
not desstructable
ADTF_IID(IGraph, "graph.ant.streaming.adtf.iid")
definition of interface id
Interface for a NamedGraphObject which can be added to the FilterGraph.
Base class for every interface type within the uCOM.
Definition: object_intf.h:31
Base object pointer to realize binary compatible reference counting in interface methods.
Copyright © Audi Electronics Venture GmbH.
Namespace for entire ADTF SDK.