ADTF
Loading...
Searching...
No Matches
adtf_remote_session_intf.h
Go to the documentation of this file.
1
7#pragma once
8#include <adtf_utils.h>
11
12namespace adtf
13{
14namespace remote
15{
16namespace ant
17{
18
24{
25 public:
27 ADTF_IID(ISession, "session.ant.remote.adtf");
29 static constexpr const tChar* const DEFAULT_NAME = "session";
30
31 public:
32 /*
33 * @return The URL of the currently loaded session file.
34 */
35 virtual const char* GetSessionUrl() const = 0;
36
37 /*
38 * @return The URL of the currently loaded system file.
39 */
40 virtual const char* GetSystemUrl() const = 0;
41
42 /*
43 * @return The URL of the currently loaded system properties file.
44 */
45 virtual const char* GetSystemPropertiesUrl() const = 0;
46
47 /*
48 * @return The URL of the currently loaded graph file.
49 */
50 virtual const char* GetGraphUrl() const = 0;
51
52 /*
53 * @return The URL of the currently loaded graph properties file.
54 */
55 virtual const char* GetGraphPropertiesUrl() const = 0;
56
57 /*
58 * @return The name of the currently loaded session.
59 */
60 virtual const char* GetSessionName() const = 0;
61
67 virtual tResult LoadGraphFromUrl(const char* strGraphFile) = 0;
68
74 virtual tResult LoadGraphPropertiesFromUrl(const char* strPropertiesFile) = 0;
75
76 /*
77 * @return The name of the active filter graph.
78 */
79 virtual const char* GetActiveFilterGraph() const = 0;
80
86 virtual tResult SetActiveFilterGraph(const char* strFilterGraphName) = 0;
87
88 /*
89 * @return The name of the active streaming graph.
90 */
91 virtual const char* GetActiveStreamingGraph() const = 0;
92
98 virtual tResult SetActiveStreamingGraph(const char* strStreamingGraphName) = 0;
99};
100}
101
102namespace catwo
103{
104
106{
107 public:
109 ADTF_IID(ISession, "session.catwo.remote.adtf");
110
111 public:
117 virtual const char* GetObjects() const = 0;
118
124 virtual const char* GetProperties(const char* strObject) const = 0;
125
132 virtual const char* GetProperty(const char* strObject,
133 const char* strPropertyName) const = 0;
134
142 virtual tResult SetProperty(const char* strObject,
143 const char* strPropertyName,
144 const char* strPropertyValue) = 0;
145};
146
147}
148
149namespace hollow
150{
151
153{
154 public:
156 ADTF_IID(ISession, "session.hollow.remote.adtf");
157
158 public:
163 {
164 None = 0x00,
165 };
166
167 public:
168
186 virtual const char* GetObjectProperties(const char* strObject, uint32_t nFlags = tPropertyFlags::None) const = 0;
187
194 virtual const char* GetPropertyType(const char* strObject,
195 const char* strPropertyName) const = 0;
196
197
198};
199
200}
201
202namespace quiet
203{
204
206{
207 public:
209 ADTF_IID(ISession, "session.quiet.remote.adtf");
210
216 virtual const char* GetGraphObjects() const = 0;
217
218 enum class tGraphObjectConnectableType : uint8_t
219 {
220 in = 0,
221 out = 1
222 };
223
229 {
233 std::string strName = {};
237 tGraphObjectConnectableType eInOut = {};
245 std::vector<std::string> vecConnectedGraphObjects = {};
246 };
247
251 enum class tGraphObjectInfoType : uint8_t
252 {
253 unknown = 0,
254 filter,
255 samplestreamingsource,
256 samplestreamingsink,
257 inpin,
258 outpin,
259 samplestream,
260 subgraph,
261 inport,
262 outport,
263 activerunner
264 };
265
270 {
284 std::vector<tGraphConnectableObjectInfo> vecConnectableObjects = {};
285 };
286
293 virtual tGraphObjectInfo GetGraphObjectInfo(const char* strObject) const = 0;
294
300 virtual std::unordered_map<std::string, tGraphObjectInfo> GetGraphObjectsInfo() const = 0;
301};
302
303} // namespace quiet
304
305namespace ultron
306{
307
309{
310public:
312 ADTF_IID(ISession, "session.ultron.remote.adtf");
313
314 enum class tGraphObjectStateValue : uint8_t
315 {
316 Other = 0,
317 Stopped = 1,
318 Started = 2
319 };
324 {
329
333 tGraphObjectStateValue eState = {};
334 };
335
342 virtual tGraphObjectState GetGraphObjectState(const char* strObjectName) const = 0;
343
354 virtual tResult SetGraphObjectState(const char* strObjectName, tGraphObjectStateValue eState) = 0;
355};
356} // namespace thor
357
358using ultron::ISession;
359
360}
361}
362
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736
Definition adtf_remote_session_intf.h:24
virtual tResult LoadGraphFromUrl(const char *strGraphFile)=0
virtual tResult LoadGraphPropertiesFromUrl(const char *strPropertiesFile)=0
virtual tResult SetActiveStreamingGraph(const char *strStreamingGraphName)=0
static constexpr const tChar *const DEFAULT_NAME
Default RPC object server name of the ADTF Session RPC object server.
Definition adtf_remote_session_intf.h:29
virtual tResult SetActiveFilterGraph(const char *strFilterGraphName)=0
ADTF_IID(ISession, "session.ant.remote.adtf")
RPC interface ID of the ADTF Session RPC object server.
Definition adtf_remote_session_intf.h:106
virtual tResult SetProperty(const char *strObject, const char *strPropertyName, const char *strPropertyValue)=0
virtual const char * GetObjects() const =0
virtual const char * GetProperties(const char *strObject) const =0
virtual const char * GetProperty(const char *strObject, const char *strPropertyName) const =0
ADTF_IID(ISession, "session.catwo.remote.adtf")
RPC interface ID of the ADTF Session RPC object server.
Definition adtf_remote_session_intf.h:153
virtual const char * GetPropertyType(const char *strObject, const char *strPropertyName) const =0
ADTF_IID(ISession, "session.hollow.remote.adtf")
RPC interface ID of the ADTF Session RPC object server.
tPropertyFlags
Definition adtf_remote_session_intf.h:163
virtual const char * GetObjectProperties(const char *strObject, uint32_t nFlags=tPropertyFlags::None) const =0
Definition adtf_remote_session_intf.h:206
virtual tGraphObjectInfo GetGraphObjectInfo(const char *strObject) const =0
virtual const char * GetGraphObjects() const =0
tGraphObjectInfoType
Definition adtf_remote_session_intf.h:252
virtual std::unordered_map< std::string, tGraphObjectInfo > GetGraphObjectsInfo() const =0
ADTF_IID(ISession, "session.quiet.remote.adtf")
RPC interface ID of the ADTF Session RPC object server.
Definition adtf_remote_session_intf.h:309
ADTF_IID(ISession, "session.ultron.remote.adtf")
RPC interface ID of the ADTF Session RPC object server.
virtual tGraphObjectState GetGraphObjectState(const char *strObjectName) const =0
virtual tResult SetGraphObjectState(const char *strObjectName, tGraphObjectStateValue eState)=0
Definition object_ptr.h:384
Namespace for all functionality of the ADTF Remote SDK provided since v3.0.
Definition adtf_remote_clock_intf.h:16
Namespace for all functionality of the ADTF Remote SDK provided since v3.2.
Definition adtf_remote_session_intf.h:103
Namespace for all functionality of the ADTF Remote SDK provided since v3.7.
Definition adtf_client_connector.h:18
Namespace for all functionality of the ADTF Remote SDK provided since v3.16.
Definition adtf_remote_player_intf.h:208
Namespace for all functionality of the ADTF Remote SDK provided since v3.20.
Definition adtf_remote_session_intf.h:306
Namespace for the ADTF Remote SDK.
Definition adtf_client_connector.h:16
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtf_client_connector.h:14
Definition adtf_remote_session_intf.h:324
Info for a connectable object This might be a pin, samplestream or port.
Definition adtf_remote_session_intf.h:229
std::string strName
Name of the object.
Definition adtf_remote_session_intf.h:233
adtf::ucom::object_ptr< const adtf::streaming::ant::IStreamType > pStreamType
the current streamtype
Definition adtf_remote_session_intf.h:241
std::vector< std::string > vecConnectedGraphObjects
The name of the connected objects (empty if not connected)
Definition adtf_remote_session_intf.h:245
tGraphObjectConnectableType eInOut
Direction of the connectable object (inport/outport, inpin/outpin, samplestream(in and out))
Definition adtf_remote_session_intf.h:237
Info for a graph object.
Definition adtf_remote_session_intf.h:270
tGraphObjectInfoType eObjectType
Graph object type.
Definition adtf_remote_session_intf.h:274
std::vector< tGraphConnectableObjectInfo > vecConnectableObjects
All inputs for the object filter: all input and input pins inpin, outpin: the pin itself subgraph: al...
Definition adtf_remote_session_intf.h:284
Definition adtf_remote_session_intf.h:324
tGraphObjectInfoType eObjectType
Graph object type.
Definition adtf_remote_session_intf.h:328
tGraphObjectStateValue eState
The graph objects state.
Definition adtf_remote_session_intf.h:333