Diff to HTML by rtfpessoa

Files changed (36) hide show
  1. {baseline → generated}/Debug/Thunder/Source/com/generated/ProxyStubs_COM.cpp +0 -693
  2. {baseline → generated}/Debug/ThunderInterfaces/example_interfaces/example_generated/ProxyStubs_SimpleAsync.cpp +0 -239
  3. {baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_Bluetooth.cpp +0 -50
  4. {baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_Butler.cpp +0 -466
  5. {baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_Capture.cpp +0 -50
  6. {baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_ContentDecryption.cpp +0 -466
  7. {baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_IPNetwork.cpp +0 -50
  8. {baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_InputSwitch.cpp +0 -466
  9. {baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_Memory.cpp +227 -0
  10. {baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_MessageControl.cpp +0 -667
  11. {baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_PackageManager.cpp +0 -227
  12. {baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_Provisioning.cpp +0 -466
  13. {baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_SecureShellServer.cpp +0 -50
  14. {baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_Stream.cpp +0 -466
  15. {baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_SubsystemControl.cpp +0 -466
  16. {baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_SwitchBoard.cpp +0 -50
  17. {baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_TextToSpeech.cpp +0 -466
  18. {baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_ValuePoint.cpp +0 -466
  19. {baseline → generated}/Release/Thunder/Source/com/generated/ProxyStubs_COM.cpp +0 -1167
  20. {baseline → generated}/Release/ThunderInterfaces/example_interfaces/example_generated/ProxyStubs_SimpleAsync.cpp +0 -407
  21. {baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_Bluetooth.cpp +0 -55
  22. {baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_Butler.cpp +0 -790
  23. {baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_Capture.cpp +0 -55
  24. {baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_ContentDecryption.cpp +0 -784
  25. {baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_IPNetwork.cpp +0 -55
  26. {baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_InputSwitch.cpp +0 -784
  27. {baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_Memory.cpp +385 -0
  28. {baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_MessageControl.cpp +0 -1088
  29. {baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_PackageManager.cpp +0 -383
  30. {baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_Provisioning.cpp +0 -784
  31. {baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_SecureShellServer.cpp +0 -55
  32. {baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_Stream.cpp +0 -790
  33. {baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_SubsystemControl.cpp +0 -784
  34. {baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_SwitchBoard.cpp +0 -55
  35. {baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_TextToSpeech.cpp +0 -784
  36. {baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_ValuePoint.cpp +0 -790
{baseline → generated}/Debug/Thunder/Source/com/generated/ProxyStubs_COM.cpp RENAMED
@@ -1,12 +1,9 @@
1
1
  //
2
2
  // generated automatically from "ICOM.h"
3
3
  //
4
4
  // implements COM-RPC proxy stubs for:
5
- // - class IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = ID_STRINGITERATOR] [[iterator]]
6
- // - class IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = uint32_t, INTERFACE_ID = ID_VALUEITERATOR] [[iterator]]
7
- // - class IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = Environment, INTERFACE_ID = ID_ENVIRONMENTITERATOR] [[iterator]]
8
5
  // - class IRemoteConnection
9
6
  // - class IRemoteConnection::INotification
10
7
  //
11
8
 
12
9
  #include "Module.h"
@@ -26,331 +23,10 @@
26
23
  // -----------------------------------------------------------------
27
24
  // STUBS
28
25
  // -----------------------------------------------------------------
29
26
 
30
27
  //
31
- // IIteratorTypeInstance_bd6e04b8d151c1f7 interface stub definitions
32
- //
33
- // Methods:
34
- // (0) virtual bool Next(string&) = 0
35
- // (1) virtual bool Previous(string&) = 0
36
- // (2) virtual void Reset(const uint32_t) = 0
37
- // (3) virtual bool IsValid() const = 0
38
- // (4) virtual uint32_t Count() const = 0
39
- // (5) virtual string Current() const = 0
40
- //
41
-
42
- static ProxyStub::MethodHandler IteratorTypeInstance_bd6e04b8d151c1f7StubMethods[] = {
43
- // (0) virtual bool Next(string&) = 0
44
- //
45
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
46
- using interface = IIteratorType<string, ID_STRINGITERATOR>;
47
-
48
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
49
- ASSERT(implementation != nullptr);
50
-
51
- string _info{};
52
-
53
- bool result = implementation->Next(_info);
54
-
55
- RPC::Data::Frame::Writer writer(message->Response().Writer());
56
- writer.Boolean(result);
57
- writer.Text(_info);
58
- },
59
-
60
- // (1) virtual bool Previous(string&) = 0
61
- //
62
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
63
- using interface = IIteratorType<string, ID_STRINGITERATOR>;
64
-
65
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
66
- ASSERT(implementation != nullptr);
67
-
68
- string _info{};
69
-
70
- bool result = implementation->Previous(_info);
71
-
72
- RPC::Data::Frame::Writer writer(message->Response().Writer());
73
- writer.Boolean(result);
74
- writer.Text(_info);
75
- },
76
-
77
- // (2) virtual void Reset(const uint32_t) = 0
78
- //
79
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
80
- using interface = IIteratorType<string, ID_STRINGITERATOR>;
81
-
82
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
83
- ASSERT(implementation != nullptr);
84
-
85
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
86
- const uint32_t _position = reader.Number<uint32_t>();
87
-
88
- implementation->Reset(_position);
89
- },
90
-
91
- // (3) virtual bool IsValid() const = 0
92
- //
93
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
94
- using interface = IIteratorType<string, ID_STRINGITERATOR>;
95
-
96
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
97
- ASSERT(implementation != nullptr);
98
-
99
- bool result = implementation->IsValid();
100
-
101
- RPC::Data::Frame::Writer writer(message->Response().Writer());
102
- writer.Boolean(result);
103
- },
104
-
105
- // (4) virtual uint32_t Count() const = 0
106
- //
107
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
108
- using interface = IIteratorType<string, ID_STRINGITERATOR>;
109
-
110
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
111
- ASSERT(implementation != nullptr);
112
-
113
- uint32_t result = implementation->Count();
114
-
115
- RPC::Data::Frame::Writer writer(message->Response().Writer());
116
- writer.Number<uint32_t>(result);
117
- },
118
-
119
- // (5) virtual string Current() const = 0
120
- //
121
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
122
- using interface = IIteratorType<string, ID_STRINGITERATOR>;
123
-
124
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
125
- ASSERT(implementation != nullptr);
126
-
127
- string result = implementation->Current();
128
-
129
- RPC::Data::Frame::Writer writer(message->Response().Writer());
130
- writer.Text(result);
131
- }
132
- , nullptr
133
- }; // IteratorTypeInstance_bd6e04b8d151c1f7StubMethods
134
-
135
- //
136
- // IIteratorTypeInstance_60eba5a793c685ea interface stub definitions
137
- //
138
- // Methods:
139
- // (0) virtual bool Next(uint32_t&) = 0
140
- // (1) virtual bool Previous(uint32_t&) = 0
141
- // (2) virtual void Reset(const uint32_t) = 0
142
- // (3) virtual bool IsValid() const = 0
143
- // (4) virtual uint32_t Count() const = 0
144
- // (5) virtual uint32_t Current() const = 0
145
- //
146
-
147
- static ProxyStub::MethodHandler IteratorTypeInstance_60eba5a793c685eaStubMethods[] = {
148
- // (0) virtual bool Next(uint32_t&) = 0
149
- //
150
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
151
- using interface = IIteratorType<uint32_t, ID_VALUEITERATOR>;
152
-
153
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
154
- ASSERT(implementation != nullptr);
155
-
156
- uint32_t _info{};
157
-
158
- bool result = implementation->Next(_info);
159
-
160
- RPC::Data::Frame::Writer writer(message->Response().Writer());
161
- writer.Boolean(result);
162
- writer.Number<uint32_t>(_info);
163
- },
164
-
165
- // (1) virtual bool Previous(uint32_t&) = 0
166
- //
167
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
168
- using interface = IIteratorType<uint32_t, ID_VALUEITERATOR>;
169
-
170
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
171
- ASSERT(implementation != nullptr);
172
-
173
- uint32_t _info{};
174
-
175
- bool result = implementation->Previous(_info);
176
-
177
- RPC::Data::Frame::Writer writer(message->Response().Writer());
178
- writer.Boolean(result);
179
- writer.Number<uint32_t>(_info);
180
- },
181
-
182
- // (2) virtual void Reset(const uint32_t) = 0
183
- //
184
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
185
- using interface = IIteratorType<uint32_t, ID_VALUEITERATOR>;
186
-
187
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
188
- ASSERT(implementation != nullptr);
189
-
190
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
191
- const uint32_t _position = reader.Number<uint32_t>();
192
-
193
- implementation->Reset(_position);
194
- },
195
-
196
- // (3) virtual bool IsValid() const = 0
197
- //
198
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
199
- using interface = IIteratorType<uint32_t, ID_VALUEITERATOR>;
200
-
201
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
202
- ASSERT(implementation != nullptr);
203
-
204
- bool result = implementation->IsValid();
205
-
206
- RPC::Data::Frame::Writer writer(message->Response().Writer());
207
- writer.Boolean(result);
208
- },
209
-
210
- // (4) virtual uint32_t Count() const = 0
211
- //
212
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
213
- using interface = IIteratorType<uint32_t, ID_VALUEITERATOR>;
214
-
215
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
216
- ASSERT(implementation != nullptr);
217
-
218
- uint32_t result = implementation->Count();
219
-
220
- RPC::Data::Frame::Writer writer(message->Response().Writer());
221
- writer.Number<uint32_t>(result);
222
- },
223
-
224
- // (5) virtual uint32_t Current() const = 0
225
- //
226
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
227
- using interface = IIteratorType<uint32_t, ID_VALUEITERATOR>;
228
-
229
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
230
- ASSERT(implementation != nullptr);
231
-
232
- uint32_t result = implementation->Current();
233
-
234
- RPC::Data::Frame::Writer writer(message->Response().Writer());
235
- writer.Number<uint32_t>(result);
236
- }
237
- , nullptr
238
- }; // IteratorTypeInstance_60eba5a793c685eaStubMethods
239
-
240
- //
241
- // IIteratorTypeInstance_195e88cf7f955a2e interface stub definitions
242
- //
243
- // Methods:
244
- // (0) virtual bool Next(Environment&) = 0
245
- // (1) virtual bool Previous(Environment&) = 0
246
- // (2) virtual void Reset(const uint32_t) = 0
247
- // (3) virtual bool IsValid() const = 0
248
- // (4) virtual uint32_t Count() const = 0
249
- // (5) virtual Environment Current() const = 0
250
- //
251
-
252
- static ProxyStub::MethodHandler IteratorTypeInstance_195e88cf7f955a2eStubMethods[] = {
253
- // (0) virtual bool Next(Environment&) = 0
254
- //
255
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
256
- using interface = IIteratorType<Environment, ID_ENVIRONMENTITERATOR>;
257
-
258
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
259
- ASSERT(implementation != nullptr);
260
-
261
- Environment _info{};
262
-
263
- bool result = implementation->Next(_info);
264
-
265
- RPC::Data::Frame::Writer writer(message->Response().Writer());
266
- writer.Boolean(result);
267
- writer.Text(_info.Key);
268
- writer.Text(_info.Value);
269
- writer.Number<Environment::scope>(_info.Scope);
270
- },
271
-
272
- // (1) virtual bool Previous(Environment&) = 0
273
- //
274
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
275
- using interface = IIteratorType<Environment, ID_ENVIRONMENTITERATOR>;
276
-
277
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
278
- ASSERT(implementation != nullptr);
279
-
280
- Environment _info{};
281
-
282
- bool result = implementation->Previous(_info);
283
-
284
- RPC::Data::Frame::Writer writer(message->Response().Writer());
285
- writer.Boolean(result);
286
- writer.Text(_info.Key);
287
- writer.Text(_info.Value);
288
- writer.Number<Environment::scope>(_info.Scope);
289
- },
290
-
291
- // (2) virtual void Reset(const uint32_t) = 0
292
- //
293
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
294
- using interface = IIteratorType<Environment, ID_ENVIRONMENTITERATOR>;
295
-
296
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
297
- ASSERT(implementation != nullptr);
298
-
299
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
300
- const uint32_t _position = reader.Number<uint32_t>();
301
-
302
- implementation->Reset(_position);
303
- },
304
-
305
- // (3) virtual bool IsValid() const = 0
306
- //
307
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
308
- using interface = IIteratorType<Environment, ID_ENVIRONMENTITERATOR>;
309
-
310
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
311
- ASSERT(implementation != nullptr);
312
-
313
- bool result = implementation->IsValid();
314
-
315
- RPC::Data::Frame::Writer writer(message->Response().Writer());
316
- writer.Boolean(result);
317
- },
318
-
319
- // (4) virtual uint32_t Count() const = 0
320
- //
321
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
322
- using interface = IIteratorType<Environment, ID_ENVIRONMENTITERATOR>;
323
-
324
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
325
- ASSERT(implementation != nullptr);
326
-
327
- uint32_t result = implementation->Count();
328
-
329
- RPC::Data::Frame::Writer writer(message->Response().Writer());
330
- writer.Number<uint32_t>(result);
331
- },
332
-
333
- // (5) virtual Environment Current() const = 0
334
- //
335
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
336
- using interface = IIteratorType<Environment, ID_ENVIRONMENTITERATOR>;
337
-
338
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
339
- ASSERT(implementation != nullptr);
340
-
341
- Environment result = implementation->Current();
342
-
343
- RPC::Data::Frame::Writer writer(message->Response().Writer());
344
- writer.Text(result.Key);
345
- writer.Text(result.Value);
346
- writer.Number<Environment::scope>(result.Scope);
347
- }
348
- , nullptr
349
- }; // IteratorTypeInstance_195e88cf7f955a2eStubMethods
350
-
351
- //
352
28
  // IRemoteConnection interface stub definitions
353
29
  //
354
30
  // Methods:
355
31
  // (0) virtual uint32_t Id() const = 0
356
32
  // (1) virtual uint32_t RemoteId() const = 0
@@ -521,370 +197,10 @@
521
197
  // -----------------------------------------------------------------
522
198
  // PROXIES
523
199
  // -----------------------------------------------------------------
524
200
 
525
201
  //
526
- // IIteratorTypeInstance_bd6e04b8d151c1f7 interface proxy definitions
527
- //
528
- // Methods:
529
- // (0) virtual bool Next(string&) = 0
530
- // (1) virtual bool Previous(string&) = 0
531
- // (2) virtual void Reset(const uint32_t) = 0
532
- // (3) virtual bool IsValid() const = 0
533
- // (4) virtual uint32_t Count() const = 0
534
- // (5) virtual string Current() const = 0
535
- //
536
-
537
- class IteratorTypeInstance_bd6e04b8d151c1f7Proxy final : public ProxyStub::UnknownProxyType<IIteratorType<string, ID_STRINGITERATOR>> {
538
- public:
539
- IteratorTypeInstance_bd6e04b8d151c1f7Proxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
540
- : BaseClass(channel, implementation, otherSideInformed)
541
- {
542
- }
543
-
544
- bool Next(string& _info) override
545
- {
546
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
547
-
548
- bool result{};
549
-
550
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
551
- if (hresult == Core::ERROR_NONE) {
552
- RPC::Data::Frame::Reader reader(message->Response().Reader());
553
- result = reader.Boolean();
554
- _info = reader.Text();
555
- } else {
556
- ASSERT((hresult & COM_ERROR) != 0);
557
- }
558
-
559
- return (result);
560
- }
561
-
562
- bool Previous(string& _info) override
563
- {
564
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
565
-
566
- bool result{};
567
-
568
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
569
- if (hresult == Core::ERROR_NONE) {
570
- RPC::Data::Frame::Reader reader(message->Response().Reader());
571
- result = reader.Boolean();
572
- _info = reader.Text();
573
- } else {
574
- ASSERT((hresult & COM_ERROR) != 0);
575
- }
576
-
577
- return (result);
578
- }
579
-
580
- void Reset(const uint32_t _position) override
581
- {
582
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
583
-
584
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
585
- writer.Number<uint32_t>(_position);
586
-
587
- static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
588
- }
589
-
590
- bool IsValid() const override
591
- {
592
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
593
-
594
- bool result{};
595
-
596
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
597
- if (hresult == Core::ERROR_NONE) {
598
- RPC::Data::Frame::Reader reader(message->Response().Reader());
599
- result = reader.Boolean();
600
- } else {
601
- ASSERT((hresult & COM_ERROR) != 0);
602
- }
603
-
604
- return (result);
605
- }
606
-
607
- uint32_t Count() const override
608
- {
609
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
610
-
611
- uint32_t result{};
612
-
613
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
614
- if (hresult == Core::ERROR_NONE) {
615
- RPC::Data::Frame::Reader reader(message->Response().Reader());
616
- result = reader.Number<uint32_t>();
617
- } else {
618
- ASSERT((hresult & COM_ERROR) != 0);
619
- }
620
-
621
- return (result);
622
- }
623
-
624
- string Current() const override
625
- {
626
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
627
-
628
- string result{};
629
-
630
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
631
- if (hresult == Core::ERROR_NONE) {
632
- RPC::Data::Frame::Reader reader(message->Response().Reader());
633
- result = reader.Text();
634
- } else {
635
- ASSERT((hresult & COM_ERROR) != 0);
636
- }
637
-
638
- return (result);
639
- }
640
-
641
- }; // class IteratorTypeInstance_bd6e04b8d151c1f7Proxy
642
-
643
- //
644
- // IIteratorTypeInstance_60eba5a793c685ea interface proxy definitions
645
- //
646
- // Methods:
647
- // (0) virtual bool Next(uint32_t&) = 0
648
- // (1) virtual bool Previous(uint32_t&) = 0
649
- // (2) virtual void Reset(const uint32_t) = 0
650
- // (3) virtual bool IsValid() const = 0
651
- // (4) virtual uint32_t Count() const = 0
652
- // (5) virtual uint32_t Current() const = 0
653
- //
654
-
655
- class IteratorTypeInstance_60eba5a793c685eaProxy final : public ProxyStub::UnknownProxyType<IIteratorType<uint32_t, ID_VALUEITERATOR>> {
656
- public:
657
- IteratorTypeInstance_60eba5a793c685eaProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
658
- : BaseClass(channel, implementation, otherSideInformed)
659
- {
660
- }
661
-
662
- bool Next(uint32_t& _info) override
663
- {
664
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
665
-
666
- bool result{};
667
-
668
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
669
- if (hresult == Core::ERROR_NONE) {
670
- RPC::Data::Frame::Reader reader(message->Response().Reader());
671
- result = reader.Boolean();
672
- _info = reader.Number<uint32_t>();
673
- } else {
674
- ASSERT((hresult & COM_ERROR) != 0);
675
- }
676
-
677
- return (result);
678
- }
679
-
680
- bool Previous(uint32_t& _info) override
681
- {
682
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
683
-
684
- bool result{};
685
-
686
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
687
- if (hresult == Core::ERROR_NONE) {
688
- RPC::Data::Frame::Reader reader(message->Response().Reader());
689
- result = reader.Boolean();
690
- _info = reader.Number<uint32_t>();
691
- } else {
692
- ASSERT((hresult & COM_ERROR) != 0);
693
- }
694
-
695
- return (result);
696
- }
697
-
698
- void Reset(const uint32_t _position) override
699
- {
700
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
701
-
702
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
703
- writer.Number<uint32_t>(_position);
704
-
705
- static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
706
- }
707
-
708
- bool IsValid() const override
709
- {
710
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
711
-
712
- bool result{};
713
-
714
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
715
- if (hresult == Core::ERROR_NONE) {
716
- RPC::Data::Frame::Reader reader(message->Response().Reader());
717
- result = reader.Boolean();
718
- } else {
719
- ASSERT((hresult & COM_ERROR) != 0);
720
- }
721
-
722
- return (result);
723
- }
724
-
725
- uint32_t Count() const override
726
- {
727
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
728
-
729
- uint32_t result{};
730
-
731
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
732
- if (hresult == Core::ERROR_NONE) {
733
- RPC::Data::Frame::Reader reader(message->Response().Reader());
734
- result = reader.Number<uint32_t>();
735
- } else {
736
- ASSERT((hresult & COM_ERROR) != 0);
737
- }
738
-
739
- return (result);
740
- }
741
-
742
- uint32_t Current() const override
743
- {
744
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
745
-
746
- uint32_t result{};
747
-
748
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
749
- if (hresult == Core::ERROR_NONE) {
750
- RPC::Data::Frame::Reader reader(message->Response().Reader());
751
- result = reader.Number<uint32_t>();
752
- } else {
753
- ASSERT((hresult & COM_ERROR) != 0);
754
- }
755
-
756
- return (result);
757
- }
758
-
759
- }; // class IteratorTypeInstance_60eba5a793c685eaProxy
760
-
761
- //
762
- // IIteratorTypeInstance_195e88cf7f955a2e interface proxy definitions
763
- //
764
- // Methods:
765
- // (0) virtual bool Next(Environment&) = 0
766
- // (1) virtual bool Previous(Environment&) = 0
767
- // (2) virtual void Reset(const uint32_t) = 0
768
- // (3) virtual bool IsValid() const = 0
769
- // (4) virtual uint32_t Count() const = 0
770
- // (5) virtual Environment Current() const = 0
771
- //
772
-
773
- class IteratorTypeInstance_195e88cf7f955a2eProxy final : public ProxyStub::UnknownProxyType<IIteratorType<Environment, ID_ENVIRONMENTITERATOR>> {
774
- public:
775
- IteratorTypeInstance_195e88cf7f955a2eProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
776
- : BaseClass(channel, implementation, otherSideInformed)
777
- {
778
- }
779
-
780
- bool Next(Environment& _info) override
781
- {
782
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
783
-
784
- bool result{};
785
-
786
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
787
- if (hresult == Core::ERROR_NONE) {
788
- RPC::Data::Frame::Reader reader(message->Response().Reader());
789
- result = reader.Boolean();
790
- _info.Key = reader.Text();
791
- _info.Value = reader.Text();
792
- _info.Scope = reader.Number<Environment::scope>();
793
- } else {
794
- ASSERT((hresult & COM_ERROR) != 0);
795
- }
796
-
797
- return (result);
798
- }
799
-
800
- bool Previous(Environment& _info) override
801
- {
802
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
803
-
804
- bool result{};
805
-
806
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
807
- if (hresult == Core::ERROR_NONE) {
808
- RPC::Data::Frame::Reader reader(message->Response().Reader());
809
- result = reader.Boolean();
810
- _info.Key = reader.Text();
811
- _info.Value = reader.Text();
812
- _info.Scope = reader.Number<Environment::scope>();
813
- } else {
814
- ASSERT((hresult & COM_ERROR) != 0);
815
- }
816
-
817
- return (result);
818
- }
819
-
820
- void Reset(const uint32_t _position) override
821
- {
822
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
823
-
824
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
825
- writer.Number<uint32_t>(_position);
826
-
827
- static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
828
- }
829
-
830
- bool IsValid() const override
831
- {
832
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
833
-
834
- bool result{};
835
-
836
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
837
- if (hresult == Core::ERROR_NONE) {
838
- RPC::Data::Frame::Reader reader(message->Response().Reader());
839
- result = reader.Boolean();
840
- } else {
841
- ASSERT((hresult & COM_ERROR) != 0);
842
- }
843
-
844
- return (result);
845
- }
846
-
847
- uint32_t Count() const override
848
- {
849
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
850
-
851
- uint32_t result{};
852
-
853
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
854
- if (hresult == Core::ERROR_NONE) {
855
- RPC::Data::Frame::Reader reader(message->Response().Reader());
856
- result = reader.Number<uint32_t>();
857
- } else {
858
- ASSERT((hresult & COM_ERROR) != 0);
859
- }
860
-
861
- return (result);
862
- }
863
-
864
- Environment Current() const override
865
- {
866
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
867
-
868
- Environment result{};
869
-
870
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
871
- if (hresult == Core::ERROR_NONE) {
872
- RPC::Data::Frame::Reader reader(message->Response().Reader());
873
- result.Key = reader.Text();
874
- result.Value = reader.Text();
875
- result.Scope = reader.Number<Environment::scope>();
876
- } else {
877
- ASSERT((hresult & COM_ERROR) != 0);
878
- }
879
-
880
- return (result);
881
- }
882
-
883
- }; // class IteratorTypeInstance_195e88cf7f955a2eProxy
884
-
885
- //
886
202
  // IRemoteConnection interface proxy definitions
887
203
  //
888
204
  // Methods:
889
205
  // (0) virtual uint32_t Id() const = 0
890
206
  // (1) virtual uint32_t RemoteId() const = 0
@@ -1085,31 +401,22 @@
1085
401
  // -----------------------------------------------------------------
1086
402
  // REGISTRATION
1087
403
  // -----------------------------------------------------------------
1088
404
  namespace {
1089
405
 
1090
- typedef ProxyStub::UnknownStubType<IIteratorType<string, ID_STRINGITERATOR>, IteratorTypeInstance_bd6e04b8d151c1f7StubMethods> IteratorTypeInstance_bd6e04b8d151c1f7Stub;
1091
- typedef ProxyStub::UnknownStubType<IIteratorType<uint32_t, ID_VALUEITERATOR>, IteratorTypeInstance_60eba5a793c685eaStubMethods> IteratorTypeInstance_60eba5a793c685eaStub;
1092
- typedef ProxyStub::UnknownStubType<IIteratorType<Environment, ID_ENVIRONMENTITERATOR>, IteratorTypeInstance_195e88cf7f955a2eStubMethods> IteratorTypeInstance_195e88cf7f955a2eStub;
1093
406
  typedef ProxyStub::UnknownStubType<IRemoteConnection, RemoteConnectionStubMethods> RemoteConnectionStub;
1094
407
  typedef ProxyStub::UnknownStubType<IRemoteConnection::INotification, RemoteConnectionNotificationStubMethods> RemoteConnectionNotificationStub;
1095
408
 
1096
409
  static class Instantiation {
1097
410
  public:
1098
411
  Instantiation()
1099
412
  {
1100
- RPC::Administrator::Instance().Announce<IIteratorType<string, ID_STRINGITERATOR>, IteratorTypeInstance_bd6e04b8d151c1f7Proxy, IteratorTypeInstance_bd6e04b8d151c1f7Stub>();
1101
- RPC::Administrator::Instance().Announce<IIteratorType<uint32_t, ID_VALUEITERATOR>, IteratorTypeInstance_60eba5a793c685eaProxy, IteratorTypeInstance_60eba5a793c685eaStub>();
1102
- RPC::Administrator::Instance().Announce<IIteratorType<Environment, ID_ENVIRONMENTITERATOR>, IteratorTypeInstance_195e88cf7f955a2eProxy, IteratorTypeInstance_195e88cf7f955a2eStub>();
1103
413
  RPC::Administrator::Instance().Announce<IRemoteConnection, RemoteConnectionProxy, RemoteConnectionStub>();
1104
414
  RPC::Administrator::Instance().Announce<IRemoteConnection::INotification, RemoteConnectionNotificationProxy, RemoteConnectionNotificationStub>();
1105
415
  }
1106
416
  ~Instantiation()
1107
417
  {
1108
- RPC::Administrator::Instance().Recall<IIteratorType<string, ID_STRINGITERATOR>>();
1109
- RPC::Administrator::Instance().Recall<IIteratorType<uint32_t, ID_VALUEITERATOR>>();
1110
- RPC::Administrator::Instance().Recall<IIteratorType<Environment, ID_ENVIRONMENTITERATOR>>();
1111
418
  RPC::Administrator::Instance().Recall<IRemoteConnection>();
1112
419
  RPC::Administrator::Instance().Recall<IRemoteConnection::INotification>();
1113
420
  }
1114
421
  } ProxyStubRegistration;
1115
422
 
{baseline → generated}/Debug/ThunderInterfaces/example_interfaces/example_generated/ProxyStubs_SimpleAsync.cpp RENAMED
@@ -2,11 +2,10 @@
2
2
  // generated automatically from "ISimpleAsync.h"
3
3
  //
4
4
  // implements COM-RPC proxy stubs for:
5
5
  // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = RPC::ID_STRINGITERATOR] [[iterator]]
6
6
  // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = uint32_t, INTERFACE_ID = RPC::ID_VALUEITERATOR] [[iterator]]
7
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = RPC::Environment, INTERFACE_ID = RPC::ID_ENVIRONMENTITERATOR] [[iterator]]
8
7
  // - class Example::ISimpleAsync
9
8
  // - class Example::ISimpleAsync::ICallback
10
9
  // - class Example::ISimpleAsync::INotification
11
10
  // - class Example::ISimpleAsync::IBindNotification
12
11
  //
@@ -236,121 +235,10 @@
236
235
  }
237
236
  , nullptr
238
237
  }; // RPCIteratorTypeInstance_60eba5a793c685eaStubMethods
239
238
 
240
239
  //
241
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface stub definitions
242
- //
243
- // Methods:
244
- // (0) virtual bool Next(RPC::Environment&) = 0
245
- // (1) virtual bool Previous(RPC::Environment&) = 0
246
- // (2) virtual void Reset(const uint32_t) = 0
247
- // (3) virtual bool IsValid() const = 0
248
- // (4) virtual uint32_t Count() const = 0
249
- // (5) virtual RPC::Environment Current() const = 0
250
- //
251
-
252
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods[] = {
253
- // (0) virtual bool Next(RPC::Environment&) = 0
254
- //
255
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
256
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
257
-
258
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
259
- ASSERT(implementation != nullptr);
260
-
261
- RPC::Environment _info{};
262
-
263
- bool result = implementation->Next(_info);
264
-
265
- RPC::Data::Frame::Writer writer(message->Response().Writer());
266
- writer.Boolean(result);
267
- writer.Text(_info.Key);
268
- writer.Text(_info.Value);
269
- writer.Number<RPC::Environment::scope>(_info.Scope);
270
- },
271
-
272
- // (1) virtual bool Previous(RPC::Environment&) = 0
273
- //
274
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
275
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
276
-
277
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
278
- ASSERT(implementation != nullptr);
279
-
280
- RPC::Environment _info{};
281
-
282
- bool result = implementation->Previous(_info);
283
-
284
- RPC::Data::Frame::Writer writer(message->Response().Writer());
285
- writer.Boolean(result);
286
- writer.Text(_info.Key);
287
- writer.Text(_info.Value);
288
- writer.Number<RPC::Environment::scope>(_info.Scope);
289
- },
290
-
291
- // (2) virtual void Reset(const uint32_t) = 0
292
- //
293
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
294
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
295
-
296
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
297
- ASSERT(implementation != nullptr);
298
-
299
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
300
- const uint32_t _position = reader.Number<uint32_t>();
301
-
302
- implementation->Reset(_position);
303
- },
304
-
305
- // (3) virtual bool IsValid() const = 0
306
- //
307
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
308
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
309
-
310
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
311
- ASSERT(implementation != nullptr);
312
-
313
- bool result = implementation->IsValid();
314
-
315
- RPC::Data::Frame::Writer writer(message->Response().Writer());
316
- writer.Boolean(result);
317
- },
318
-
319
- // (4) virtual uint32_t Count() const = 0
320
- //
321
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
322
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
323
-
324
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
325
- ASSERT(implementation != nullptr);
326
-
327
- uint32_t result = implementation->Count();
328
-
329
- RPC::Data::Frame::Writer writer(message->Response().Writer());
330
- writer.Number<uint32_t>(result);
331
- },
332
-
333
- // (5) virtual RPC::Environment Current() const = 0
334
- //
335
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
336
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
337
-
338
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
339
- ASSERT(implementation != nullptr);
340
-
341
- RPC::Environment result = implementation->Current();
342
-
343
- RPC::Data::Frame::Writer writer(message->Response().Writer());
344
- writer.Text(result.Key);
345
- writer.Text(result.Value);
346
- writer.Number<RPC::Environment::scope>(result.Scope);
347
- }
348
- , nullptr
349
- }; // RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods
350
-
351
- //
352
240
  // Example::ISimpleAsync interface stub definitions
353
241
  //
354
242
  // Methods:
355
243
  // (0) virtual Core::hresult Connect(const Core::OptionalType<std::vector<uint8_t>>&, const Core::OptionalType<uint16_t>&, Example::ISimpleAsync::ICallback* const) = 0
356
244
  // (1) virtual Core::hresult Abort() = 0
@@ -1392,134 +1280,10 @@
1392
1280
  }
1393
1281
 
1394
1282
  }; // class RPCIteratorTypeInstance_60eba5a793c685eaProxy
1395
1283
 
1396
1284
  //
1397
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface proxy definitions
1398
- //
1399
- // Methods:
1400
- // (0) virtual bool Next(RPC::Environment&) = 0
1401
- // (1) virtual bool Previous(RPC::Environment&) = 0
1402
- // (2) virtual void Reset(const uint32_t) = 0
1403
- // (3) virtual bool IsValid() const = 0
1404
- // (4) virtual uint32_t Count() const = 0
1405
- // (5) virtual RPC::Environment Current() const = 0
1406
- //
1407
-
1408
- class RPCIteratorTypeInstance_195e88cf7f955a2eProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>> {
1409
- public:
1410
- RPCIteratorTypeInstance_195e88cf7f955a2eProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
1411
- : BaseClass(channel, implementation, otherSideInformed)
1412
- {
1413
- }
1414
-
1415
- bool Next(RPC::Environment& _info) override
1416
- {
1417
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
1418
-
1419
- bool result{};
1420
-
1421
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1422
- if (hresult == Core::ERROR_NONE) {
1423
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1424
- result = reader.Boolean();
1425
- _info.Key = reader.Text();
1426
- _info.Value = reader.Text();
1427
- _info.Scope = reader.Number<RPC::Environment::scope>();
1428
- } else {
1429
- ASSERT((hresult & COM_ERROR) != 0);
1430
- }
1431
-
1432
- return (result);
1433
- }
1434
-
1435
- bool Previous(RPC::Environment& _info) override
1436
- {
1437
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
1438
-
1439
- bool result{};
1440
-
1441
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1442
- if (hresult == Core::ERROR_NONE) {
1443
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1444
- result = reader.Boolean();
1445
- _info.Key = reader.Text();
1446
- _info.Value = reader.Text();
1447
- _info.Scope = reader.Number<RPC::Environment::scope>();
1448
- } else {
1449
- ASSERT((hresult & COM_ERROR) != 0);
1450
- }
1451
-
1452
- return (result);
1453
- }
1454
-
1455
- void Reset(const uint32_t _position) override
1456
- {
1457
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
1458
-
1459
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
1460
- writer.Number<uint32_t>(_position);
1461
-
1462
- static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1463
- }
1464
-
1465
- bool IsValid() const override
1466
- {
1467
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
1468
-
1469
- bool result{};
1470
-
1471
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1472
- if (hresult == Core::ERROR_NONE) {
1473
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1474
- result = reader.Boolean();
1475
- } else {
1476
- ASSERT((hresult & COM_ERROR) != 0);
1477
- }
1478
-
1479
- return (result);
1480
- }
1481
-
1482
- uint32_t Count() const override
1483
- {
1484
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
1485
-
1486
- uint32_t result{};
1487
-
1488
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1489
- if (hresult == Core::ERROR_NONE) {
1490
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1491
- result = reader.Number<uint32_t>();
1492
- } else {
1493
- ASSERT((hresult & COM_ERROR) != 0);
1494
- }
1495
-
1496
- return (result);
1497
- }
1498
-
1499
- RPC::Environment Current() const override
1500
- {
1501
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1502
-
1503
- RPC::Environment result{};
1504
-
1505
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1506
- if (hresult == Core::ERROR_NONE) {
1507
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1508
- result.Key = reader.Text();
1509
- result.Value = reader.Text();
1510
- result.Scope = reader.Number<RPC::Environment::scope>();
1511
- } else {
1512
- ASSERT((hresult & COM_ERROR) != 0);
1513
- }
1514
-
1515
- return (result);
1516
- }
1517
-
1518
- }; // class RPCIteratorTypeInstance_195e88cf7f955a2eProxy
1519
-
1520
- //
1521
1285
  // Example::ISimpleAsync interface proxy definitions
1522
1286
  //
1523
1287
  // Methods:
1524
1288
  // (0) virtual Core::hresult Connect(const Core::OptionalType<std::vector<uint8_t>>&, const Core::OptionalType<uint16_t>&, Example::ISimpleAsync::ICallback* const) = 0
1525
1289
  // (1) virtual Core::hresult Abort() = 0
@@ -2375,11 +2139,10 @@
2375
2139
  // -----------------------------------------------------------------
2376
2140
  namespace {
2377
2141
 
2378
2142
  typedef ProxyStub::UnknownStubType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods> RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub;
2379
2143
  typedef ProxyStub::UnknownStubType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaStubMethods> RPCIteratorTypeInstance_60eba5a793c685eaStub;
2380
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods> RPCIteratorTypeInstance_195e88cf7f955a2eStub;
2381
2144
  typedef ProxyStub::UnknownStubType<Example::ISimpleAsync, ExampleSimpleAsyncStubMethods> ExampleSimpleAsyncStub;
2382
2145
  typedef ProxyStub::UnknownStubType<Example::ISimpleAsync::ICallback, ExampleSimpleAsyncCallbackStubMethods> ExampleSimpleAsyncCallbackStub;
2383
2146
  typedef ProxyStub::UnknownStubType<Example::ISimpleAsync::INotification, ExampleSimpleAsyncNotificationStubMethods> ExampleSimpleAsyncNotificationStub;
2384
2147
  typedef ProxyStub::UnknownStubType<Example::ISimpleAsync::IBindNotification, ExampleSimpleAsyncBindNotificationStubMethods> ExampleSimpleAsyncBindNotificationStub;
2385
2148
 
@@ -2387,21 +2150,19 @@
2387
2150
  public:
2388
2151
  Instantiation()
2389
2152
  {
2390
2153
  RPC::Administrator::Instance().Announce<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy, RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub>();
2391
2154
  RPC::Administrator::Instance().Announce<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaProxy, RPCIteratorTypeInstance_60eba5a793c685eaStub>();
2392
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eProxy, RPCIteratorTypeInstance_195e88cf7f955a2eStub>();
2393
2155
  RPC::Administrator::Instance().Announce<Example::ISimpleAsync, ExampleSimpleAsyncProxy, ExampleSimpleAsyncStub>();
2394
2156
  RPC::Administrator::Instance().Announce<Example::ISimpleAsync::ICallback, ExampleSimpleAsyncCallbackProxy, ExampleSimpleAsyncCallbackStub>();
2395
2157
  RPC::Administrator::Instance().Announce<Example::ISimpleAsync::INotification, ExampleSimpleAsyncNotificationProxy, ExampleSimpleAsyncNotificationStub>();
2396
2158
  RPC::Administrator::Instance().Announce<Example::ISimpleAsync::IBindNotification, ExampleSimpleAsyncBindNotificationProxy, ExampleSimpleAsyncBindNotificationStub>();
2397
2159
  }
2398
2160
  ~Instantiation()
2399
2161
  {
2400
2162
  RPC::Administrator::Instance().Recall<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>>();
2401
2163
  RPC::Administrator::Instance().Recall<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>>();
2402
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>>();
2403
2164
  RPC::Administrator::Instance().Recall<Example::ISimpleAsync>();
2404
2165
  RPC::Administrator::Instance().Recall<Example::ISimpleAsync::ICallback>();
2405
2166
  RPC::Administrator::Instance().Recall<Example::ISimpleAsync::INotification>();
2406
2167
  RPC::Administrator::Instance().Recall<Example::ISimpleAsync::IBindNotification>();
2407
2168
  }
{baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_Bluetooth.cpp RENAMED
@@ -1,50 +0,0 @@
1
- //
2
- // generated automatically from "IBluetooth.h"
3
- //
4
- // implements COM-RPC proxy stubs for:
5
- //
6
-
7
- #include "Module.h"
8
- #include "IBluetooth.h"
9
-
10
- #include <com/com.h>
11
-
12
- namespace Thunder {
13
-
14
- namespace ProxyStubs {
15
-
16
- PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
17
- PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
18
-
19
- // -----------------------------------------------------------------
20
- // STUBS
21
- // -----------------------------------------------------------------
22
-
23
- // -----------------------------------------------------------------
24
- // PROXIES
25
- // -----------------------------------------------------------------
26
-
27
- POP_WARNING()
28
- POP_WARNING()
29
-
30
- // -----------------------------------------------------------------
31
- // REGISTRATION
32
- // -----------------------------------------------------------------
33
- namespace {
34
-
35
-
36
- static class Instantiation {
37
- public:
38
- Instantiation()
39
- {
40
- }
41
- ~Instantiation()
42
- {
43
- }
44
- } ProxyStubRegistration;
45
-
46
- } // namespace
47
-
48
- } // namespace ProxyStubs
49
-
50
- }
{baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_Butler.cpp RENAMED
@@ -1,12 +1,10 @@
1
1
  //
2
2
  // generated automatically from "IButler.h"
3
3
  //
4
4
  // implements COM-RPC proxy stubs for:
5
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = RPC::ID_STRINGITERATOR] [[iterator]]
6
5
  // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = uint32_t, INTERFACE_ID = RPC::ID_VALUEITERATOR] [[iterator]]
7
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = RPC::Environment, INTERFACE_ID = RPC::ID_ENVIRONMENTITERATOR] [[iterator]]
8
6
  // - class Exchange::IButler
9
7
  // - class Exchange::IButler::INotification
10
8
  //
11
9
 
12
10
  #include "Module.h"
@@ -24,115 +22,10 @@
24
22
  // -----------------------------------------------------------------
25
23
  // STUBS
26
24
  // -----------------------------------------------------------------
27
25
 
28
26
  //
29
- // RPC::IIteratorTypeInstance_bd6e04b8d151c1f7 interface stub definitions
30
- //
31
- // Methods:
32
- // (0) virtual bool Next(string&) = 0
33
- // (1) virtual bool Previous(string&) = 0
34
- // (2) virtual void Reset(const uint32_t) = 0
35
- // (3) virtual bool IsValid() const = 0
36
- // (4) virtual uint32_t Count() const = 0
37
- // (5) virtual string Current() const = 0
38
- //
39
-
40
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods[] = {
41
- // (0) virtual bool Next(string&) = 0
42
- //
43
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
44
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
45
-
46
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
47
- ASSERT(implementation != nullptr);
48
-
49
- string _info{};
50
-
51
- bool result = implementation->Next(_info);
52
-
53
- RPC::Data::Frame::Writer writer(message->Response().Writer());
54
- writer.Boolean(result);
55
- writer.Text(_info);
56
- },
57
-
58
- // (1) virtual bool Previous(string&) = 0
59
- //
60
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
61
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
62
-
63
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
64
- ASSERT(implementation != nullptr);
65
-
66
- string _info{};
67
-
68
- bool result = implementation->Previous(_info);
69
-
70
- RPC::Data::Frame::Writer writer(message->Response().Writer());
71
- writer.Boolean(result);
72
- writer.Text(_info);
73
- },
74
-
75
- // (2) virtual void Reset(const uint32_t) = 0
76
- //
77
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
78
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
79
-
80
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
81
- ASSERT(implementation != nullptr);
82
-
83
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
84
- const uint32_t _position = reader.Number<uint32_t>();
85
-
86
- implementation->Reset(_position);
87
- },
88
-
89
- // (3) virtual bool IsValid() const = 0
90
- //
91
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
92
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
93
-
94
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
95
- ASSERT(implementation != nullptr);
96
-
97
- bool result = implementation->IsValid();
98
-
99
- RPC::Data::Frame::Writer writer(message->Response().Writer());
100
- writer.Boolean(result);
101
- },
102
-
103
- // (4) virtual uint32_t Count() const = 0
104
- //
105
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
106
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
107
-
108
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
109
- ASSERT(implementation != nullptr);
110
-
111
- uint32_t result = implementation->Count();
112
-
113
- RPC::Data::Frame::Writer writer(message->Response().Writer());
114
- writer.Number<uint32_t>(result);
115
- },
116
-
117
- // (5) virtual string Current() const = 0
118
- //
119
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
120
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
121
-
122
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
123
- ASSERT(implementation != nullptr);
124
-
125
- string result = implementation->Current();
126
-
127
- RPC::Data::Frame::Writer writer(message->Response().Writer());
128
- writer.Text(result);
129
- }
130
- , nullptr
131
- }; // RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods
132
-
133
- //
134
27
  // RPC::IIteratorTypeInstance_60eba5a793c685ea interface stub definitions
135
28
  //
136
29
  // Methods:
137
30
  // (0) virtual bool Next(uint32_t&) = 0
138
31
  // (1) virtual bool Previous(uint32_t&) = 0
@@ -234,121 +127,10 @@
234
127
  }
235
128
  , nullptr
236
129
  }; // RPCIteratorTypeInstance_60eba5a793c685eaStubMethods
237
130
 
238
131
  //
239
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface stub definitions
240
- //
241
- // Methods:
242
- // (0) virtual bool Next(RPC::Environment&) = 0
243
- // (1) virtual bool Previous(RPC::Environment&) = 0
244
- // (2) virtual void Reset(const uint32_t) = 0
245
- // (3) virtual bool IsValid() const = 0
246
- // (4) virtual uint32_t Count() const = 0
247
- // (5) virtual RPC::Environment Current() const = 0
248
- //
249
-
250
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods[] = {
251
- // (0) virtual bool Next(RPC::Environment&) = 0
252
- //
253
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
254
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
255
-
256
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
257
- ASSERT(implementation != nullptr);
258
-
259
- RPC::Environment _info{};
260
-
261
- bool result = implementation->Next(_info);
262
-
263
- RPC::Data::Frame::Writer writer(message->Response().Writer());
264
- writer.Boolean(result);
265
- writer.Text(_info.Key);
266
- writer.Text(_info.Value);
267
- writer.Number<RPC::Environment::scope>(_info.Scope);
268
- },
269
-
270
- // (1) virtual bool Previous(RPC::Environment&) = 0
271
- //
272
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
273
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
274
-
275
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
276
- ASSERT(implementation != nullptr);
277
-
278
- RPC::Environment _info{};
279
-
280
- bool result = implementation->Previous(_info);
281
-
282
- RPC::Data::Frame::Writer writer(message->Response().Writer());
283
- writer.Boolean(result);
284
- writer.Text(_info.Key);
285
- writer.Text(_info.Value);
286
- writer.Number<RPC::Environment::scope>(_info.Scope);
287
- },
288
-
289
- // (2) virtual void Reset(const uint32_t) = 0
290
- //
291
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
292
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
293
-
294
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
295
- ASSERT(implementation != nullptr);
296
-
297
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
298
- const uint32_t _position = reader.Number<uint32_t>();
299
-
300
- implementation->Reset(_position);
301
- },
302
-
303
- // (3) virtual bool IsValid() const = 0
304
- //
305
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
306
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
307
-
308
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
309
- ASSERT(implementation != nullptr);
310
-
311
- bool result = implementation->IsValid();
312
-
313
- RPC::Data::Frame::Writer writer(message->Response().Writer());
314
- writer.Boolean(result);
315
- },
316
-
317
- // (4) virtual uint32_t Count() const = 0
318
- //
319
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
320
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
321
-
322
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
323
- ASSERT(implementation != nullptr);
324
-
325
- uint32_t result = implementation->Count();
326
-
327
- RPC::Data::Frame::Writer writer(message->Response().Writer());
328
- writer.Number<uint32_t>(result);
329
- },
330
-
331
- // (5) virtual RPC::Environment Current() const = 0
332
- //
333
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
334
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
335
-
336
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
337
- ASSERT(implementation != nullptr);
338
-
339
- RPC::Environment result = implementation->Current();
340
-
341
- RPC::Data::Frame::Writer writer(message->Response().Writer());
342
- writer.Text(result.Key);
343
- writer.Text(result.Value);
344
- writer.Number<RPC::Environment::scope>(result.Scope);
345
- }
346
- , nullptr
347
- }; // RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods
348
-
349
- //
350
132
  // Exchange::IButler interface stub definitions
351
133
  //
352
134
  // Methods:
353
135
  // (0) virtual Core::hresult Register(Exchange::IButler::INotification* const) = 0
354
136
  // (1) virtual Core::hresult Unregister(const Exchange::IButler::INotification*) = 0
@@ -665,128 +447,10 @@
665
447
  // -----------------------------------------------------------------
666
448
  // PROXIES
667
449
  // -----------------------------------------------------------------
668
450
 
669
451
  //
670
- // RPC::IIteratorTypeInstance_bd6e04b8d151c1f7 interface proxy definitions
671
- //
672
- // Methods:
673
- // (0) virtual bool Next(string&) = 0
674
- // (1) virtual bool Previous(string&) = 0
675
- // (2) virtual void Reset(const uint32_t) = 0
676
- // (3) virtual bool IsValid() const = 0
677
- // (4) virtual uint32_t Count() const = 0
678
- // (5) virtual string Current() const = 0
679
- //
680
-
681
- class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>> {
682
- public:
683
- RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
684
- : BaseClass(channel, implementation, otherSideInformed)
685
- {
686
- }
687
-
688
- bool Next(string& _info) override
689
- {
690
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
691
-
692
- bool result{};
693
-
694
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
695
- if (hresult == Core::ERROR_NONE) {
696
- RPC::Data::Frame::Reader reader(message->Response().Reader());
697
- result = reader.Boolean();
698
- _info = reader.Text();
699
- } else {
700
- ASSERT((hresult & COM_ERROR) != 0);
701
- }
702
-
703
- return (result);
704
- }
705
-
706
- bool Previous(string& _info) override
707
- {
708
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
709
-
710
- bool result{};
711
-
712
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
713
- if (hresult == Core::ERROR_NONE) {
714
- RPC::Data::Frame::Reader reader(message->Response().Reader());
715
- result = reader.Boolean();
716
- _info = reader.Text();
717
- } else {
718
- ASSERT((hresult & COM_ERROR) != 0);
719
- }
720
-
721
- return (result);
722
- }
723
-
724
- void Reset(const uint32_t _position) override
725
- {
726
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
727
-
728
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
729
- writer.Number<uint32_t>(_position);
730
-
731
- static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
732
- }
733
-
734
- bool IsValid() const override
735
- {
736
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
737
-
738
- bool result{};
739
-
740
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
741
- if (hresult == Core::ERROR_NONE) {
742
- RPC::Data::Frame::Reader reader(message->Response().Reader());
743
- result = reader.Boolean();
744
- } else {
745
- ASSERT((hresult & COM_ERROR) != 0);
746
- }
747
-
748
- return (result);
749
- }
750
-
751
- uint32_t Count() const override
752
- {
753
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
754
-
755
- uint32_t result{};
756
-
757
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
758
- if (hresult == Core::ERROR_NONE) {
759
- RPC::Data::Frame::Reader reader(message->Response().Reader());
760
- result = reader.Number<uint32_t>();
761
- } else {
762
- ASSERT((hresult & COM_ERROR) != 0);
763
- }
764
-
765
- return (result);
766
- }
767
-
768
- string Current() const override
769
- {
770
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
771
-
772
- string result{};
773
-
774
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
775
- if (hresult == Core::ERROR_NONE) {
776
- RPC::Data::Frame::Reader reader(message->Response().Reader());
777
- result = reader.Text();
778
- } else {
779
- ASSERT((hresult & COM_ERROR) != 0);
780
- }
781
-
782
- return (result);
783
- }
784
-
785
- }; // class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy
786
-
787
- //
788
452
  // RPC::IIteratorTypeInstance_60eba5a793c685ea interface proxy definitions
789
453
  //
790
454
  // Methods:
791
455
  // (0) virtual bool Next(uint32_t&) = 0
792
456
  // (1) virtual bool Previous(uint32_t&) = 0
@@ -901,134 +565,10 @@
901
565
  }
902
566
 
903
567
  }; // class RPCIteratorTypeInstance_60eba5a793c685eaProxy
904
568
 
905
569
  //
906
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface proxy definitions
907
- //
908
- // Methods:
909
- // (0) virtual bool Next(RPC::Environment&) = 0
910
- // (1) virtual bool Previous(RPC::Environment&) = 0
911
- // (2) virtual void Reset(const uint32_t) = 0
912
- // (3) virtual bool IsValid() const = 0
913
- // (4) virtual uint32_t Count() const = 0
914
- // (5) virtual RPC::Environment Current() const = 0
915
- //
916
-
917
- class RPCIteratorTypeInstance_195e88cf7f955a2eProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>> {
918
- public:
919
- RPCIteratorTypeInstance_195e88cf7f955a2eProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
920
- : BaseClass(channel, implementation, otherSideInformed)
921
- {
922
- }
923
-
924
- bool Next(RPC::Environment& _info) override
925
- {
926
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
927
-
928
- bool result{};
929
-
930
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
931
- if (hresult == Core::ERROR_NONE) {
932
- RPC::Data::Frame::Reader reader(message->Response().Reader());
933
- result = reader.Boolean();
934
- _info.Key = reader.Text();
935
- _info.Value = reader.Text();
936
- _info.Scope = reader.Number<RPC::Environment::scope>();
937
- } else {
938
- ASSERT((hresult & COM_ERROR) != 0);
939
- }
940
-
941
- return (result);
942
- }
943
-
944
- bool Previous(RPC::Environment& _info) override
945
- {
946
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
947
-
948
- bool result{};
949
-
950
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
951
- if (hresult == Core::ERROR_NONE) {
952
- RPC::Data::Frame::Reader reader(message->Response().Reader());
953
- result = reader.Boolean();
954
- _info.Key = reader.Text();
955
- _info.Value = reader.Text();
956
- _info.Scope = reader.Number<RPC::Environment::scope>();
957
- } else {
958
- ASSERT((hresult & COM_ERROR) != 0);
959
- }
960
-
961
- return (result);
962
- }
963
-
964
- void Reset(const uint32_t _position) override
965
- {
966
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
967
-
968
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
969
- writer.Number<uint32_t>(_position);
970
-
971
- static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
972
- }
973
-
974
- bool IsValid() const override
975
- {
976
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
977
-
978
- bool result{};
979
-
980
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
981
- if (hresult == Core::ERROR_NONE) {
982
- RPC::Data::Frame::Reader reader(message->Response().Reader());
983
- result = reader.Boolean();
984
- } else {
985
- ASSERT((hresult & COM_ERROR) != 0);
986
- }
987
-
988
- return (result);
989
- }
990
-
991
- uint32_t Count() const override
992
- {
993
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
994
-
995
- uint32_t result{};
996
-
997
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
998
- if (hresult == Core::ERROR_NONE) {
999
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1000
- result = reader.Number<uint32_t>();
1001
- } else {
1002
- ASSERT((hresult & COM_ERROR) != 0);
1003
- }
1004
-
1005
- return (result);
1006
- }
1007
-
1008
- RPC::Environment Current() const override
1009
- {
1010
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1011
-
1012
- RPC::Environment result{};
1013
-
1014
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1015
- if (hresult == Core::ERROR_NONE) {
1016
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1017
- result.Key = reader.Text();
1018
- result.Value = reader.Text();
1019
- result.Scope = reader.Number<RPC::Environment::scope>();
1020
- } else {
1021
- ASSERT((hresult & COM_ERROR) != 0);
1022
- }
1023
-
1024
- return (result);
1025
- }
1026
-
1027
- }; // class RPCIteratorTypeInstance_195e88cf7f955a2eProxy
1028
-
1029
- //
1030
570
  // Exchange::IButler interface proxy definitions
1031
571
  //
1032
572
  // Methods:
1033
573
  // (0) virtual Core::hresult Register(Exchange::IButler::INotification* const) = 0
1034
574
  // (1) virtual Core::hresult Unregister(const Exchange::IButler::INotification*) = 0
@@ -1372,31 +912,25 @@
1372
912
  // -----------------------------------------------------------------
1373
913
  // REGISTRATION
1374
914
  // -----------------------------------------------------------------
1375
915
  namespace {
1376
916
 
1377
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods> RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub;
1378
917
  typedef ProxyStub::UnknownStubType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaStubMethods> RPCIteratorTypeInstance_60eba5a793c685eaStub;
1379
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods> RPCIteratorTypeInstance_195e88cf7f955a2eStub;
1380
918
  typedef ProxyStub::UnknownStubType<Exchange::IButler, ExchangeButlerStubMethods> ExchangeButlerStub;
1381
919
  typedef ProxyStub::UnknownStubType<Exchange::IButler::INotification, ExchangeButlerNotificationStubMethods> ExchangeButlerNotificationStub;
1382
920
 
1383
921
  static class Instantiation {
1384
922
  public:
1385
923
  Instantiation()
1386
924
  {
1387
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy, RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub>();
1388
925
  RPC::Administrator::Instance().Announce<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaProxy, RPCIteratorTypeInstance_60eba5a793c685eaStub>();
1389
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eProxy, RPCIteratorTypeInstance_195e88cf7f955a2eStub>();
1390
926
  RPC::Administrator::Instance().Announce<Exchange::IButler, ExchangeButlerProxy, ExchangeButlerStub>();
1391
927
  RPC::Administrator::Instance().Announce<Exchange::IButler::INotification, ExchangeButlerNotificationProxy, ExchangeButlerNotificationStub>();
1392
928
  }
1393
929
  ~Instantiation()
1394
930
  {
1395
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>>();
1396
931
  RPC::Administrator::Instance().Recall<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>>();
1397
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>>();
1398
932
  RPC::Administrator::Instance().Recall<Exchange::IButler>();
1399
933
  RPC::Administrator::Instance().Recall<Exchange::IButler::INotification>();
1400
934
  }
1401
935
  } ProxyStubRegistration;
1402
936
 
{baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_Capture.cpp RENAMED
@@ -1,50 +0,0 @@
1
- //
2
- // generated automatically from "ICapture.h"
3
- //
4
- // implements COM-RPC proxy stubs for:
5
- //
6
-
7
- #include "Module.h"
8
- #include "ICapture.h"
9
-
10
- #include <com/com.h>
11
-
12
- namespace Thunder {
13
-
14
- namespace ProxyStubs {
15
-
16
- PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
17
- PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
18
-
19
- // -----------------------------------------------------------------
20
- // STUBS
21
- // -----------------------------------------------------------------
22
-
23
- // -----------------------------------------------------------------
24
- // PROXIES
25
- // -----------------------------------------------------------------
26
-
27
- POP_WARNING()
28
- POP_WARNING()
29
-
30
- // -----------------------------------------------------------------
31
- // REGISTRATION
32
- // -----------------------------------------------------------------
33
- namespace {
34
-
35
-
36
- static class Instantiation {
37
- public:
38
- Instantiation()
39
- {
40
- }
41
- ~Instantiation()
42
- {
43
- }
44
- } ProxyStubRegistration;
45
-
46
- } // namespace
47
-
48
- } // namespace ProxyStubs
49
-
50
- }
{baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_ContentDecryption.cpp RENAMED
@@ -1,12 +1,10 @@
1
1
  //
2
2
  // generated automatically from "IContentDecryption.h"
3
3
  //
4
4
  // implements COM-RPC proxy stubs for:
5
5
  // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = RPC::ID_STRINGITERATOR] [[iterator]]
6
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = uint32_t, INTERFACE_ID = RPC::ID_VALUEITERATOR] [[iterator]]
7
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = RPC::Environment, INTERFACE_ID = RPC::ID_ENVIRONMENTITERATOR] [[iterator]]
8
6
  // - class Exchange::IContentDecryption
9
7
  // - class Exchange::IContentDecryption::INotification
10
8
  //
11
9
 
12
10
  #include "Module.h"
@@ -129,226 +127,10 @@
129
127
  }
130
128
  , nullptr
131
129
  }; // RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods
132
130
 
133
131
  //
134
- // RPC::IIteratorTypeInstance_60eba5a793c685ea interface stub definitions
135
- //
136
- // Methods:
137
- // (0) virtual bool Next(uint32_t&) = 0
138
- // (1) virtual bool Previous(uint32_t&) = 0
139
- // (2) virtual void Reset(const uint32_t) = 0
140
- // (3) virtual bool IsValid() const = 0
141
- // (4) virtual uint32_t Count() const = 0
142
- // (5) virtual uint32_t Current() const = 0
143
- //
144
-
145
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_60eba5a793c685eaStubMethods[] = {
146
- // (0) virtual bool Next(uint32_t&) = 0
147
- //
148
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
149
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
150
-
151
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
152
- ASSERT(implementation != nullptr);
153
-
154
- uint32_t _info{};
155
-
156
- bool result = implementation->Next(_info);
157
-
158
- RPC::Data::Frame::Writer writer(message->Response().Writer());
159
- writer.Boolean(result);
160
- writer.Number<uint32_t>(_info);
161
- },
162
-
163
- // (1) virtual bool Previous(uint32_t&) = 0
164
- //
165
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
166
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
167
-
168
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
169
- ASSERT(implementation != nullptr);
170
-
171
- uint32_t _info{};
172
-
173
- bool result = implementation->Previous(_info);
174
-
175
- RPC::Data::Frame::Writer writer(message->Response().Writer());
176
- writer.Boolean(result);
177
- writer.Number<uint32_t>(_info);
178
- },
179
-
180
- // (2) virtual void Reset(const uint32_t) = 0
181
- //
182
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
183
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
184
-
185
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
186
- ASSERT(implementation != nullptr);
187
-
188
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
189
- const uint32_t _position = reader.Number<uint32_t>();
190
-
191
- implementation->Reset(_position);
192
- },
193
-
194
- // (3) virtual bool IsValid() const = 0
195
- //
196
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
197
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
198
-
199
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
200
- ASSERT(implementation != nullptr);
201
-
202
- bool result = implementation->IsValid();
203
-
204
- RPC::Data::Frame::Writer writer(message->Response().Writer());
205
- writer.Boolean(result);
206
- },
207
-
208
- // (4) virtual uint32_t Count() const = 0
209
- //
210
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
211
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
212
-
213
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
214
- ASSERT(implementation != nullptr);
215
-
216
- uint32_t result = implementation->Count();
217
-
218
- RPC::Data::Frame::Writer writer(message->Response().Writer());
219
- writer.Number<uint32_t>(result);
220
- },
221
-
222
- // (5) virtual uint32_t Current() const = 0
223
- //
224
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
225
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
226
-
227
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
228
- ASSERT(implementation != nullptr);
229
-
230
- uint32_t result = implementation->Current();
231
-
232
- RPC::Data::Frame::Writer writer(message->Response().Writer());
233
- writer.Number<uint32_t>(result);
234
- }
235
- , nullptr
236
- }; // RPCIteratorTypeInstance_60eba5a793c685eaStubMethods
237
-
238
- //
239
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface stub definitions
240
- //
241
- // Methods:
242
- // (0) virtual bool Next(RPC::Environment&) = 0
243
- // (1) virtual bool Previous(RPC::Environment&) = 0
244
- // (2) virtual void Reset(const uint32_t) = 0
245
- // (3) virtual bool IsValid() const = 0
246
- // (4) virtual uint32_t Count() const = 0
247
- // (5) virtual RPC::Environment Current() const = 0
248
- //
249
-
250
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods[] = {
251
- // (0) virtual bool Next(RPC::Environment&) = 0
252
- //
253
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
254
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
255
-
256
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
257
- ASSERT(implementation != nullptr);
258
-
259
- RPC::Environment _info{};
260
-
261
- bool result = implementation->Next(_info);
262
-
263
- RPC::Data::Frame::Writer writer(message->Response().Writer());
264
- writer.Boolean(result);
265
- writer.Text(_info.Key);
266
- writer.Text(_info.Value);
267
- writer.Number<RPC::Environment::scope>(_info.Scope);
268
- },
269
-
270
- // (1) virtual bool Previous(RPC::Environment&) = 0
271
- //
272
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
273
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
274
-
275
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
276
- ASSERT(implementation != nullptr);
277
-
278
- RPC::Environment _info{};
279
-
280
- bool result = implementation->Previous(_info);
281
-
282
- RPC::Data::Frame::Writer writer(message->Response().Writer());
283
- writer.Boolean(result);
284
- writer.Text(_info.Key);
285
- writer.Text(_info.Value);
286
- writer.Number<RPC::Environment::scope>(_info.Scope);
287
- },
288
-
289
- // (2) virtual void Reset(const uint32_t) = 0
290
- //
291
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
292
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
293
-
294
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
295
- ASSERT(implementation != nullptr);
296
-
297
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
298
- const uint32_t _position = reader.Number<uint32_t>();
299
-
300
- implementation->Reset(_position);
301
- },
302
-
303
- // (3) virtual bool IsValid() const = 0
304
- //
305
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
306
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
307
-
308
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
309
- ASSERT(implementation != nullptr);
310
-
311
- bool result = implementation->IsValid();
312
-
313
- RPC::Data::Frame::Writer writer(message->Response().Writer());
314
- writer.Boolean(result);
315
- },
316
-
317
- // (4) virtual uint32_t Count() const = 0
318
- //
319
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
320
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
321
-
322
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
323
- ASSERT(implementation != nullptr);
324
-
325
- uint32_t result = implementation->Count();
326
-
327
- RPC::Data::Frame::Writer writer(message->Response().Writer());
328
- writer.Number<uint32_t>(result);
329
- },
330
-
331
- // (5) virtual RPC::Environment Current() const = 0
332
- //
333
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
334
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
335
-
336
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
337
- ASSERT(implementation != nullptr);
338
-
339
- RPC::Environment result = implementation->Current();
340
-
341
- RPC::Data::Frame::Writer writer(message->Response().Writer());
342
- writer.Text(result.Key);
343
- writer.Text(result.Value);
344
- writer.Number<RPC::Environment::scope>(result.Scope);
345
- }
346
- , nullptr
347
- }; // RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods
348
-
349
- //
350
132
  // Exchange::IContentDecryption interface stub definitions
351
133
  //
352
134
  // Methods:
353
135
  // (0) virtual uint32_t Initialize(PluginHost::IShell*) = 0
354
136
  // (1) virtual void Deinitialize(PluginHost::IShell*) = 0
@@ -668,252 +450,10 @@
668
450
  }
669
451
 
670
452
  }; // class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy
671
453
 
672
454
  //
673
- // RPC::IIteratorTypeInstance_60eba5a793c685ea interface proxy definitions
674
- //
675
- // Methods:
676
- // (0) virtual bool Next(uint32_t&) = 0
677
- // (1) virtual bool Previous(uint32_t&) = 0
678
- // (2) virtual void Reset(const uint32_t) = 0
679
- // (3) virtual bool IsValid() const = 0
680
- // (4) virtual uint32_t Count() const = 0
681
- // (5) virtual uint32_t Current() const = 0
682
- //
683
-
684
- class RPCIteratorTypeInstance_60eba5a793c685eaProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>> {
685
- public:
686
- RPCIteratorTypeInstance_60eba5a793c685eaProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
687
- : BaseClass(channel, implementation, otherSideInformed)
688
- {
689
- }
690
-
691
- bool Next(uint32_t& _info) override
692
- {
693
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
694
-
695
- bool result{};
696
-
697
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
698
- if (hresult == Core::ERROR_NONE) {
699
- RPC::Data::Frame::Reader reader(message->Response().Reader());
700
- result = reader.Boolean();
701
- _info = reader.Number<uint32_t>();
702
- } else {
703
- ASSERT((hresult & COM_ERROR) != 0);
704
- }
705
-
706
- return (result);
707
- }
708
-
709
- bool Previous(uint32_t& _info) override
710
- {
711
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
712
-
713
- bool result{};
714
-
715
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
716
- if (hresult == Core::ERROR_NONE) {
717
- RPC::Data::Frame::Reader reader(message->Response().Reader());
718
- result = reader.Boolean();
719
- _info = reader.Number<uint32_t>();
720
- } else {
721
- ASSERT((hresult & COM_ERROR) != 0);
722
- }
723
-
724
- return (result);
725
- }
726
-
727
- void Reset(const uint32_t _position) override
728
- {
729
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
730
-
731
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
732
- writer.Number<uint32_t>(_position);
733
-
734
- static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
735
- }
736
-
737
- bool IsValid() const override
738
- {
739
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
740
-
741
- bool result{};
742
-
743
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
744
- if (hresult == Core::ERROR_NONE) {
745
- RPC::Data::Frame::Reader reader(message->Response().Reader());
746
- result = reader.Boolean();
747
- } else {
748
- ASSERT((hresult & COM_ERROR) != 0);
749
- }
750
-
751
- return (result);
752
- }
753
-
754
- uint32_t Count() const override
755
- {
756
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
757
-
758
- uint32_t result{};
759
-
760
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
761
- if (hresult == Core::ERROR_NONE) {
762
- RPC::Data::Frame::Reader reader(message->Response().Reader());
763
- result = reader.Number<uint32_t>();
764
- } else {
765
- ASSERT((hresult & COM_ERROR) != 0);
766
- }
767
-
768
- return (result);
769
- }
770
-
771
- uint32_t Current() const override
772
- {
773
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
774
-
775
- uint32_t result{};
776
-
777
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
778
- if (hresult == Core::ERROR_NONE) {
779
- RPC::Data::Frame::Reader reader(message->Response().Reader());
780
- result = reader.Number<uint32_t>();
781
- } else {
782
- ASSERT((hresult & COM_ERROR) != 0);
783
- }
784
-
785
- return (result);
786
- }
787
-
788
- }; // class RPCIteratorTypeInstance_60eba5a793c685eaProxy
789
-
790
- //
791
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface proxy definitions
792
- //
793
- // Methods:
794
- // (0) virtual bool Next(RPC::Environment&) = 0
795
- // (1) virtual bool Previous(RPC::Environment&) = 0
796
- // (2) virtual void Reset(const uint32_t) = 0
797
- // (3) virtual bool IsValid() const = 0
798
- // (4) virtual uint32_t Count() const = 0
799
- // (5) virtual RPC::Environment Current() const = 0
800
- //
801
-
802
- class RPCIteratorTypeInstance_195e88cf7f955a2eProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>> {
803
- public:
804
- RPCIteratorTypeInstance_195e88cf7f955a2eProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
805
- : BaseClass(channel, implementation, otherSideInformed)
806
- {
807
- }
808
-
809
- bool Next(RPC::Environment& _info) override
810
- {
811
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
812
-
813
- bool result{};
814
-
815
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
816
- if (hresult == Core::ERROR_NONE) {
817
- RPC::Data::Frame::Reader reader(message->Response().Reader());
818
- result = reader.Boolean();
819
- _info.Key = reader.Text();
820
- _info.Value = reader.Text();
821
- _info.Scope = reader.Number<RPC::Environment::scope>();
822
- } else {
823
- ASSERT((hresult & COM_ERROR) != 0);
824
- }
825
-
826
- return (result);
827
- }
828
-
829
- bool Previous(RPC::Environment& _info) override
830
- {
831
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
832
-
833
- bool result{};
834
-
835
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
836
- if (hresult == Core::ERROR_NONE) {
837
- RPC::Data::Frame::Reader reader(message->Response().Reader());
838
- result = reader.Boolean();
839
- _info.Key = reader.Text();
840
- _info.Value = reader.Text();
841
- _info.Scope = reader.Number<RPC::Environment::scope>();
842
- } else {
843
- ASSERT((hresult & COM_ERROR) != 0);
844
- }
845
-
846
- return (result);
847
- }
848
-
849
- void Reset(const uint32_t _position) override
850
- {
851
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
852
-
853
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
854
- writer.Number<uint32_t>(_position);
855
-
856
- static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
857
- }
858
-
859
- bool IsValid() const override
860
- {
861
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
862
-
863
- bool result{};
864
-
865
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
866
- if (hresult == Core::ERROR_NONE) {
867
- RPC::Data::Frame::Reader reader(message->Response().Reader());
868
- result = reader.Boolean();
869
- } else {
870
- ASSERT((hresult & COM_ERROR) != 0);
871
- }
872
-
873
- return (result);
874
- }
875
-
876
- uint32_t Count() const override
877
- {
878
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
879
-
880
- uint32_t result{};
881
-
882
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
883
- if (hresult == Core::ERROR_NONE) {
884
- RPC::Data::Frame::Reader reader(message->Response().Reader());
885
- result = reader.Number<uint32_t>();
886
- } else {
887
- ASSERT((hresult & COM_ERROR) != 0);
888
- }
889
-
890
- return (result);
891
- }
892
-
893
- RPC::Environment Current() const override
894
- {
895
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
896
-
897
- RPC::Environment result{};
898
-
899
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
900
- if (hresult == Core::ERROR_NONE) {
901
- RPC::Data::Frame::Reader reader(message->Response().Reader());
902
- result.Key = reader.Text();
903
- result.Value = reader.Text();
904
- result.Scope = reader.Number<RPC::Environment::scope>();
905
- } else {
906
- ASSERT((hresult & COM_ERROR) != 0);
907
- }
908
-
909
- return (result);
910
- }
911
-
912
- }; // class RPCIteratorTypeInstance_195e88cf7f955a2eProxy
913
-
914
- //
915
455
  // Exchange::IContentDecryption interface proxy definitions
916
456
  //
917
457
  // Methods:
918
458
  // (0) virtual uint32_t Initialize(PluginHost::IShell*) = 0
919
459
  // (1) virtual void Deinitialize(PluginHost::IShell*) = 0
@@ -1144,30 +684,24 @@
1144
684
  // REGISTRATION
1145
685
  // -----------------------------------------------------------------
1146
686
  namespace {
1147
687
 
1148
688
  typedef ProxyStub::UnknownStubType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods> RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub;
1149
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaStubMethods> RPCIteratorTypeInstance_60eba5a793c685eaStub;
1150
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods> RPCIteratorTypeInstance_195e88cf7f955a2eStub;
1151
689
  typedef ProxyStub::UnknownStubType<Exchange::IContentDecryption, ExchangeContentDecryptionStubMethods> ExchangeContentDecryptionStub;
1152
690
  typedef ProxyStub::UnknownStubType<Exchange::IContentDecryption::INotification, ExchangeContentDecryptionNotificationStubMethods> ExchangeContentDecryptionNotificationStub;
1153
691
 
1154
692
  static class Instantiation {
1155
693
  public:
1156
694
  Instantiation()
1157
695
  {
1158
696
  RPC::Administrator::Instance().Announce<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy, RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub>();
1159
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaProxy, RPCIteratorTypeInstance_60eba5a793c685eaStub>();
1160
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eProxy, RPCIteratorTypeInstance_195e88cf7f955a2eStub>();
1161
697
  RPC::Administrator::Instance().Announce<Exchange::IContentDecryption, ExchangeContentDecryptionProxy, ExchangeContentDecryptionStub>();
1162
698
  RPC::Administrator::Instance().Announce<Exchange::IContentDecryption::INotification, ExchangeContentDecryptionNotificationProxy, ExchangeContentDecryptionNotificationStub>();
1163
699
  }
1164
700
  ~Instantiation()
1165
701
  {
1166
702
  RPC::Administrator::Instance().Recall<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>>();
1167
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>>();
1168
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>>();
1169
703
  RPC::Administrator::Instance().Recall<Exchange::IContentDecryption>();
1170
704
  RPC::Administrator::Instance().Recall<Exchange::IContentDecryption::INotification>();
1171
705
  }
1172
706
  } ProxyStubRegistration;
1173
707
 
{baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_IPNetwork.cpp RENAMED
@@ -1,50 +0,0 @@
1
- //
2
- // generated automatically from "IIPNetwork.h"
3
- //
4
- // implements COM-RPC proxy stubs for:
5
- //
6
-
7
- #include "Module.h"
8
- #include "IIPNetwork.h"
9
-
10
- #include <com/com.h>
11
-
12
- namespace Thunder {
13
-
14
- namespace ProxyStubs {
15
-
16
- PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
17
- PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
18
-
19
- // -----------------------------------------------------------------
20
- // STUBS
21
- // -----------------------------------------------------------------
22
-
23
- // -----------------------------------------------------------------
24
- // PROXIES
25
- // -----------------------------------------------------------------
26
-
27
- POP_WARNING()
28
- POP_WARNING()
29
-
30
- // -----------------------------------------------------------------
31
- // REGISTRATION
32
- // -----------------------------------------------------------------
33
- namespace {
34
-
35
-
36
- static class Instantiation {
37
- public:
38
- Instantiation()
39
- {
40
- }
41
- ~Instantiation()
42
- {
43
- }
44
- } ProxyStubRegistration;
45
-
46
- } // namespace
47
-
48
- } // namespace ProxyStubs
49
-
50
- }
{baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_InputSwitch.cpp RENAMED
@@ -1,12 +1,10 @@
1
1
  //
2
2
  // generated automatically from "IInputSwitch.h"
3
3
  //
4
4
  // implements COM-RPC proxy stubs for:
5
5
  // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = RPC::ID_STRINGITERATOR] [[iterator]]
6
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = uint32_t, INTERFACE_ID = RPC::ID_VALUEITERATOR] [[iterator]]
7
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = RPC::Environment, INTERFACE_ID = RPC::ID_ENVIRONMENTITERATOR] [[iterator]]
8
6
  // - class Exchange::IInputSwitch
9
7
  //
10
8
 
11
9
  #include "Module.h"
12
10
  #include "IInputSwitch.h"
@@ -128,226 +126,10 @@
128
126
  }
129
127
  , nullptr
130
128
  }; // RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods
131
129
 
132
130
  //
133
- // RPC::IIteratorTypeInstance_60eba5a793c685ea interface stub definitions
134
- //
135
- // Methods:
136
- // (0) virtual bool Next(uint32_t&) = 0
137
- // (1) virtual bool Previous(uint32_t&) = 0
138
- // (2) virtual void Reset(const uint32_t) = 0
139
- // (3) virtual bool IsValid() const = 0
140
- // (4) virtual uint32_t Count() const = 0
141
- // (5) virtual uint32_t Current() const = 0
142
- //
143
-
144
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_60eba5a793c685eaStubMethods[] = {
145
- // (0) virtual bool Next(uint32_t&) = 0
146
- //
147
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
148
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
149
-
150
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
151
- ASSERT(implementation != nullptr);
152
-
153
- uint32_t _info{};
154
-
155
- bool result = implementation->Next(_info);
156
-
157
- RPC::Data::Frame::Writer writer(message->Response().Writer());
158
- writer.Boolean(result);
159
- writer.Number<uint32_t>(_info);
160
- },
161
-
162
- // (1) virtual bool Previous(uint32_t&) = 0
163
- //
164
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
165
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
166
-
167
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
168
- ASSERT(implementation != nullptr);
169
-
170
- uint32_t _info{};
171
-
172
- bool result = implementation->Previous(_info);
173
-
174
- RPC::Data::Frame::Writer writer(message->Response().Writer());
175
- writer.Boolean(result);
176
- writer.Number<uint32_t>(_info);
177
- },
178
-
179
- // (2) virtual void Reset(const uint32_t) = 0
180
- //
181
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
182
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
183
-
184
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
185
- ASSERT(implementation != nullptr);
186
-
187
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
188
- const uint32_t _position = reader.Number<uint32_t>();
189
-
190
- implementation->Reset(_position);
191
- },
192
-
193
- // (3) virtual bool IsValid() const = 0
194
- //
195
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
196
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
197
-
198
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
199
- ASSERT(implementation != nullptr);
200
-
201
- bool result = implementation->IsValid();
202
-
203
- RPC::Data::Frame::Writer writer(message->Response().Writer());
204
- writer.Boolean(result);
205
- },
206
-
207
- // (4) virtual uint32_t Count() const = 0
208
- //
209
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
210
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
211
-
212
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
213
- ASSERT(implementation != nullptr);
214
-
215
- uint32_t result = implementation->Count();
216
-
217
- RPC::Data::Frame::Writer writer(message->Response().Writer());
218
- writer.Number<uint32_t>(result);
219
- },
220
-
221
- // (5) virtual uint32_t Current() const = 0
222
- //
223
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
224
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
225
-
226
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
227
- ASSERT(implementation != nullptr);
228
-
229
- uint32_t result = implementation->Current();
230
-
231
- RPC::Data::Frame::Writer writer(message->Response().Writer());
232
- writer.Number<uint32_t>(result);
233
- }
234
- , nullptr
235
- }; // RPCIteratorTypeInstance_60eba5a793c685eaStubMethods
236
-
237
- //
238
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface stub definitions
239
- //
240
- // Methods:
241
- // (0) virtual bool Next(RPC::Environment&) = 0
242
- // (1) virtual bool Previous(RPC::Environment&) = 0
243
- // (2) virtual void Reset(const uint32_t) = 0
244
- // (3) virtual bool IsValid() const = 0
245
- // (4) virtual uint32_t Count() const = 0
246
- // (5) virtual RPC::Environment Current() const = 0
247
- //
248
-
249
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods[] = {
250
- // (0) virtual bool Next(RPC::Environment&) = 0
251
- //
252
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
253
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
254
-
255
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
256
- ASSERT(implementation != nullptr);
257
-
258
- RPC::Environment _info{};
259
-
260
- bool result = implementation->Next(_info);
261
-
262
- RPC::Data::Frame::Writer writer(message->Response().Writer());
263
- writer.Boolean(result);
264
- writer.Text(_info.Key);
265
- writer.Text(_info.Value);
266
- writer.Number<RPC::Environment::scope>(_info.Scope);
267
- },
268
-
269
- // (1) virtual bool Previous(RPC::Environment&) = 0
270
- //
271
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
272
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
273
-
274
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
275
- ASSERT(implementation != nullptr);
276
-
277
- RPC::Environment _info{};
278
-
279
- bool result = implementation->Previous(_info);
280
-
281
- RPC::Data::Frame::Writer writer(message->Response().Writer());
282
- writer.Boolean(result);
283
- writer.Text(_info.Key);
284
- writer.Text(_info.Value);
285
- writer.Number<RPC::Environment::scope>(_info.Scope);
286
- },
287
-
288
- // (2) virtual void Reset(const uint32_t) = 0
289
- //
290
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
291
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
292
-
293
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
294
- ASSERT(implementation != nullptr);
295
-
296
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
297
- const uint32_t _position = reader.Number<uint32_t>();
298
-
299
- implementation->Reset(_position);
300
- },
301
-
302
- // (3) virtual bool IsValid() const = 0
303
- //
304
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
305
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
306
-
307
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
308
- ASSERT(implementation != nullptr);
309
-
310
- bool result = implementation->IsValid();
311
-
312
- RPC::Data::Frame::Writer writer(message->Response().Writer());
313
- writer.Boolean(result);
314
- },
315
-
316
- // (4) virtual uint32_t Count() const = 0
317
- //
318
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
319
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
320
-
321
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
322
- ASSERT(implementation != nullptr);
323
-
324
- uint32_t result = implementation->Count();
325
-
326
- RPC::Data::Frame::Writer writer(message->Response().Writer());
327
- writer.Number<uint32_t>(result);
328
- },
329
-
330
- // (5) virtual RPC::Environment Current() const = 0
331
- //
332
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
333
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
334
-
335
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
336
- ASSERT(implementation != nullptr);
337
-
338
- RPC::Environment result = implementation->Current();
339
-
340
- RPC::Data::Frame::Writer writer(message->Response().Writer());
341
- writer.Text(result.Key);
342
- writer.Text(result.Value);
343
- writer.Number<RPC::Environment::scope>(result.Scope);
344
- }
345
- , nullptr
346
- }; // RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods
347
-
348
- //
349
131
  // Exchange::IInputSwitch interface stub definitions
350
132
  //
351
133
  // Methods:
352
134
  // (0) virtual RPC::IStringIterator* Consumers() const = 0
353
135
  // (1) virtual bool Consumer(const string&) const = 0
@@ -539,252 +321,10 @@
539
321
  }
540
322
 
541
323
  }; // class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy
542
324
 
543
325
  //
544
- // RPC::IIteratorTypeInstance_60eba5a793c685ea interface proxy definitions
545
- //
546
- // Methods:
547
- // (0) virtual bool Next(uint32_t&) = 0
548
- // (1) virtual bool Previous(uint32_t&) = 0
549
- // (2) virtual void Reset(const uint32_t) = 0
550
- // (3) virtual bool IsValid() const = 0
551
- // (4) virtual uint32_t Count() const = 0
552
- // (5) virtual uint32_t Current() const = 0
553
- //
554
-
555
- class RPCIteratorTypeInstance_60eba5a793c685eaProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>> {
556
- public:
557
- RPCIteratorTypeInstance_60eba5a793c685eaProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
558
- : BaseClass(channel, implementation, otherSideInformed)
559
- {
560
- }
561
-
562
- bool Next(uint32_t& _info) override
563
- {
564
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
565
-
566
- bool result{};
567
-
568
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
569
- if (hresult == Core::ERROR_NONE) {
570
- RPC::Data::Frame::Reader reader(message->Response().Reader());
571
- result = reader.Boolean();
572
- _info = reader.Number<uint32_t>();
573
- } else {
574
- ASSERT((hresult & COM_ERROR) != 0);
575
- }
576
-
577
- return (result);
578
- }
579
-
580
- bool Previous(uint32_t& _info) override
581
- {
582
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
583
-
584
- bool result{};
585
-
586
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
587
- if (hresult == Core::ERROR_NONE) {
588
- RPC::Data::Frame::Reader reader(message->Response().Reader());
589
- result = reader.Boolean();
590
- _info = reader.Number<uint32_t>();
591
- } else {
592
- ASSERT((hresult & COM_ERROR) != 0);
593
- }
594
-
595
- return (result);
596
- }
597
-
598
- void Reset(const uint32_t _position) override
599
- {
600
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
601
-
602
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
603
- writer.Number<uint32_t>(_position);
604
-
605
- static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
606
- }
607
-
608
- bool IsValid() const override
609
- {
610
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
611
-
612
- bool result{};
613
-
614
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
615
- if (hresult == Core::ERROR_NONE) {
616
- RPC::Data::Frame::Reader reader(message->Response().Reader());
617
- result = reader.Boolean();
618
- } else {
619
- ASSERT((hresult & COM_ERROR) != 0);
620
- }
621
-
622
- return (result);
623
- }
624
-
625
- uint32_t Count() const override
626
- {
627
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
628
-
629
- uint32_t result{};
630
-
631
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
632
- if (hresult == Core::ERROR_NONE) {
633
- RPC::Data::Frame::Reader reader(message->Response().Reader());
634
- result = reader.Number<uint32_t>();
635
- } else {
636
- ASSERT((hresult & COM_ERROR) != 0);
637
- }
638
-
639
- return (result);
640
- }
641
-
642
- uint32_t Current() const override
643
- {
644
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
645
-
646
- uint32_t result{};
647
-
648
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
649
- if (hresult == Core::ERROR_NONE) {
650
- RPC::Data::Frame::Reader reader(message->Response().Reader());
651
- result = reader.Number<uint32_t>();
652
- } else {
653
- ASSERT((hresult & COM_ERROR) != 0);
654
- }
655
-
656
- return (result);
657
- }
658
-
659
- }; // class RPCIteratorTypeInstance_60eba5a793c685eaProxy
660
-
661
- //
662
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface proxy definitions
663
- //
664
- // Methods:
665
- // (0) virtual bool Next(RPC::Environment&) = 0
666
- // (1) virtual bool Previous(RPC::Environment&) = 0
667
- // (2) virtual void Reset(const uint32_t) = 0
668
- // (3) virtual bool IsValid() const = 0
669
- // (4) virtual uint32_t Count() const = 0
670
- // (5) virtual RPC::Environment Current() const = 0
671
- //
672
-
673
- class RPCIteratorTypeInstance_195e88cf7f955a2eProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>> {
674
- public:
675
- RPCIteratorTypeInstance_195e88cf7f955a2eProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
676
- : BaseClass(channel, implementation, otherSideInformed)
677
- {
678
- }
679
-
680
- bool Next(RPC::Environment& _info) override
681
- {
682
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
683
-
684
- bool result{};
685
-
686
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
687
- if (hresult == Core::ERROR_NONE) {
688
- RPC::Data::Frame::Reader reader(message->Response().Reader());
689
- result = reader.Boolean();
690
- _info.Key = reader.Text();
691
- _info.Value = reader.Text();
692
- _info.Scope = reader.Number<RPC::Environment::scope>();
693
- } else {
694
- ASSERT((hresult & COM_ERROR) != 0);
695
- }
696
-
697
- return (result);
698
- }
699
-
700
- bool Previous(RPC::Environment& _info) override
701
- {
702
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
703
-
704
- bool result{};
705
-
706
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
707
- if (hresult == Core::ERROR_NONE) {
708
- RPC::Data::Frame::Reader reader(message->Response().Reader());
709
- result = reader.Boolean();
710
- _info.Key = reader.Text();
711
- _info.Value = reader.Text();
712
- _info.Scope = reader.Number<RPC::Environment::scope>();
713
- } else {
714
- ASSERT((hresult & COM_ERROR) != 0);
715
- }
716
-
717
- return (result);
718
- }
719
-
720
- void Reset(const uint32_t _position) override
721
- {
722
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
723
-
724
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
725
- writer.Number<uint32_t>(_position);
726
-
727
- static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
728
- }
729
-
730
- bool IsValid() const override
731
- {
732
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
733
-
734
- bool result{};
735
-
736
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
737
- if (hresult == Core::ERROR_NONE) {
738
- RPC::Data::Frame::Reader reader(message->Response().Reader());
739
- result = reader.Boolean();
740
- } else {
741
- ASSERT((hresult & COM_ERROR) != 0);
742
- }
743
-
744
- return (result);
745
- }
746
-
747
- uint32_t Count() const override
748
- {
749
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
750
-
751
- uint32_t result{};
752
-
753
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
754
- if (hresult == Core::ERROR_NONE) {
755
- RPC::Data::Frame::Reader reader(message->Response().Reader());
756
- result = reader.Number<uint32_t>();
757
- } else {
758
- ASSERT((hresult & COM_ERROR) != 0);
759
- }
760
-
761
- return (result);
762
- }
763
-
764
- RPC::Environment Current() const override
765
- {
766
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
767
-
768
- RPC::Environment result{};
769
-
770
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
771
- if (hresult == Core::ERROR_NONE) {
772
- RPC::Data::Frame::Reader reader(message->Response().Reader());
773
- result.Key = reader.Text();
774
- result.Value = reader.Text();
775
- result.Scope = reader.Number<RPC::Environment::scope>();
776
- } else {
777
- ASSERT((hresult & COM_ERROR) != 0);
778
- }
779
-
780
- return (result);
781
- }
782
-
783
- }; // class RPCIteratorTypeInstance_195e88cf7f955a2eProxy
784
-
785
- //
786
326
  // Exchange::IInputSwitch interface proxy definitions
787
327
  //
788
328
  // Methods:
789
329
  // (0) virtual RPC::IStringIterator* Consumers() const = 0
790
330
  // (1) virtual bool Consumer(const string&) const = 0
@@ -886,28 +426,22 @@
886
426
  // REGISTRATION
887
427
  // -----------------------------------------------------------------
888
428
  namespace {
889
429
 
890
430
  typedef ProxyStub::UnknownStubType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods> RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub;
891
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaStubMethods> RPCIteratorTypeInstance_60eba5a793c685eaStub;
892
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods> RPCIteratorTypeInstance_195e88cf7f955a2eStub;
893
431
  typedef ProxyStub::UnknownStubType<Exchange::IInputSwitch, ExchangeInputSwitchStubMethods> ExchangeInputSwitchStub;
894
432
 
895
433
  static class Instantiation {
896
434
  public:
897
435
  Instantiation()
898
436
  {
899
437
  RPC::Administrator::Instance().Announce<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy, RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub>();
900
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaProxy, RPCIteratorTypeInstance_60eba5a793c685eaStub>();
901
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eProxy, RPCIteratorTypeInstance_195e88cf7f955a2eStub>();
902
438
  RPC::Administrator::Instance().Announce<Exchange::IInputSwitch, ExchangeInputSwitchProxy, ExchangeInputSwitchStub>();
903
439
  }
904
440
  ~Instantiation()
905
441
  {
906
442
  RPC::Administrator::Instance().Recall<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>>();
907
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>>();
908
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>>();
909
443
  RPC::Administrator::Instance().Recall<Exchange::IInputSwitch>();
910
444
  }
911
445
  } ProxyStubRegistration;
912
446
 
913
447
  } // namespace
{baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_Memory.cpp RENAMED
@@ -1,9 +1,10 @@
1
1
  //
2
2
  // generated automatically from "IMemory.h"
3
3
  //
4
4
  // implements COM-RPC proxy stubs for:
5
+ // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = RPC::ID_STRINGITERATOR] [[iterator]]
5
6
  //
6
7
 
7
8
  #include "Module.h"
8
9
  #include "IMemory.h"
9
10
 
@@ -18,30 +19,256 @@
18
19
 
19
20
  // -----------------------------------------------------------------
20
21
  // STUBS
21
22
  // -----------------------------------------------------------------
22
23
 
24
+ //
25
+ // RPC::IIteratorTypeInstance_bd6e04b8d151c1f7 interface stub definitions
26
+ //
27
+ // Methods:
28
+ // (0) virtual bool Next(string&) = 0
29
+ // (1) virtual bool Previous(string&) = 0
30
+ // (2) virtual void Reset(const uint32_t) = 0
31
+ // (3) virtual bool IsValid() const = 0
32
+ // (4) virtual uint32_t Count() const = 0
33
+ // (5) virtual string Current() const = 0
34
+ //
35
+
36
+ static ProxyStub::MethodHandler RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods[] = {
37
+ // (0) virtual bool Next(string&) = 0
38
+ //
39
+ [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
40
+ using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
41
+
42
+ interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
43
+ ASSERT(implementation != nullptr);
44
+
45
+ string _info{};
46
+
47
+ bool result = implementation->Next(_info);
48
+
49
+ RPC::Data::Frame::Writer writer(message->Response().Writer());
50
+ writer.Boolean(result);
51
+ writer.Text(_info);
52
+ },
53
+
54
+ // (1) virtual bool Previous(string&) = 0
55
+ //
56
+ [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
57
+ using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
58
+
59
+ interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
60
+ ASSERT(implementation != nullptr);
61
+
62
+ string _info{};
63
+
64
+ bool result = implementation->Previous(_info);
65
+
66
+ RPC::Data::Frame::Writer writer(message->Response().Writer());
67
+ writer.Boolean(result);
68
+ writer.Text(_info);
69
+ },
70
+
71
+ // (2) virtual void Reset(const uint32_t) = 0
72
+ //
73
+ [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
74
+ using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
75
+
76
+ interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
77
+ ASSERT(implementation != nullptr);
78
+
79
+ RPC::Data::Frame::Reader reader(message->Parameters().Reader());
80
+ const uint32_t _position = reader.Number<uint32_t>();
81
+
82
+ implementation->Reset(_position);
83
+ },
84
+
85
+ // (3) virtual bool IsValid() const = 0
86
+ //
87
+ [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
88
+ using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
89
+
90
+ const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
91
+ ASSERT(implementation != nullptr);
92
+
93
+ bool result = implementation->IsValid();
94
+
95
+ RPC::Data::Frame::Writer writer(message->Response().Writer());
96
+ writer.Boolean(result);
97
+ },
98
+
99
+ // (4) virtual uint32_t Count() const = 0
100
+ //
101
+ [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
102
+ using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
103
+
104
+ const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
105
+ ASSERT(implementation != nullptr);
106
+
107
+ uint32_t result = implementation->Count();
108
+
109
+ RPC::Data::Frame::Writer writer(message->Response().Writer());
110
+ writer.Number<uint32_t>(result);
111
+ },
112
+
113
+ // (5) virtual string Current() const = 0
114
+ //
115
+ [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
116
+ using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
117
+
118
+ const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
119
+ ASSERT(implementation != nullptr);
120
+
121
+ string result = implementation->Current();
122
+
123
+ RPC::Data::Frame::Writer writer(message->Response().Writer());
124
+ writer.Text(result);
125
+ }
126
+ , nullptr
127
+ }; // RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods
128
+
23
129
  // -----------------------------------------------------------------
24
130
  // PROXIES
25
131
  // -----------------------------------------------------------------
26
132
 
133
+ //
134
+ // RPC::IIteratorTypeInstance_bd6e04b8d151c1f7 interface proxy definitions
135
+ //
136
+ // Methods:
137
+ // (0) virtual bool Next(string&) = 0
138
+ // (1) virtual bool Previous(string&) = 0
139
+ // (2) virtual void Reset(const uint32_t) = 0
140
+ // (3) virtual bool IsValid() const = 0
141
+ // (4) virtual uint32_t Count() const = 0
142
+ // (5) virtual string Current() const = 0
143
+ //
144
+
145
+ class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>> {
146
+ public:
147
+ RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
148
+ : BaseClass(channel, implementation, otherSideInformed)
149
+ {
150
+ }
151
+
152
+ bool Next(string& _info) override
153
+ {
154
+ IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
155
+
156
+ bool result{};
157
+
158
+ const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
159
+ if (hresult == Core::ERROR_NONE) {
160
+ RPC::Data::Frame::Reader reader(message->Response().Reader());
161
+ result = reader.Boolean();
162
+ _info = reader.Text();
163
+ } else {
164
+ ASSERT((hresult & COM_ERROR) != 0);
165
+ }
166
+
167
+ return (result);
168
+ }
169
+
170
+ bool Previous(string& _info) override
171
+ {
172
+ IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
173
+
174
+ bool result{};
175
+
176
+ const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
177
+ if (hresult == Core::ERROR_NONE) {
178
+ RPC::Data::Frame::Reader reader(message->Response().Reader());
179
+ result = reader.Boolean();
180
+ _info = reader.Text();
181
+ } else {
182
+ ASSERT((hresult & COM_ERROR) != 0);
183
+ }
184
+
185
+ return (result);
186
+ }
187
+
188
+ void Reset(const uint32_t _position) override
189
+ {
190
+ IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
191
+
192
+ RPC::Data::Frame::Writer writer(message->Parameters().Writer());
193
+ writer.Number<uint32_t>(_position);
194
+
195
+ static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
196
+ }
197
+
198
+ bool IsValid() const override
199
+ {
200
+ IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
201
+
202
+ bool result{};
203
+
204
+ const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
205
+ if (hresult == Core::ERROR_NONE) {
206
+ RPC::Data::Frame::Reader reader(message->Response().Reader());
207
+ result = reader.Boolean();
208
+ } else {
209
+ ASSERT((hresult & COM_ERROR) != 0);
210
+ }
211
+
212
+ return (result);
213
+ }
214
+
215
+ uint32_t Count() const override
216
+ {
217
+ IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
218
+
219
+ uint32_t result{};
220
+
221
+ const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
222
+ if (hresult == Core::ERROR_NONE) {
223
+ RPC::Data::Frame::Reader reader(message->Response().Reader());
224
+ result = reader.Number<uint32_t>();
225
+ } else {
226
+ ASSERT((hresult & COM_ERROR) != 0);
227
+ }
228
+
229
+ return (result);
230
+ }
231
+
232
+ string Current() const override
233
+ {
234
+ IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
235
+
236
+ string result{};
237
+
238
+ const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
239
+ if (hresult == Core::ERROR_NONE) {
240
+ RPC::Data::Frame::Reader reader(message->Response().Reader());
241
+ result = reader.Text();
242
+ } else {
243
+ ASSERT((hresult & COM_ERROR) != 0);
244
+ }
245
+
246
+ return (result);
247
+ }
248
+
249
+ }; // class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy
250
+
27
251
  POP_WARNING()
28
252
  POP_WARNING()
29
253
 
30
254
  // -----------------------------------------------------------------
31
255
  // REGISTRATION
32
256
  // -----------------------------------------------------------------
33
257
  namespace {
34
258
 
259
+ typedef ProxyStub::UnknownStubType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods> RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub;
35
260
 
36
261
  static class Instantiation {
37
262
  public:
38
263
  Instantiation()
39
264
  {
265
+ RPC::Administrator::Instance().Announce<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy, RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub>();
40
266
  }
41
267
  ~Instantiation()
42
268
  {
269
+ RPC::Administrator::Instance().Recall<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>>();
43
270
  }
44
271
  } ProxyStubRegistration;
45
272
 
46
273
  } // namespace
47
274
 
{baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_MessageControl.cpp RENAMED
@@ -1,667 +0,0 @@
1
- //
2
- // generated automatically from "IMessageControl.h"
3
- //
4
- // implements COM-RPC proxy stubs for:
5
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = Exchange::IMessageControl::Control, INTERFACE_ID = Exchange::ID_MESSAGE_CONTROL_ITERATOR] [[iterator]]
6
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = RPC::ID_STRINGITERATOR] [[iterator]]
7
- // - class Exchange::IMessageControl
8
- //
9
-
10
- #include "Module.h"
11
- #include "IMessageControl.h"
12
-
13
- #include <com/com.h>
14
-
15
- namespace Thunder {
16
-
17
- namespace ProxyStubs {
18
-
19
- PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
20
- PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
21
-
22
- // -----------------------------------------------------------------
23
- // STUBS
24
- // -----------------------------------------------------------------
25
-
26
- //
27
- // RPC::IIteratorTypeInstance_675a6ff7e5671893 interface stub definitions
28
- //
29
- // Methods:
30
- // (0) virtual bool Next(Exchange::IMessageControl::Control&) = 0
31
- // (1) virtual bool Previous(Exchange::IMessageControl::Control&) = 0
32
- // (2) virtual void Reset(const uint32_t) = 0
33
- // (3) virtual bool IsValid() const = 0
34
- // (4) virtual uint32_t Count() const = 0
35
- // (5) virtual Exchange::IMessageControl::Control Current() const = 0
36
- //
37
-
38
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_675a6ff7e5671893StubMethods[] = {
39
- // (0) virtual bool Next(Exchange::IMessageControl::Control&) = 0
40
- //
41
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
42
- using interface = RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>;
43
-
44
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
45
- ASSERT(implementation != nullptr);
46
-
47
- Exchange::IMessageControl::Control _info{};
48
-
49
- bool result = implementation->Next(_info);
50
-
51
- RPC::Data::Frame::Writer writer(message->Response().Writer());
52
- writer.Boolean(result);
53
- writer.Number<Exchange::IMessageControl::messagetype>(_info.type);
54
- writer.Text(_info.category);
55
- writer.Text(_info.module);
56
- writer.Boolean(_info.enabled);
57
- },
58
-
59
- // (1) virtual bool Previous(Exchange::IMessageControl::Control&) = 0
60
- //
61
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
62
- using interface = RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>;
63
-
64
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
65
- ASSERT(implementation != nullptr);
66
-
67
- Exchange::IMessageControl::Control _info{};
68
-
69
- bool result = implementation->Previous(_info);
70
-
71
- RPC::Data::Frame::Writer writer(message->Response().Writer());
72
- writer.Boolean(result);
73
- writer.Number<Exchange::IMessageControl::messagetype>(_info.type);
74
- writer.Text(_info.category);
75
- writer.Text(_info.module);
76
- writer.Boolean(_info.enabled);
77
- },
78
-
79
- // (2) virtual void Reset(const uint32_t) = 0
80
- //
81
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
82
- using interface = RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>;
83
-
84
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
85
- ASSERT(implementation != nullptr);
86
-
87
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
88
- const uint32_t _position = reader.Number<uint32_t>();
89
-
90
- implementation->Reset(_position);
91
- },
92
-
93
- // (3) virtual bool IsValid() const = 0
94
- //
95
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
96
- using interface = RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>;
97
-
98
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
99
- ASSERT(implementation != nullptr);
100
-
101
- bool result = implementation->IsValid();
102
-
103
- RPC::Data::Frame::Writer writer(message->Response().Writer());
104
- writer.Boolean(result);
105
- },
106
-
107
- // (4) virtual uint32_t Count() const = 0
108
- //
109
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
110
- using interface = RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>;
111
-
112
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
113
- ASSERT(implementation != nullptr);
114
-
115
- uint32_t result = implementation->Count();
116
-
117
- RPC::Data::Frame::Writer writer(message->Response().Writer());
118
- writer.Number<uint32_t>(result);
119
- },
120
-
121
- // (5) virtual Exchange::IMessageControl::Control Current() const = 0
122
- //
123
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
124
- using interface = RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>;
125
-
126
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
127
- ASSERT(implementation != nullptr);
128
-
129
- Exchange::IMessageControl::Control result = implementation->Current();
130
-
131
- RPC::Data::Frame::Writer writer(message->Response().Writer());
132
- writer.Number<Exchange::IMessageControl::messagetype>(result.type);
133
- writer.Text(result.category);
134
- writer.Text(result.module);
135
- writer.Boolean(result.enabled);
136
- }
137
- , nullptr
138
- }; // RPCIteratorTypeInstance_675a6ff7e5671893StubMethods
139
-
140
- //
141
- // RPC::IIteratorTypeInstance_b3acff3685df4032 interface stub definitions
142
- //
143
- // Methods:
144
- // (0) virtual bool Next(string&) = 0
145
- // (1) virtual bool Previous(string&) = 0
146
- // (2) virtual void Reset(const uint32_t) = 0
147
- // (3) virtual bool IsValid() const = 0
148
- // (4) virtual uint32_t Count() const = 0
149
- // (5) virtual string Current() const = 0
150
- //
151
-
152
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_b3acff3685df4032StubMethods[] = {
153
- // (0) virtual bool Next(string&) = 0
154
- //
155
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
156
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
157
-
158
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
159
- ASSERT(implementation != nullptr);
160
-
161
- string _info{};
162
-
163
- bool result = implementation->Next(_info);
164
-
165
- RPC::Data::Frame::Writer writer(message->Response().Writer());
166
- writer.Boolean(result);
167
- writer.Text(_info);
168
- },
169
-
170
- // (1) virtual bool Previous(string&) = 0
171
- //
172
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
173
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
174
-
175
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
176
- ASSERT(implementation != nullptr);
177
-
178
- string _info{};
179
-
180
- bool result = implementation->Previous(_info);
181
-
182
- RPC::Data::Frame::Writer writer(message->Response().Writer());
183
- writer.Boolean(result);
184
- writer.Text(_info);
185
- },
186
-
187
- // (2) virtual void Reset(const uint32_t) = 0
188
- //
189
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
190
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
191
-
192
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
193
- ASSERT(implementation != nullptr);
194
-
195
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
196
- const uint32_t _position = reader.Number<uint32_t>();
197
-
198
- implementation->Reset(_position);
199
- },
200
-
201
- // (3) virtual bool IsValid() const = 0
202
- //
203
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
204
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
205
-
206
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
207
- ASSERT(implementation != nullptr);
208
-
209
- bool result = implementation->IsValid();
210
-
211
- RPC::Data::Frame::Writer writer(message->Response().Writer());
212
- writer.Boolean(result);
213
- },
214
-
215
- // (4) virtual uint32_t Count() const = 0
216
- //
217
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
218
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
219
-
220
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
221
- ASSERT(implementation != nullptr);
222
-
223
- uint32_t result = implementation->Count();
224
-
225
- RPC::Data::Frame::Writer writer(message->Response().Writer());
226
- writer.Number<uint32_t>(result);
227
- },
228
-
229
- // (5) virtual string Current() const = 0
230
- //
231
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
232
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
233
-
234
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
235
- ASSERT(implementation != nullptr);
236
-
237
- string result = implementation->Current();
238
-
239
- RPC::Data::Frame::Writer writer(message->Response().Writer());
240
- writer.Text(result);
241
- }
242
- , nullptr
243
- }; // RPCIteratorTypeInstance_b3acff3685df4032StubMethods
244
-
245
- //
246
- // Exchange::IMessageControl interface stub definitions
247
- //
248
- // Methods:
249
- // (0) virtual Core::hresult Enable(const Exchange::IMessageControl::messagetype, const string&, const string&, const bool) = 0
250
- // (1) virtual Core::hresult Modules(Exchange::IMessageControl::IStringIterator*&) const = 0
251
- // (2) virtual Core::hresult Controls(const string&, Exchange::IMessageControl::IControlIterator*&) const = 0
252
- //
253
-
254
- static ProxyStub::MethodHandler ExchangeMessageControlStubMethods[] = {
255
- // (0) virtual Core::hresult Enable(const Exchange::IMessageControl::messagetype, const string&, const string&, const bool) = 0
256
- //
257
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
258
- Exchange::IMessageControl* implementation = reinterpret_cast<Exchange::IMessageControl*>(message->Parameters().Implementation());
259
- ASSERT(implementation != nullptr);
260
-
261
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
262
- const Exchange::IMessageControl::messagetype _type = reader.Number<Exchange::IMessageControl::messagetype>();
263
- const string _category = reader.Text();
264
- const string _module = reader.Text();
265
- const bool _enabled = reader.Boolean();
266
-
267
- Core::hresult result = implementation->Enable(_type, static_cast<const string&>(_category), static_cast<const string&>(_module), _enabled);
268
-
269
- RPC::Data::Frame::Writer writer(message->Response().Writer());
270
- writer.Number<Core::hresult>(result);
271
- },
272
-
273
- // (1) virtual Core::hresult Modules(Exchange::IMessageControl::IStringIterator*&) const = 0
274
- //
275
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
276
- const Exchange::IMessageControl* implementation = reinterpret_cast<const Exchange::IMessageControl*>(message->Parameters().Implementation());
277
- ASSERT(implementation != nullptr);
278
-
279
- Exchange::IMessageControl::IStringIterator* _modules{};
280
-
281
- Core::hresult result = implementation->Modules(_modules);
282
-
283
- RPC::Data::Frame::Writer writer(message->Response().Writer());
284
- writer.Number<Core::hresult>(result);
285
- writer.Number<Core::instance_id>(RPC::instance_cast(_modules));
286
-
287
- RPC::Administrator::Instance().RegisterInterface(channel, _modules);
288
- },
289
-
290
- // (2) virtual Core::hresult Controls(const string&, Exchange::IMessageControl::IControlIterator*&) const = 0
291
- //
292
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
293
- const Exchange::IMessageControl* implementation = reinterpret_cast<const Exchange::IMessageControl*>(message->Parameters().Implementation());
294
- ASSERT(implementation != nullptr);
295
-
296
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
297
- const string _module = reader.Text();
298
-
299
- Exchange::IMessageControl::IControlIterator* _control{};
300
-
301
- Core::hresult result = implementation->Controls(static_cast<const string&>(_module), _control);
302
-
303
- RPC::Data::Frame::Writer writer(message->Response().Writer());
304
- writer.Number<Core::hresult>(result);
305
- writer.Number<Core::instance_id>(RPC::instance_cast(_control));
306
-
307
- RPC::Administrator::Instance().RegisterInterface(channel, _control);
308
- }
309
- , nullptr
310
- }; // ExchangeMessageControlStubMethods
311
-
312
- // -----------------------------------------------------------------
313
- // PROXIES
314
- // -----------------------------------------------------------------
315
-
316
- //
317
- // RPC::IIteratorTypeInstance_675a6ff7e5671893 interface proxy definitions
318
- //
319
- // Methods:
320
- // (0) virtual bool Next(Exchange::IMessageControl::Control&) = 0
321
- // (1) virtual bool Previous(Exchange::IMessageControl::Control&) = 0
322
- // (2) virtual void Reset(const uint32_t) = 0
323
- // (3) virtual bool IsValid() const = 0
324
- // (4) virtual uint32_t Count() const = 0
325
- // (5) virtual Exchange::IMessageControl::Control Current() const = 0
326
- //
327
-
328
- class RPCIteratorTypeInstance_675a6ff7e5671893Proxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>> {
329
- public:
330
- RPCIteratorTypeInstance_675a6ff7e5671893Proxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
331
- : BaseClass(channel, implementation, otherSideInformed)
332
- {
333
- }
334
-
335
- bool Next(Exchange::IMessageControl::Control& _info) override
336
- {
337
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
338
-
339
- bool result{};
340
-
341
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
342
- if (hresult == Core::ERROR_NONE) {
343
- RPC::Data::Frame::Reader reader(message->Response().Reader());
344
- result = reader.Boolean();
345
- _info.type = reader.Number<Exchange::IMessageControl::messagetype>();
346
- _info.category = reader.Text();
347
- _info.module = reader.Text();
348
- _info.enabled = reader.Boolean();
349
- } else {
350
- ASSERT((hresult & COM_ERROR) != 0);
351
- }
352
-
353
- return (result);
354
- }
355
-
356
- bool Previous(Exchange::IMessageControl::Control& _info) override
357
- {
358
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
359
-
360
- bool result{};
361
-
362
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
363
- if (hresult == Core::ERROR_NONE) {
364
- RPC::Data::Frame::Reader reader(message->Response().Reader());
365
- result = reader.Boolean();
366
- _info.type = reader.Number<Exchange::IMessageControl::messagetype>();
367
- _info.category = reader.Text();
368
- _info.module = reader.Text();
369
- _info.enabled = reader.Boolean();
370
- } else {
371
- ASSERT((hresult & COM_ERROR) != 0);
372
- }
373
-
374
- return (result);
375
- }
376
-
377
- void Reset(const uint32_t _position) override
378
- {
379
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
380
-
381
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
382
- writer.Number<uint32_t>(_position);
383
-
384
- static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
385
- }
386
-
387
- bool IsValid() const override
388
- {
389
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
390
-
391
- bool result{};
392
-
393
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
394
- if (hresult == Core::ERROR_NONE) {
395
- RPC::Data::Frame::Reader reader(message->Response().Reader());
396
- result = reader.Boolean();
397
- } else {
398
- ASSERT((hresult & COM_ERROR) != 0);
399
- }
400
-
401
- return (result);
402
- }
403
-
404
- uint32_t Count() const override
405
- {
406
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
407
-
408
- uint32_t result{};
409
-
410
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
411
- if (hresult == Core::ERROR_NONE) {
412
- RPC::Data::Frame::Reader reader(message->Response().Reader());
413
- result = reader.Number<uint32_t>();
414
- } else {
415
- ASSERT((hresult & COM_ERROR) != 0);
416
- }
417
-
418
- return (result);
419
- }
420
-
421
- Exchange::IMessageControl::Control Current() const override
422
- {
423
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
424
-
425
- Exchange::IMessageControl::Control result{};
426
-
427
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
428
- if (hresult == Core::ERROR_NONE) {
429
- RPC::Data::Frame::Reader reader(message->Response().Reader());
430
- result.type = reader.Number<Exchange::IMessageControl::messagetype>();
431
- result.category = reader.Text();
432
- result.module = reader.Text();
433
- result.enabled = reader.Boolean();
434
- } else {
435
- ASSERT((hresult & COM_ERROR) != 0);
436
- }
437
-
438
- return (result);
439
- }
440
-
441
- }; // class RPCIteratorTypeInstance_675a6ff7e5671893Proxy
442
-
443
- //
444
- // RPC::IIteratorTypeInstance_b3acff3685df4032 interface proxy definitions
445
- //
446
- // Methods:
447
- // (0) virtual bool Next(string&) = 0
448
- // (1) virtual bool Previous(string&) = 0
449
- // (2) virtual void Reset(const uint32_t) = 0
450
- // (3) virtual bool IsValid() const = 0
451
- // (4) virtual uint32_t Count() const = 0
452
- // (5) virtual string Current() const = 0
453
- //
454
-
455
- class RPCIteratorTypeInstance_b3acff3685df4032Proxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>> {
456
- public:
457
- RPCIteratorTypeInstance_b3acff3685df4032Proxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
458
- : BaseClass(channel, implementation, otherSideInformed)
459
- {
460
- }
461
-
462
- bool Next(string& _info) override
463
- {
464
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
465
-
466
- bool result{};
467
-
468
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
469
- if (hresult == Core::ERROR_NONE) {
470
- RPC::Data::Frame::Reader reader(message->Response().Reader());
471
- result = reader.Boolean();
472
- _info = reader.Text();
473
- } else {
474
- ASSERT((hresult & COM_ERROR) != 0);
475
- }
476
-
477
- return (result);
478
- }
479
-
480
- bool Previous(string& _info) override
481
- {
482
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
483
-
484
- bool result{};
485
-
486
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
487
- if (hresult == Core::ERROR_NONE) {
488
- RPC::Data::Frame::Reader reader(message->Response().Reader());
489
- result = reader.Boolean();
490
- _info = reader.Text();
491
- } else {
492
- ASSERT((hresult & COM_ERROR) != 0);
493
- }
494
-
495
- return (result);
496
- }
497
-
498
- void Reset(const uint32_t _position) override
499
- {
500
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
501
-
502
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
503
- writer.Number<uint32_t>(_position);
504
-
505
- static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
506
- }
507
-
508
- bool IsValid() const override
509
- {
510
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
511
-
512
- bool result{};
513
-
514
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
515
- if (hresult == Core::ERROR_NONE) {
516
- RPC::Data::Frame::Reader reader(message->Response().Reader());
517
- result = reader.Boolean();
518
- } else {
519
- ASSERT((hresult & COM_ERROR) != 0);
520
- }
521
-
522
- return (result);
523
- }
524
-
525
- uint32_t Count() const override
526
- {
527
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
528
-
529
- uint32_t result{};
530
-
531
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
532
- if (hresult == Core::ERROR_NONE) {
533
- RPC::Data::Frame::Reader reader(message->Response().Reader());
534
- result = reader.Number<uint32_t>();
535
- } else {
536
- ASSERT((hresult & COM_ERROR) != 0);
537
- }
538
-
539
- return (result);
540
- }
541
-
542
- string Current() const override
543
- {
544
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
545
-
546
- string result{};
547
-
548
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
549
- if (hresult == Core::ERROR_NONE) {
550
- RPC::Data::Frame::Reader reader(message->Response().Reader());
551
- result = reader.Text();
552
- } else {
553
- ASSERT((hresult & COM_ERROR) != 0);
554
- }
555
-
556
- return (result);
557
- }
558
-
559
- }; // class RPCIteratorTypeInstance_b3acff3685df4032Proxy
560
-
561
- //
562
- // Exchange::IMessageControl interface proxy definitions
563
- //
564
- // Methods:
565
- // (0) virtual Core::hresult Enable(const Exchange::IMessageControl::messagetype, const string&, const string&, const bool) = 0
566
- // (1) virtual Core::hresult Modules(Exchange::IMessageControl::IStringIterator*&) const = 0
567
- // (2) virtual Core::hresult Controls(const string&, Exchange::IMessageControl::IControlIterator*&) const = 0
568
- //
569
-
570
- class ExchangeMessageControlProxy final : public ProxyStub::UnknownProxyType<Exchange::IMessageControl> {
571
- public:
572
- ExchangeMessageControlProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
573
- : BaseClass(channel, implementation, otherSideInformed)
574
- {
575
- }
576
-
577
- Core::hresult Enable(const Exchange::IMessageControl::messagetype _type, const string& _category, const string& _module, const bool _enabled) override
578
- {
579
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
580
-
581
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
582
- writer.Number<Exchange::IMessageControl::messagetype>(_type);
583
- writer.Text(_category);
584
- writer.Text(_module);
585
- writer.Boolean(_enabled);
586
-
587
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
588
- if (hresult == Core::ERROR_NONE) {
589
- RPC::Data::Frame::Reader reader(message->Response().Reader());
590
- hresult = reader.Number<Core::hresult>();
591
- } else {
592
- ASSERT((hresult & COM_ERROR) != 0);
593
- }
594
-
595
- return (hresult);
596
- }
597
-
598
- Core::hresult Modules(Exchange::IMessageControl::IStringIterator*& _modules) const override
599
- {
600
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
601
-
602
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
603
- if (hresult == Core::ERROR_NONE) {
604
- RPC::Data::Frame::Reader reader(message->Response().Reader());
605
- hresult = reader.Number<Core::hresult>();
606
- _modules = reinterpret_cast<Exchange::IMessageControl::IStringIterator*>(static_cast<const ProxyStub::UnknownProxy&>(*this).Interface(reader.Number<Core::instance_id>(), Exchange::IMessageControl::IStringIterator::ID));
607
- } else {
608
- ASSERT((hresult & COM_ERROR) != 0);
609
- }
610
-
611
- return (hresult);
612
- }
613
-
614
- Core::hresult Controls(const string& _module, Exchange::IMessageControl::IControlIterator*& _control) const override
615
- {
616
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
617
-
618
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
619
- writer.Text(_module);
620
-
621
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
622
- if (hresult == Core::ERROR_NONE) {
623
- RPC::Data::Frame::Reader reader(message->Response().Reader());
624
- hresult = reader.Number<Core::hresult>();
625
- _control = reinterpret_cast<Exchange::IMessageControl::IControlIterator*>(static_cast<const ProxyStub::UnknownProxy&>(*this).Interface(reader.Number<Core::instance_id>(), Exchange::IMessageControl::IControlIterator::ID));
626
- } else {
627
- ASSERT((hresult & COM_ERROR) != 0);
628
- }
629
-
630
- return (hresult);
631
- }
632
-
633
- }; // class ExchangeMessageControlProxy
634
-
635
- POP_WARNING()
636
- POP_WARNING()
637
-
638
- // -----------------------------------------------------------------
639
- // REGISTRATION
640
- // -----------------------------------------------------------------
641
- namespace {
642
-
643
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>, RPCIteratorTypeInstance_675a6ff7e5671893StubMethods> RPCIteratorTypeInstance_675a6ff7e5671893Stub;
644
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_b3acff3685df4032StubMethods> RPCIteratorTypeInstance_b3acff3685df4032Stub;
645
- typedef ProxyStub::UnknownStubType<Exchange::IMessageControl, ExchangeMessageControlStubMethods> ExchangeMessageControlStub;
646
-
647
- static class Instantiation {
648
- public:
649
- Instantiation()
650
- {
651
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>, RPCIteratorTypeInstance_675a6ff7e5671893Proxy, RPCIteratorTypeInstance_675a6ff7e5671893Stub>();
652
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_b3acff3685df4032Proxy, RPCIteratorTypeInstance_b3acff3685df4032Stub>();
653
- RPC::Administrator::Instance().Announce<Exchange::IMessageControl, ExchangeMessageControlProxy, ExchangeMessageControlStub>();
654
- }
655
- ~Instantiation()
656
- {
657
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>>();
658
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>>();
659
- RPC::Administrator::Instance().Recall<Exchange::IMessageControl>();
660
- }
661
- } ProxyStubRegistration;
662
-
663
- } // namespace
664
-
665
- } // namespace ProxyStubs
666
-
667
- }
{baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_PackageManager.cpp RENAMED
@@ -1,10 +1,9 @@
1
1
  //
2
2
  // generated automatically from "IPackageManager.h"
3
3
  //
4
4
  // implements COM-RPC proxy stubs for:
5
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = RPC::ID_STRINGITERATOR] [[iterator]]
6
5
  // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = Exchange::IPackageManager::KeyValue, INTERFACE_ID = Exchange::ID_PACKAGEMANAGER_KEY_VALUE_ITERATOR] [[iterator]]
7
6
  // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = Exchange::IPackageManager::PackageKey, INTERFACE_ID = Exchange::ID_PACKAGEMANAGER_PACKAGE_KEY_ITERATOR] [[iterator]]
8
7
  // - class Exchange::IPackageManager
9
8
  // - class Exchange::IPackageManager::INotification
10
9
  // - class Exchange::IPackageManagerBroker
@@ -26,115 +25,10 @@
26
25
  // -----------------------------------------------------------------
27
26
  // STUBS
28
27
  // -----------------------------------------------------------------
29
28
 
30
29
  //
31
- // RPC::IIteratorTypeInstance_b3acff3685df4032 interface stub definitions
32
- //
33
- // Methods:
34
- // (0) virtual bool Next(string&) = 0
35
- // (1) virtual bool Previous(string&) = 0
36
- // (2) virtual void Reset(const uint32_t) = 0
37
- // (3) virtual bool IsValid() const = 0
38
- // (4) virtual uint32_t Count() const = 0
39
- // (5) virtual string Current() const = 0
40
- //
41
-
42
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_b3acff3685df4032StubMethods[] = {
43
- // (0) virtual bool Next(string&) = 0
44
- //
45
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
46
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
47
-
48
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
49
- ASSERT(implementation != nullptr);
50
-
51
- string _info{};
52
-
53
- bool result = implementation->Next(_info);
54
-
55
- RPC::Data::Frame::Writer writer(message->Response().Writer());
56
- writer.Boolean(result);
57
- writer.Text(_info);
58
- },
59
-
60
- // (1) virtual bool Previous(string&) = 0
61
- //
62
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
63
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
64
-
65
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
66
- ASSERT(implementation != nullptr);
67
-
68
- string _info{};
69
-
70
- bool result = implementation->Previous(_info);
71
-
72
- RPC::Data::Frame::Writer writer(message->Response().Writer());
73
- writer.Boolean(result);
74
- writer.Text(_info);
75
- },
76
-
77
- // (2) virtual void Reset(const uint32_t) = 0
78
- //
79
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
80
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
81
-
82
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
83
- ASSERT(implementation != nullptr);
84
-
85
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
86
- const uint32_t _position = reader.Number<uint32_t>();
87
-
88
- implementation->Reset(_position);
89
- },
90
-
91
- // (3) virtual bool IsValid() const = 0
92
- //
93
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
94
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
95
-
96
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
97
- ASSERT(implementation != nullptr);
98
-
99
- bool result = implementation->IsValid();
100
-
101
- RPC::Data::Frame::Writer writer(message->Response().Writer());
102
- writer.Boolean(result);
103
- },
104
-
105
- // (4) virtual uint32_t Count() const = 0
106
- //
107
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
108
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
109
-
110
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
111
- ASSERT(implementation != nullptr);
112
-
113
- uint32_t result = implementation->Count();
114
-
115
- RPC::Data::Frame::Writer writer(message->Response().Writer());
116
- writer.Number<uint32_t>(result);
117
- },
118
-
119
- // (5) virtual string Current() const = 0
120
- //
121
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
122
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
123
-
124
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
125
- ASSERT(implementation != nullptr);
126
-
127
- string result = implementation->Current();
128
-
129
- RPC::Data::Frame::Writer writer(message->Response().Writer());
130
- writer.Text(result);
131
- }
132
- , nullptr
133
- }; // RPCIteratorTypeInstance_b3acff3685df4032StubMethods
134
-
135
- //
136
30
  // RPC::IIteratorTypeInstance_12fceda1fceae24e interface stub definitions
137
31
  //
138
32
  // Methods:
139
33
  // (0) virtual bool Next(Exchange::IPackageManager::KeyValue&) = 0
140
34
  // (1) virtual bool Previous(Exchange::IPackageManager::KeyValue&) = 0
@@ -838,128 +732,10 @@
838
732
  // -----------------------------------------------------------------
839
733
  // PROXIES
840
734
  // -----------------------------------------------------------------
841
735
 
842
736
  //
843
- // RPC::IIteratorTypeInstance_b3acff3685df4032 interface proxy definitions
844
- //
845
- // Methods:
846
- // (0) virtual bool Next(string&) = 0
847
- // (1) virtual bool Previous(string&) = 0
848
- // (2) virtual void Reset(const uint32_t) = 0
849
- // (3) virtual bool IsValid() const = 0
850
- // (4) virtual uint32_t Count() const = 0
851
- // (5) virtual string Current() const = 0
852
- //
853
-
854
- class RPCIteratorTypeInstance_b3acff3685df4032Proxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>> {
855
- public:
856
- RPCIteratorTypeInstance_b3acff3685df4032Proxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
857
- : BaseClass(channel, implementation, otherSideInformed)
858
- {
859
- }
860
-
861
- bool Next(string& _info) override
862
- {
863
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
864
-
865
- bool result{};
866
-
867
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
868
- if (hresult == Core::ERROR_NONE) {
869
- RPC::Data::Frame::Reader reader(message->Response().Reader());
870
- result = reader.Boolean();
871
- _info = reader.Text();
872
- } else {
873
- ASSERT((hresult & COM_ERROR) != 0);
874
- }
875
-
876
- return (result);
877
- }
878
-
879
- bool Previous(string& _info) override
880
- {
881
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
882
-
883
- bool result{};
884
-
885
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
886
- if (hresult == Core::ERROR_NONE) {
887
- RPC::Data::Frame::Reader reader(message->Response().Reader());
888
- result = reader.Boolean();
889
- _info = reader.Text();
890
- } else {
891
- ASSERT((hresult & COM_ERROR) != 0);
892
- }
893
-
894
- return (result);
895
- }
896
-
897
- void Reset(const uint32_t _position) override
898
- {
899
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
900
-
901
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
902
- writer.Number<uint32_t>(_position);
903
-
904
- static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
905
- }
906
-
907
- bool IsValid() const override
908
- {
909
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
910
-
911
- bool result{};
912
-
913
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
914
- if (hresult == Core::ERROR_NONE) {
915
- RPC::Data::Frame::Reader reader(message->Response().Reader());
916
- result = reader.Boolean();
917
- } else {
918
- ASSERT((hresult & COM_ERROR) != 0);
919
- }
920
-
921
- return (result);
922
- }
923
-
924
- uint32_t Count() const override
925
- {
926
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
927
-
928
- uint32_t result{};
929
-
930
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
931
- if (hresult == Core::ERROR_NONE) {
932
- RPC::Data::Frame::Reader reader(message->Response().Reader());
933
- result = reader.Number<uint32_t>();
934
- } else {
935
- ASSERT((hresult & COM_ERROR) != 0);
936
- }
937
-
938
- return (result);
939
- }
940
-
941
- string Current() const override
942
- {
943
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
944
-
945
- string result{};
946
-
947
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
948
- if (hresult == Core::ERROR_NONE) {
949
- RPC::Data::Frame::Reader reader(message->Response().Reader());
950
- result = reader.Text();
951
- } else {
952
- ASSERT((hresult & COM_ERROR) != 0);
953
- }
954
-
955
- return (result);
956
- }
957
-
958
- }; // class RPCIteratorTypeInstance_b3acff3685df4032Proxy
959
-
960
- //
961
737
  // RPC::IIteratorTypeInstance_12fceda1fceae24e interface proxy definitions
962
738
  //
963
739
  // Methods:
964
740
  // (0) virtual bool Next(Exchange::IPackageManager::KeyValue&) = 0
965
741
  // (1) virtual bool Previous(Exchange::IPackageManager::KeyValue&) = 0
@@ -1747,11 +1523,10 @@
1747
1523
  // -----------------------------------------------------------------
1748
1524
  // REGISTRATION
1749
1525
  // -----------------------------------------------------------------
1750
1526
  namespace {
1751
1527
 
1752
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_b3acff3685df4032StubMethods> RPCIteratorTypeInstance_b3acff3685df4032Stub;
1753
1528
  typedef ProxyStub::UnknownStubType<RPC::IIteratorType<Exchange::IPackageManager::KeyValue, Exchange::ID_PACKAGEMANAGER_KEY_VALUE_ITERATOR>, RPCIteratorTypeInstance_12fceda1fceae24eStubMethods> RPCIteratorTypeInstance_12fceda1fceae24eStub;
1754
1529
  typedef ProxyStub::UnknownStubType<RPC::IIteratorType<Exchange::IPackageManager::PackageKey, Exchange::ID_PACKAGEMANAGER_PACKAGE_KEY_ITERATOR>, RPCIteratorTypeInstance_c5055b79d41fb221StubMethods> RPCIteratorTypeInstance_c5055b79d41fb221Stub;
1755
1530
  typedef ProxyStub::UnknownStubType<Exchange::IPackageManager, ExchangePackageManagerStubMethods> ExchangePackageManagerStub;
1756
1531
  typedef ProxyStub::UnknownStubType<Exchange::IPackageManager::INotification, ExchangePackageManagerNotificationStubMethods> ExchangePackageManagerNotificationStub;
1757
1532
  typedef ProxyStub::UnknownStubType<Exchange::IPackageManagerBroker, ExchangePackageManagerBrokerStubMethods> ExchangePackageManagerBrokerStub;
@@ -1759,21 +1534,19 @@
1759
1534
 
1760
1535
  static class Instantiation {
1761
1536
  public:
1762
1537
  Instantiation()
1763
1538
  {
1764
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_b3acff3685df4032Proxy, RPCIteratorTypeInstance_b3acff3685df4032Stub>();
1765
1539
  RPC::Administrator::Instance().Announce<RPC::IIteratorType<Exchange::IPackageManager::KeyValue, Exchange::ID_PACKAGEMANAGER_KEY_VALUE_ITERATOR>, RPCIteratorTypeInstance_12fceda1fceae24eProxy, RPCIteratorTypeInstance_12fceda1fceae24eStub>();
1766
1540
  RPC::Administrator::Instance().Announce<RPC::IIteratorType<Exchange::IPackageManager::PackageKey, Exchange::ID_PACKAGEMANAGER_PACKAGE_KEY_ITERATOR>, RPCIteratorTypeInstance_c5055b79d41fb221Proxy, RPCIteratorTypeInstance_c5055b79d41fb221Stub>();
1767
1541
  RPC::Administrator::Instance().Announce<Exchange::IPackageManager, ExchangePackageManagerProxy, ExchangePackageManagerStub>();
1768
1542
  RPC::Administrator::Instance().Announce<Exchange::IPackageManager::INotification, ExchangePackageManagerNotificationProxy, ExchangePackageManagerNotificationStub>();
1769
1543
  RPC::Administrator::Instance().Announce<Exchange::IPackageManagerBroker, ExchangePackageManagerBrokerProxy, ExchangePackageManagerBrokerStub>();
1770
1544
  RPC::Administrator::Instance().Announce<Exchange::IPackageManagerCallback, ExchangePackageManagerCallbackProxy, ExchangePackageManagerCallbackStub>();
1771
1545
  }
1772
1546
  ~Instantiation()
1773
1547
  {
1774
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>>();
1775
1548
  RPC::Administrator::Instance().Recall<RPC::IIteratorType<Exchange::IPackageManager::KeyValue, Exchange::ID_PACKAGEMANAGER_KEY_VALUE_ITERATOR>>();
1776
1549
  RPC::Administrator::Instance().Recall<RPC::IIteratorType<Exchange::IPackageManager::PackageKey, Exchange::ID_PACKAGEMANAGER_PACKAGE_KEY_ITERATOR>>();
1777
1550
  RPC::Administrator::Instance().Recall<Exchange::IPackageManager>();
1778
1551
  RPC::Administrator::Instance().Recall<Exchange::IPackageManager::INotification>();
1779
1552
  RPC::Administrator::Instance().Recall<Exchange::IPackageManagerBroker>();
{baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_Provisioning.cpp RENAMED
@@ -1,12 +1,10 @@
1
1
  //
2
2
  // generated automatically from "IProvisioning.h"
3
3
  //
4
4
  // implements COM-RPC proxy stubs for:
5
5
  // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = RPC::ID_STRINGITERATOR] [[iterator]]
6
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = uint32_t, INTERFACE_ID = RPC::ID_VALUEITERATOR] [[iterator]]
7
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = RPC::Environment, INTERFACE_ID = RPC::ID_ENVIRONMENTITERATOR] [[iterator]]
8
6
  // - class Exchange::IProvisioning
9
7
  // - class Exchange::IProvisioning::INotification
10
8
  //
11
9
 
12
10
  #include "Module.h"
@@ -129,226 +127,10 @@
129
127
  }
130
128
  , nullptr
131
129
  }; // RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods
132
130
 
133
131
  //
134
- // RPC::IIteratorTypeInstance_60eba5a793c685ea interface stub definitions
135
- //
136
- // Methods:
137
- // (0) virtual bool Next(uint32_t&) = 0
138
- // (1) virtual bool Previous(uint32_t&) = 0
139
- // (2) virtual void Reset(const uint32_t) = 0
140
- // (3) virtual bool IsValid() const = 0
141
- // (4) virtual uint32_t Count() const = 0
142
- // (5) virtual uint32_t Current() const = 0
143
- //
144
-
145
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_60eba5a793c685eaStubMethods[] = {
146
- // (0) virtual bool Next(uint32_t&) = 0
147
- //
148
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
149
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
150
-
151
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
152
- ASSERT(implementation != nullptr);
153
-
154
- uint32_t _info{};
155
-
156
- bool result = implementation->Next(_info);
157
-
158
- RPC::Data::Frame::Writer writer(message->Response().Writer());
159
- writer.Boolean(result);
160
- writer.Number<uint32_t>(_info);
161
- },
162
-
163
- // (1) virtual bool Previous(uint32_t&) = 0
164
- //
165
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
166
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
167
-
168
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
169
- ASSERT(implementation != nullptr);
170
-
171
- uint32_t _info{};
172
-
173
- bool result = implementation->Previous(_info);
174
-
175
- RPC::Data::Frame::Writer writer(message->Response().Writer());
176
- writer.Boolean(result);
177
- writer.Number<uint32_t>(_info);
178
- },
179
-
180
- // (2) virtual void Reset(const uint32_t) = 0
181
- //
182
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
183
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
184
-
185
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
186
- ASSERT(implementation != nullptr);
187
-
188
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
189
- const uint32_t _position = reader.Number<uint32_t>();
190
-
191
- implementation->Reset(_position);
192
- },
193
-
194
- // (3) virtual bool IsValid() const = 0
195
- //
196
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
197
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
198
-
199
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
200
- ASSERT(implementation != nullptr);
201
-
202
- bool result = implementation->IsValid();
203
-
204
- RPC::Data::Frame::Writer writer(message->Response().Writer());
205
- writer.Boolean(result);
206
- },
207
-
208
- // (4) virtual uint32_t Count() const = 0
209
- //
210
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
211
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
212
-
213
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
214
- ASSERT(implementation != nullptr);
215
-
216
- uint32_t result = implementation->Count();
217
-
218
- RPC::Data::Frame::Writer writer(message->Response().Writer());
219
- writer.Number<uint32_t>(result);
220
- },
221
-
222
- // (5) virtual uint32_t Current() const = 0
223
- //
224
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
225
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
226
-
227
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
228
- ASSERT(implementation != nullptr);
229
-
230
- uint32_t result = implementation->Current();
231
-
232
- RPC::Data::Frame::Writer writer(message->Response().Writer());
233
- writer.Number<uint32_t>(result);
234
- }
235
- , nullptr
236
- }; // RPCIteratorTypeInstance_60eba5a793c685eaStubMethods
237
-
238
- //
239
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface stub definitions
240
- //
241
- // Methods:
242
- // (0) virtual bool Next(RPC::Environment&) = 0
243
- // (1) virtual bool Previous(RPC::Environment&) = 0
244
- // (2) virtual void Reset(const uint32_t) = 0
245
- // (3) virtual bool IsValid() const = 0
246
- // (4) virtual uint32_t Count() const = 0
247
- // (5) virtual RPC::Environment Current() const = 0
248
- //
249
-
250
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods[] = {
251
- // (0) virtual bool Next(RPC::Environment&) = 0
252
- //
253
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
254
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
255
-
256
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
257
- ASSERT(implementation != nullptr);
258
-
259
- RPC::Environment _info{};
260
-
261
- bool result = implementation->Next(_info);
262
-
263
- RPC::Data::Frame::Writer writer(message->Response().Writer());
264
- writer.Boolean(result);
265
- writer.Text(_info.Key);
266
- writer.Text(_info.Value);
267
- writer.Number<RPC::Environment::scope>(_info.Scope);
268
- },
269
-
270
- // (1) virtual bool Previous(RPC::Environment&) = 0
271
- //
272
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
273
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
274
-
275
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
276
- ASSERT(implementation != nullptr);
277
-
278
- RPC::Environment _info{};
279
-
280
- bool result = implementation->Previous(_info);
281
-
282
- RPC::Data::Frame::Writer writer(message->Response().Writer());
283
- writer.Boolean(result);
284
- writer.Text(_info.Key);
285
- writer.Text(_info.Value);
286
- writer.Number<RPC::Environment::scope>(_info.Scope);
287
- },
288
-
289
- // (2) virtual void Reset(const uint32_t) = 0
290
- //
291
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
292
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
293
-
294
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
295
- ASSERT(implementation != nullptr);
296
-
297
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
298
- const uint32_t _position = reader.Number<uint32_t>();
299
-
300
- implementation->Reset(_position);
301
- },
302
-
303
- // (3) virtual bool IsValid() const = 0
304
- //
305
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
306
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
307
-
308
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
309
- ASSERT(implementation != nullptr);
310
-
311
- bool result = implementation->IsValid();
312
-
313
- RPC::Data::Frame::Writer writer(message->Response().Writer());
314
- writer.Boolean(result);
315
- },
316
-
317
- // (4) virtual uint32_t Count() const = 0
318
- //
319
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
320
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
321
-
322
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
323
- ASSERT(implementation != nullptr);
324
-
325
- uint32_t result = implementation->Count();
326
-
327
- RPC::Data::Frame::Writer writer(message->Response().Writer());
328
- writer.Number<uint32_t>(result);
329
- },
330
-
331
- // (5) virtual RPC::Environment Current() const = 0
332
- //
333
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
334
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
335
-
336
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
337
- ASSERT(implementation != nullptr);
338
-
339
- RPC::Environment result = implementation->Current();
340
-
341
- RPC::Data::Frame::Writer writer(message->Response().Writer());
342
- writer.Text(result.Key);
343
- writer.Text(result.Value);
344
- writer.Number<RPC::Environment::scope>(result.Scope);
345
- }
346
- , nullptr
347
- }; // RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods
348
-
349
- //
350
132
  // Exchange::IProvisioning interface stub definitions
351
133
  //
352
134
  // Methods:
353
135
  // (0) virtual void Register(Exchange::IProvisioning::INotification*) = 0
354
136
  // (1) virtual void Unregister(Exchange::IProvisioning::INotification*) = 0
@@ -599,252 +381,10 @@
599
381
  }
600
382
 
601
383
  }; // class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy
602
384
 
603
385
  //
604
- // RPC::IIteratorTypeInstance_60eba5a793c685ea interface proxy definitions
605
- //
606
- // Methods:
607
- // (0) virtual bool Next(uint32_t&) = 0
608
- // (1) virtual bool Previous(uint32_t&) = 0
609
- // (2) virtual void Reset(const uint32_t) = 0
610
- // (3) virtual bool IsValid() const = 0
611
- // (4) virtual uint32_t Count() const = 0
612
- // (5) virtual uint32_t Current() const = 0
613
- //
614
-
615
- class RPCIteratorTypeInstance_60eba5a793c685eaProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>> {
616
- public:
617
- RPCIteratorTypeInstance_60eba5a793c685eaProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
618
- : BaseClass(channel, implementation, otherSideInformed)
619
- {
620
- }
621
-
622
- bool Next(uint32_t& _info) override
623
- {
624
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
625
-
626
- bool result{};
627
-
628
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
629
- if (hresult == Core::ERROR_NONE) {
630
- RPC::Data::Frame::Reader reader(message->Response().Reader());
631
- result = reader.Boolean();
632
- _info = reader.Number<uint32_t>();
633
- } else {
634
- ASSERT((hresult & COM_ERROR) != 0);
635
- }
636
-
637
- return (result);
638
- }
639
-
640
- bool Previous(uint32_t& _info) override
641
- {
642
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
643
-
644
- bool result{};
645
-
646
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
647
- if (hresult == Core::ERROR_NONE) {
648
- RPC::Data::Frame::Reader reader(message->Response().Reader());
649
- result = reader.Boolean();
650
- _info = reader.Number<uint32_t>();
651
- } else {
652
- ASSERT((hresult & COM_ERROR) != 0);
653
- }
654
-
655
- return (result);
656
- }
657
-
658
- void Reset(const uint32_t _position) override
659
- {
660
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
661
-
662
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
663
- writer.Number<uint32_t>(_position);
664
-
665
- static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
666
- }
667
-
668
- bool IsValid() const override
669
- {
670
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
671
-
672
- bool result{};
673
-
674
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
675
- if (hresult == Core::ERROR_NONE) {
676
- RPC::Data::Frame::Reader reader(message->Response().Reader());
677
- result = reader.Boolean();
678
- } else {
679
- ASSERT((hresult & COM_ERROR) != 0);
680
- }
681
-
682
- return (result);
683
- }
684
-
685
- uint32_t Count() const override
686
- {
687
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
688
-
689
- uint32_t result{};
690
-
691
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
692
- if (hresult == Core::ERROR_NONE) {
693
- RPC::Data::Frame::Reader reader(message->Response().Reader());
694
- result = reader.Number<uint32_t>();
695
- } else {
696
- ASSERT((hresult & COM_ERROR) != 0);
697
- }
698
-
699
- return (result);
700
- }
701
-
702
- uint32_t Current() const override
703
- {
704
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
705
-
706
- uint32_t result{};
707
-
708
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
709
- if (hresult == Core::ERROR_NONE) {
710
- RPC::Data::Frame::Reader reader(message->Response().Reader());
711
- result = reader.Number<uint32_t>();
712
- } else {
713
- ASSERT((hresult & COM_ERROR) != 0);
714
- }
715
-
716
- return (result);
717
- }
718
-
719
- }; // class RPCIteratorTypeInstance_60eba5a793c685eaProxy
720
-
721
- //
722
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface proxy definitions
723
- //
724
- // Methods:
725
- // (0) virtual bool Next(RPC::Environment&) = 0
726
- // (1) virtual bool Previous(RPC::Environment&) = 0
727
- // (2) virtual void Reset(const uint32_t) = 0
728
- // (3) virtual bool IsValid() const = 0
729
- // (4) virtual uint32_t Count() const = 0
730
- // (5) virtual RPC::Environment Current() const = 0
731
- //
732
-
733
- class RPCIteratorTypeInstance_195e88cf7f955a2eProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>> {
734
- public:
735
- RPCIteratorTypeInstance_195e88cf7f955a2eProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
736
- : BaseClass(channel, implementation, otherSideInformed)
737
- {
738
- }
739
-
740
- bool Next(RPC::Environment& _info) override
741
- {
742
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
743
-
744
- bool result{};
745
-
746
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
747
- if (hresult == Core::ERROR_NONE) {
748
- RPC::Data::Frame::Reader reader(message->Response().Reader());
749
- result = reader.Boolean();
750
- _info.Key = reader.Text();
751
- _info.Value = reader.Text();
752
- _info.Scope = reader.Number<RPC::Environment::scope>();
753
- } else {
754
- ASSERT((hresult & COM_ERROR) != 0);
755
- }
756
-
757
- return (result);
758
- }
759
-
760
- bool Previous(RPC::Environment& _info) override
761
- {
762
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
763
-
764
- bool result{};
765
-
766
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
767
- if (hresult == Core::ERROR_NONE) {
768
- RPC::Data::Frame::Reader reader(message->Response().Reader());
769
- result = reader.Boolean();
770
- _info.Key = reader.Text();
771
- _info.Value = reader.Text();
772
- _info.Scope = reader.Number<RPC::Environment::scope>();
773
- } else {
774
- ASSERT((hresult & COM_ERROR) != 0);
775
- }
776
-
777
- return (result);
778
- }
779
-
780
- void Reset(const uint32_t _position) override
781
- {
782
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
783
-
784
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
785
- writer.Number<uint32_t>(_position);
786
-
787
- static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
788
- }
789
-
790
- bool IsValid() const override
791
- {
792
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
793
-
794
- bool result{};
795
-
796
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
797
- if (hresult == Core::ERROR_NONE) {
798
- RPC::Data::Frame::Reader reader(message->Response().Reader());
799
- result = reader.Boolean();
800
- } else {
801
- ASSERT((hresult & COM_ERROR) != 0);
802
- }
803
-
804
- return (result);
805
- }
806
-
807
- uint32_t Count() const override
808
- {
809
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
810
-
811
- uint32_t result{};
812
-
813
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
814
- if (hresult == Core::ERROR_NONE) {
815
- RPC::Data::Frame::Reader reader(message->Response().Reader());
816
- result = reader.Number<uint32_t>();
817
- } else {
818
- ASSERT((hresult & COM_ERROR) != 0);
819
- }
820
-
821
- return (result);
822
- }
823
-
824
- RPC::Environment Current() const override
825
- {
826
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
827
-
828
- RPC::Environment result{};
829
-
830
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
831
- if (hresult == Core::ERROR_NONE) {
832
- RPC::Data::Frame::Reader reader(message->Response().Reader());
833
- result.Key = reader.Text();
834
- result.Value = reader.Text();
835
- result.Scope = reader.Number<RPC::Environment::scope>();
836
- } else {
837
- ASSERT((hresult & COM_ERROR) != 0);
838
- }
839
-
840
- return (result);
841
- }
842
-
843
- }; // class RPCIteratorTypeInstance_195e88cf7f955a2eProxy
844
-
845
- //
846
386
  // Exchange::IProvisioning interface proxy definitions
847
387
  //
848
388
  // Methods:
849
389
  // (0) virtual void Register(Exchange::IProvisioning::INotification*) = 0
850
390
  // (1) virtual void Unregister(Exchange::IProvisioning::INotification*) = 0
@@ -1014,30 +554,24 @@
1014
554
  // REGISTRATION
1015
555
  // -----------------------------------------------------------------
1016
556
  namespace {
1017
557
 
1018
558
  typedef ProxyStub::UnknownStubType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods> RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub;
1019
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaStubMethods> RPCIteratorTypeInstance_60eba5a793c685eaStub;
1020
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods> RPCIteratorTypeInstance_195e88cf7f955a2eStub;
1021
559
  typedef ProxyStub::UnknownStubType<Exchange::IProvisioning, ExchangeProvisioningStubMethods> ExchangeProvisioningStub;
1022
560
  typedef ProxyStub::UnknownStubType<Exchange::IProvisioning::INotification, ExchangeProvisioningNotificationStubMethods> ExchangeProvisioningNotificationStub;
1023
561
 
1024
562
  static class Instantiation {
1025
563
  public:
1026
564
  Instantiation()
1027
565
  {
1028
566
  RPC::Administrator::Instance().Announce<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy, RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub>();
1029
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaProxy, RPCIteratorTypeInstance_60eba5a793c685eaStub>();
1030
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eProxy, RPCIteratorTypeInstance_195e88cf7f955a2eStub>();
1031
567
  RPC::Administrator::Instance().Announce<Exchange::IProvisioning, ExchangeProvisioningProxy, ExchangeProvisioningStub>();
1032
568
  RPC::Administrator::Instance().Announce<Exchange::IProvisioning::INotification, ExchangeProvisioningNotificationProxy, ExchangeProvisioningNotificationStub>();
1033
569
  }
1034
570
  ~Instantiation()
1035
571
  {
1036
572
  RPC::Administrator::Instance().Recall<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>>();
1037
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>>();
1038
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>>();
1039
573
  RPC::Administrator::Instance().Recall<Exchange::IProvisioning>();
1040
574
  RPC::Administrator::Instance().Recall<Exchange::IProvisioning::INotification>();
1041
575
  }
1042
576
  } ProxyStubRegistration;
1043
577
 
{baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_SecureShellServer.cpp RENAMED
@@ -1,50 +0,0 @@
1
- //
2
- // generated automatically from "ISecureShellServer.h"
3
- //
4
- // implements COM-RPC proxy stubs for:
5
- //
6
-
7
- #include "Module.h"
8
- #include "ISecureShellServer.h"
9
-
10
- #include <com/com.h>
11
-
12
- namespace Thunder {
13
-
14
- namespace ProxyStubs {
15
-
16
- PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
17
- PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
18
-
19
- // -----------------------------------------------------------------
20
- // STUBS
21
- // -----------------------------------------------------------------
22
-
23
- // -----------------------------------------------------------------
24
- // PROXIES
25
- // -----------------------------------------------------------------
26
-
27
- POP_WARNING()
28
- POP_WARNING()
29
-
30
- // -----------------------------------------------------------------
31
- // REGISTRATION
32
- // -----------------------------------------------------------------
33
- namespace {
34
-
35
-
36
- static class Instantiation {
37
- public:
38
- Instantiation()
39
- {
40
- }
41
- ~Instantiation()
42
- {
43
- }
44
- } ProxyStubRegistration;
45
-
46
- } // namespace
47
-
48
- } // namespace ProxyStubs
49
-
50
- }
{baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_Stream.cpp RENAMED
@@ -1,12 +1,10 @@
1
1
  //
2
2
  // generated automatically from "IStream.h"
3
3
  //
4
4
  // implements COM-RPC proxy stubs for:
5
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = RPC::ID_STRINGITERATOR] [[iterator]]
6
5
  // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = uint32_t, INTERFACE_ID = RPC::ID_VALUEITERATOR] [[iterator]]
7
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = RPC::Environment, INTERFACE_ID = RPC::ID_ENVIRONMENTITERATOR] [[iterator]]
8
6
  // - class Exchange::IStream
9
7
  // - class Exchange::IStream::IElement
10
8
  // - class Exchange::IStream::IElement::IIterator
11
9
  // - class Exchange::IStream::IControl
12
10
  // - class Exchange::IStream::IControl::IGeometry
@@ -30,115 +28,10 @@
30
28
  // -----------------------------------------------------------------
31
29
  // STUBS
32
30
  // -----------------------------------------------------------------
33
31
 
34
32
  //
35
- // RPC::IIteratorTypeInstance_bd6e04b8d151c1f7 interface stub definitions
36
- //
37
- // Methods:
38
- // (0) virtual bool Next(string&) = 0
39
- // (1) virtual bool Previous(string&) = 0
40
- // (2) virtual void Reset(const uint32_t) = 0
41
- // (3) virtual bool IsValid() const = 0
42
- // (4) virtual uint32_t Count() const = 0
43
- // (5) virtual string Current() const = 0
44
- //
45
-
46
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods[] = {
47
- // (0) virtual bool Next(string&) = 0
48
- //
49
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
50
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
51
-
52
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
53
- ASSERT(implementation != nullptr);
54
-
55
- string _info{};
56
-
57
- bool result = implementation->Next(_info);
58
-
59
- RPC::Data::Frame::Writer writer(message->Response().Writer());
60
- writer.Boolean(result);
61
- writer.Text(_info);
62
- },
63
-
64
- // (1) virtual bool Previous(string&) = 0
65
- //
66
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
67
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
68
-
69
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
70
- ASSERT(implementation != nullptr);
71
-
72
- string _info{};
73
-
74
- bool result = implementation->Previous(_info);
75
-
76
- RPC::Data::Frame::Writer writer(message->Response().Writer());
77
- writer.Boolean(result);
78
- writer.Text(_info);
79
- },
80
-
81
- // (2) virtual void Reset(const uint32_t) = 0
82
- //
83
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
84
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
85
-
86
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
87
- ASSERT(implementation != nullptr);
88
-
89
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
90
- const uint32_t _position = reader.Number<uint32_t>();
91
-
92
- implementation->Reset(_position);
93
- },
94
-
95
- // (3) virtual bool IsValid() const = 0
96
- //
97
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
98
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
99
-
100
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
101
- ASSERT(implementation != nullptr);
102
-
103
- bool result = implementation->IsValid();
104
-
105
- RPC::Data::Frame::Writer writer(message->Response().Writer());
106
- writer.Boolean(result);
107
- },
108
-
109
- // (4) virtual uint32_t Count() const = 0
110
- //
111
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
112
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
113
-
114
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
115
- ASSERT(implementation != nullptr);
116
-
117
- uint32_t result = implementation->Count();
118
-
119
- RPC::Data::Frame::Writer writer(message->Response().Writer());
120
- writer.Number<uint32_t>(result);
121
- },
122
-
123
- // (5) virtual string Current() const = 0
124
- //
125
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
126
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
127
-
128
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
129
- ASSERT(implementation != nullptr);
130
-
131
- string result = implementation->Current();
132
-
133
- RPC::Data::Frame::Writer writer(message->Response().Writer());
134
- writer.Text(result);
135
- }
136
- , nullptr
137
- }; // RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods
138
-
139
- //
140
33
  // RPC::IIteratorTypeInstance_60eba5a793c685ea interface stub definitions
141
34
  //
142
35
  // Methods:
143
36
  // (0) virtual bool Next(uint32_t&) = 0
144
37
  // (1) virtual bool Previous(uint32_t&) = 0
@@ -240,121 +133,10 @@
240
133
  }
241
134
  , nullptr
242
135
  }; // RPCIteratorTypeInstance_60eba5a793c685eaStubMethods
243
136
 
244
137
  //
245
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface stub definitions
246
- //
247
- // Methods:
248
- // (0) virtual bool Next(RPC::Environment&) = 0
249
- // (1) virtual bool Previous(RPC::Environment&) = 0
250
- // (2) virtual void Reset(const uint32_t) = 0
251
- // (3) virtual bool IsValid() const = 0
252
- // (4) virtual uint32_t Count() const = 0
253
- // (5) virtual RPC::Environment Current() const = 0
254
- //
255
-
256
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods[] = {
257
- // (0) virtual bool Next(RPC::Environment&) = 0
258
- //
259
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
260
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
261
-
262
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
263
- ASSERT(implementation != nullptr);
264
-
265
- RPC::Environment _info{};
266
-
267
- bool result = implementation->Next(_info);
268
-
269
- RPC::Data::Frame::Writer writer(message->Response().Writer());
270
- writer.Boolean(result);
271
- writer.Text(_info.Key);
272
- writer.Text(_info.Value);
273
- writer.Number<RPC::Environment::scope>(_info.Scope);
274
- },
275
-
276
- // (1) virtual bool Previous(RPC::Environment&) = 0
277
- //
278
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
279
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
280
-
281
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
282
- ASSERT(implementation != nullptr);
283
-
284
- RPC::Environment _info{};
285
-
286
- bool result = implementation->Previous(_info);
287
-
288
- RPC::Data::Frame::Writer writer(message->Response().Writer());
289
- writer.Boolean(result);
290
- writer.Text(_info.Key);
291
- writer.Text(_info.Value);
292
- writer.Number<RPC::Environment::scope>(_info.Scope);
293
- },
294
-
295
- // (2) virtual void Reset(const uint32_t) = 0
296
- //
297
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
298
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
299
-
300
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
301
- ASSERT(implementation != nullptr);
302
-
303
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
304
- const uint32_t _position = reader.Number<uint32_t>();
305
-
306
- implementation->Reset(_position);
307
- },
308
-
309
- // (3) virtual bool IsValid() const = 0
310
- //
311
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
312
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
313
-
314
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
315
- ASSERT(implementation != nullptr);
316
-
317
- bool result = implementation->IsValid();
318
-
319
- RPC::Data::Frame::Writer writer(message->Response().Writer());
320
- writer.Boolean(result);
321
- },
322
-
323
- // (4) virtual uint32_t Count() const = 0
324
- //
325
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
326
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
327
-
328
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
329
- ASSERT(implementation != nullptr);
330
-
331
- uint32_t result = implementation->Count();
332
-
333
- RPC::Data::Frame::Writer writer(message->Response().Writer());
334
- writer.Number<uint32_t>(result);
335
- },
336
-
337
- // (5) virtual RPC::Environment Current() const = 0
338
- //
339
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
340
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
341
-
342
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
343
- ASSERT(implementation != nullptr);
344
-
345
- RPC::Environment result = implementation->Current();
346
-
347
- RPC::Data::Frame::Writer writer(message->Response().Writer());
348
- writer.Text(result.Key);
349
- writer.Text(result.Value);
350
- writer.Number<RPC::Environment::scope>(result.Scope);
351
- }
352
- , nullptr
353
- }; // RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods
354
-
355
- //
356
138
  // Exchange::IStream interface stub definitions
357
139
  //
358
140
  // Methods:
359
141
  // (0) virtual string Metadata() const = 0
360
142
  // (1) virtual Exchange::IStream::streamtype Type() const = 0
@@ -999,128 +781,10 @@
999
781
  // -----------------------------------------------------------------
1000
782
  // PROXIES
1001
783
  // -----------------------------------------------------------------
1002
784
 
1003
785
  //
1004
- // RPC::IIteratorTypeInstance_bd6e04b8d151c1f7 interface proxy definitions
1005
- //
1006
- // Methods:
1007
- // (0) virtual bool Next(string&) = 0
1008
- // (1) virtual bool Previous(string&) = 0
1009
- // (2) virtual void Reset(const uint32_t) = 0
1010
- // (3) virtual bool IsValid() const = 0
1011
- // (4) virtual uint32_t Count() const = 0
1012
- // (5) virtual string Current() const = 0
1013
- //
1014
-
1015
- class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>> {
1016
- public:
1017
- RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
1018
- : BaseClass(channel, implementation, otherSideInformed)
1019
- {
1020
- }
1021
-
1022
- bool Next(string& _info) override
1023
- {
1024
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
1025
-
1026
- bool result{};
1027
-
1028
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1029
- if (hresult == Core::ERROR_NONE) {
1030
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1031
- result = reader.Boolean();
1032
- _info = reader.Text();
1033
- } else {
1034
- ASSERT((hresult & COM_ERROR) != 0);
1035
- }
1036
-
1037
- return (result);
1038
- }
1039
-
1040
- bool Previous(string& _info) override
1041
- {
1042
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
1043
-
1044
- bool result{};
1045
-
1046
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1047
- if (hresult == Core::ERROR_NONE) {
1048
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1049
- result = reader.Boolean();
1050
- _info = reader.Text();
1051
- } else {
1052
- ASSERT((hresult & COM_ERROR) != 0);
1053
- }
1054
-
1055
- return (result);
1056
- }
1057
-
1058
- void Reset(const uint32_t _position) override
1059
- {
1060
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
1061
-
1062
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
1063
- writer.Number<uint32_t>(_position);
1064
-
1065
- static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1066
- }
1067
-
1068
- bool IsValid() const override
1069
- {
1070
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
1071
-
1072
- bool result{};
1073
-
1074
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1075
- if (hresult == Core::ERROR_NONE) {
1076
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1077
- result = reader.Boolean();
1078
- } else {
1079
- ASSERT((hresult & COM_ERROR) != 0);
1080
- }
1081
-
1082
- return (result);
1083
- }
1084
-
1085
- uint32_t Count() const override
1086
- {
1087
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
1088
-
1089
- uint32_t result{};
1090
-
1091
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1092
- if (hresult == Core::ERROR_NONE) {
1093
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1094
- result = reader.Number<uint32_t>();
1095
- } else {
1096
- ASSERT((hresult & COM_ERROR) != 0);
1097
- }
1098
-
1099
- return (result);
1100
- }
1101
-
1102
- string Current() const override
1103
- {
1104
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1105
-
1106
- string result{};
1107
-
1108
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1109
- if (hresult == Core::ERROR_NONE) {
1110
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1111
- result = reader.Text();
1112
- } else {
1113
- ASSERT((hresult & COM_ERROR) != 0);
1114
- }
1115
-
1116
- return (result);
1117
- }
1118
-
1119
- }; // class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy
1120
-
1121
- //
1122
786
  // RPC::IIteratorTypeInstance_60eba5a793c685ea interface proxy definitions
1123
787
  //
1124
788
  // Methods:
1125
789
  // (0) virtual bool Next(uint32_t&) = 0
1126
790
  // (1) virtual bool Previous(uint32_t&) = 0
@@ -1235,134 +899,10 @@
1235
899
  }
1236
900
 
1237
901
  }; // class RPCIteratorTypeInstance_60eba5a793c685eaProxy
1238
902
 
1239
903
  //
1240
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface proxy definitions
1241
- //
1242
- // Methods:
1243
- // (0) virtual bool Next(RPC::Environment&) = 0
1244
- // (1) virtual bool Previous(RPC::Environment&) = 0
1245
- // (2) virtual void Reset(const uint32_t) = 0
1246
- // (3) virtual bool IsValid() const = 0
1247
- // (4) virtual uint32_t Count() const = 0
1248
- // (5) virtual RPC::Environment Current() const = 0
1249
- //
1250
-
1251
- class RPCIteratorTypeInstance_195e88cf7f955a2eProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>> {
1252
- public:
1253
- RPCIteratorTypeInstance_195e88cf7f955a2eProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
1254
- : BaseClass(channel, implementation, otherSideInformed)
1255
- {
1256
- }
1257
-
1258
- bool Next(RPC::Environment& _info) override
1259
- {
1260
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
1261
-
1262
- bool result{};
1263
-
1264
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1265
- if (hresult == Core::ERROR_NONE) {
1266
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1267
- result = reader.Boolean();
1268
- _info.Key = reader.Text();
1269
- _info.Value = reader.Text();
1270
- _info.Scope = reader.Number<RPC::Environment::scope>();
1271
- } else {
1272
- ASSERT((hresult & COM_ERROR) != 0);
1273
- }
1274
-
1275
- return (result);
1276
- }
1277
-
1278
- bool Previous(RPC::Environment& _info) override
1279
- {
1280
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
1281
-
1282
- bool result{};
1283
-
1284
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1285
- if (hresult == Core::ERROR_NONE) {
1286
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1287
- result = reader.Boolean();
1288
- _info.Key = reader.Text();
1289
- _info.Value = reader.Text();
1290
- _info.Scope = reader.Number<RPC::Environment::scope>();
1291
- } else {
1292
- ASSERT((hresult & COM_ERROR) != 0);
1293
- }
1294
-
1295
- return (result);
1296
- }
1297
-
1298
- void Reset(const uint32_t _position) override
1299
- {
1300
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
1301
-
1302
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
1303
- writer.Number<uint32_t>(_position);
1304
-
1305
- static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1306
- }
1307
-
1308
- bool IsValid() const override
1309
- {
1310
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
1311
-
1312
- bool result{};
1313
-
1314
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1315
- if (hresult == Core::ERROR_NONE) {
1316
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1317
- result = reader.Boolean();
1318
- } else {
1319
- ASSERT((hresult & COM_ERROR) != 0);
1320
- }
1321
-
1322
- return (result);
1323
- }
1324
-
1325
- uint32_t Count() const override
1326
- {
1327
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
1328
-
1329
- uint32_t result{};
1330
-
1331
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1332
- if (hresult == Core::ERROR_NONE) {
1333
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1334
- result = reader.Number<uint32_t>();
1335
- } else {
1336
- ASSERT((hresult & COM_ERROR) != 0);
1337
- }
1338
-
1339
- return (result);
1340
- }
1341
-
1342
- RPC::Environment Current() const override
1343
- {
1344
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1345
-
1346
- RPC::Environment result{};
1347
-
1348
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1349
- if (hresult == Core::ERROR_NONE) {
1350
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1351
- result.Key = reader.Text();
1352
- result.Value = reader.Text();
1353
- result.Scope = reader.Number<RPC::Environment::scope>();
1354
- } else {
1355
- ASSERT((hresult & COM_ERROR) != 0);
1356
- }
1357
-
1358
- return (result);
1359
- }
1360
-
1361
- }; // class RPCIteratorTypeInstance_195e88cf7f955a2eProxy
1362
-
1363
- //
1364
904
  // Exchange::IStream interface proxy definitions
1365
905
  //
1366
906
  // Methods:
1367
907
  // (0) virtual string Metadata() const = 0
1368
908
  // (1) virtual Exchange::IStream::streamtype Type() const = 0
@@ -2163,13 +1703,11 @@
2163
1703
  // -----------------------------------------------------------------
2164
1704
  // REGISTRATION
2165
1705
  // -----------------------------------------------------------------
2166
1706
  namespace {
2167
1707
 
2168
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods> RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub;
2169
1708
  typedef ProxyStub::UnknownStubType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaStubMethods> RPCIteratorTypeInstance_60eba5a793c685eaStub;
2170
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods> RPCIteratorTypeInstance_195e88cf7f955a2eStub;
2171
1709
  typedef ProxyStub::UnknownStubType<Exchange::IStream, ExchangeStreamStubMethods> ExchangeStreamStub;
2172
1710
  typedef ProxyStub::UnknownStubType<Exchange::IStream::IElement, ExchangeStreamElementStubMethods> ExchangeStreamElementStub;
2173
1711
  typedef ProxyStub::UnknownStubType<Exchange::IStream::IElement::IIterator, ExchangeStreamElementIteratorStubMethods> ExchangeStreamElementIteratorStub;
2174
1712
  typedef ProxyStub::UnknownStubType<Exchange::IStream::IControl, ExchangeStreamControlStubMethods> ExchangeStreamControlStub;
2175
1713
  typedef ProxyStub::UnknownStubType<Exchange::IStream::IControl::IGeometry, ExchangeStreamControlGeometryStubMethods> ExchangeStreamControlGeometryStub;
@@ -2179,13 +1717,11 @@
2179
1717
 
2180
1718
  static class Instantiation {
2181
1719
  public:
2182
1720
  Instantiation()
2183
1721
  {
2184
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy, RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub>();
2185
1722
  RPC::Administrator::Instance().Announce<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaProxy, RPCIteratorTypeInstance_60eba5a793c685eaStub>();
2186
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eProxy, RPCIteratorTypeInstance_195e88cf7f955a2eStub>();
2187
1723
  RPC::Administrator::Instance().Announce<Exchange::IStream, ExchangeStreamProxy, ExchangeStreamStub>();
2188
1724
  RPC::Administrator::Instance().Announce<Exchange::IStream::IElement, ExchangeStreamElementProxy, ExchangeStreamElementStub>();
2189
1725
  RPC::Administrator::Instance().Announce<Exchange::IStream::IElement::IIterator, ExchangeStreamElementIteratorProxy, ExchangeStreamElementIteratorStub>();
2190
1726
  RPC::Administrator::Instance().Announce<Exchange::IStream::IControl, ExchangeStreamControlProxy, ExchangeStreamControlStub>();
2191
1727
  RPC::Administrator::Instance().Announce<Exchange::IStream::IControl::IGeometry, ExchangeStreamControlGeometryProxy, ExchangeStreamControlGeometryStub>();
@@ -2193,13 +1729,11 @@
2193
1729
  RPC::Administrator::Instance().Announce<Exchange::IStream::ICallback, ExchangeStreamCallbackProxy, ExchangeStreamCallbackStub>();
2194
1730
  RPC::Administrator::Instance().Announce<Exchange::IPlayer, ExchangePlayerProxy, ExchangePlayerStub>();
2195
1731
  }
2196
1732
  ~Instantiation()
2197
1733
  {
2198
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>>();
2199
1734
  RPC::Administrator::Instance().Recall<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>>();
2200
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>>();
2201
1735
  RPC::Administrator::Instance().Recall<Exchange::IStream>();
2202
1736
  RPC::Administrator::Instance().Recall<Exchange::IStream::IElement>();
2203
1737
  RPC::Administrator::Instance().Recall<Exchange::IStream::IElement::IIterator>();
2204
1738
  RPC::Administrator::Instance().Recall<Exchange::IStream::IControl>();
2205
1739
  RPC::Administrator::Instance().Recall<Exchange::IStream::IControl::IGeometry>();
{baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_SubsystemControl.cpp RENAMED
@@ -1,12 +1,10 @@
1
1
  //
2
2
  // generated automatically from "ISubsystemControl.h"
3
3
  //
4
4
  // implements COM-RPC proxy stubs for:
5
5
  // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = RPC::ID_STRINGITERATOR] [[iterator]]
6
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = uint32_t, INTERFACE_ID = RPC::ID_VALUEITERATOR] [[iterator]]
7
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = RPC::Environment, INTERFACE_ID = RPC::ID_ENVIRONMENTITERATOR] [[iterator]]
8
6
  // - class Exchange::ISubsystemControl
9
7
  //
10
8
 
11
9
  #include "Module.h"
12
10
  #include "ISubsystemControl.h"
@@ -128,226 +126,10 @@
128
126
  }
129
127
  , nullptr
130
128
  }; // RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods
131
129
 
132
130
  //
133
- // RPC::IIteratorTypeInstance_60eba5a793c685ea interface stub definitions
134
- //
135
- // Methods:
136
- // (0) virtual bool Next(uint32_t&) = 0
137
- // (1) virtual bool Previous(uint32_t&) = 0
138
- // (2) virtual void Reset(const uint32_t) = 0
139
- // (3) virtual bool IsValid() const = 0
140
- // (4) virtual uint32_t Count() const = 0
141
- // (5) virtual uint32_t Current() const = 0
142
- //
143
-
144
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_60eba5a793c685eaStubMethods[] = {
145
- // (0) virtual bool Next(uint32_t&) = 0
146
- //
147
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
148
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
149
-
150
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
151
- ASSERT(implementation != nullptr);
152
-
153
- uint32_t _info{};
154
-
155
- bool result = implementation->Next(_info);
156
-
157
- RPC::Data::Frame::Writer writer(message->Response().Writer());
158
- writer.Boolean(result);
159
- writer.Number<uint32_t>(_info);
160
- },
161
-
162
- // (1) virtual bool Previous(uint32_t&) = 0
163
- //
164
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
165
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
166
-
167
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
168
- ASSERT(implementation != nullptr);
169
-
170
- uint32_t _info{};
171
-
172
- bool result = implementation->Previous(_info);
173
-
174
- RPC::Data::Frame::Writer writer(message->Response().Writer());
175
- writer.Boolean(result);
176
- writer.Number<uint32_t>(_info);
177
- },
178
-
179
- // (2) virtual void Reset(const uint32_t) = 0
180
- //
181
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
182
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
183
-
184
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
185
- ASSERT(implementation != nullptr);
186
-
187
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
188
- const uint32_t _position = reader.Number<uint32_t>();
189
-
190
- implementation->Reset(_position);
191
- },
192
-
193
- // (3) virtual bool IsValid() const = 0
194
- //
195
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
196
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
197
-
198
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
199
- ASSERT(implementation != nullptr);
200
-
201
- bool result = implementation->IsValid();
202
-
203
- RPC::Data::Frame::Writer writer(message->Response().Writer());
204
- writer.Boolean(result);
205
- },
206
-
207
- // (4) virtual uint32_t Count() const = 0
208
- //
209
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
210
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
211
-
212
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
213
- ASSERT(implementation != nullptr);
214
-
215
- uint32_t result = implementation->Count();
216
-
217
- RPC::Data::Frame::Writer writer(message->Response().Writer());
218
- writer.Number<uint32_t>(result);
219
- },
220
-
221
- // (5) virtual uint32_t Current() const = 0
222
- //
223
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
224
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
225
-
226
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
227
- ASSERT(implementation != nullptr);
228
-
229
- uint32_t result = implementation->Current();
230
-
231
- RPC::Data::Frame::Writer writer(message->Response().Writer());
232
- writer.Number<uint32_t>(result);
233
- }
234
- , nullptr
235
- }; // RPCIteratorTypeInstance_60eba5a793c685eaStubMethods
236
-
237
- //
238
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface stub definitions
239
- //
240
- // Methods:
241
- // (0) virtual bool Next(RPC::Environment&) = 0
242
- // (1) virtual bool Previous(RPC::Environment&) = 0
243
- // (2) virtual void Reset(const uint32_t) = 0
244
- // (3) virtual bool IsValid() const = 0
245
- // (4) virtual uint32_t Count() const = 0
246
- // (5) virtual RPC::Environment Current() const = 0
247
- //
248
-
249
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods[] = {
250
- // (0) virtual bool Next(RPC::Environment&) = 0
251
- //
252
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
253
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
254
-
255
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
256
- ASSERT(implementation != nullptr);
257
-
258
- RPC::Environment _info{};
259
-
260
- bool result = implementation->Next(_info);
261
-
262
- RPC::Data::Frame::Writer writer(message->Response().Writer());
263
- writer.Boolean(result);
264
- writer.Text(_info.Key);
265
- writer.Text(_info.Value);
266
- writer.Number<RPC::Environment::scope>(_info.Scope);
267
- },
268
-
269
- // (1) virtual bool Previous(RPC::Environment&) = 0
270
- //
271
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
272
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
273
-
274
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
275
- ASSERT(implementation != nullptr);
276
-
277
- RPC::Environment _info{};
278
-
279
- bool result = implementation->Previous(_info);
280
-
281
- RPC::Data::Frame::Writer writer(message->Response().Writer());
282
- writer.Boolean(result);
283
- writer.Text(_info.Key);
284
- writer.Text(_info.Value);
285
- writer.Number<RPC::Environment::scope>(_info.Scope);
286
- },
287
-
288
- // (2) virtual void Reset(const uint32_t) = 0
289
- //
290
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
291
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
292
-
293
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
294
- ASSERT(implementation != nullptr);
295
-
296
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
297
- const uint32_t _position = reader.Number<uint32_t>();
298
-
299
- implementation->Reset(_position);
300
- },
301
-
302
- // (3) virtual bool IsValid() const = 0
303
- //
304
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
305
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
306
-
307
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
308
- ASSERT(implementation != nullptr);
309
-
310
- bool result = implementation->IsValid();
311
-
312
- RPC::Data::Frame::Writer writer(message->Response().Writer());
313
- writer.Boolean(result);
314
- },
315
-
316
- // (4) virtual uint32_t Count() const = 0
317
- //
318
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
319
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
320
-
321
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
322
- ASSERT(implementation != nullptr);
323
-
324
- uint32_t result = implementation->Count();
325
-
326
- RPC::Data::Frame::Writer writer(message->Response().Writer());
327
- writer.Number<uint32_t>(result);
328
- },
329
-
330
- // (5) virtual RPC::Environment Current() const = 0
331
- //
332
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
333
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
334
-
335
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
336
- ASSERT(implementation != nullptr);
337
-
338
- RPC::Environment result = implementation->Current();
339
-
340
- RPC::Data::Frame::Writer writer(message->Response().Writer());
341
- writer.Text(result.Key);
342
- writer.Text(result.Value);
343
- writer.Number<RPC::Environment::scope>(result.Scope);
344
- }
345
- , nullptr
346
- }; // RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods
347
-
348
- //
349
131
  // Exchange::ISubsystemControl interface stub definitions
350
132
  //
351
133
  // Methods:
352
134
  // (0) virtual Core::hresult Activate(const PluginHost::ISubSystem::subsystem, const Core::OptionalType<string>&) = 0
353
135
  //
@@ -495,252 +277,10 @@
495
277
  }
496
278
 
497
279
  }; // class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy
498
280
 
499
281
  //
500
- // RPC::IIteratorTypeInstance_60eba5a793c685ea interface proxy definitions
501
- //
502
- // Methods:
503
- // (0) virtual bool Next(uint32_t&) = 0
504
- // (1) virtual bool Previous(uint32_t&) = 0
505
- // (2) virtual void Reset(const uint32_t) = 0
506
- // (3) virtual bool IsValid() const = 0
507
- // (4) virtual uint32_t Count() const = 0
508
- // (5) virtual uint32_t Current() const = 0
509
- //
510
-
511
- class RPCIteratorTypeInstance_60eba5a793c685eaProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>> {
512
- public:
513
- RPCIteratorTypeInstance_60eba5a793c685eaProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
514
- : BaseClass(channel, implementation, otherSideInformed)
515
- {
516
- }
517
-
518
- bool Next(uint32_t& _info) override
519
- {
520
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
521
-
522
- bool result{};
523
-
524
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
525
- if (hresult == Core::ERROR_NONE) {
526
- RPC::Data::Frame::Reader reader(message->Response().Reader());
527
- result = reader.Boolean();
528
- _info = reader.Number<uint32_t>();
529
- } else {
530
- ASSERT((hresult & COM_ERROR) != 0);
531
- }
532
-
533
- return (result);
534
- }
535
-
536
- bool Previous(uint32_t& _info) override
537
- {
538
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
539
-
540
- bool result{};
541
-
542
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
543
- if (hresult == Core::ERROR_NONE) {
544
- RPC::Data::Frame::Reader reader(message->Response().Reader());
545
- result = reader.Boolean();
546
- _info = reader.Number<uint32_t>();
547
- } else {
548
- ASSERT((hresult & COM_ERROR) != 0);
549
- }
550
-
551
- return (result);
552
- }
553
-
554
- void Reset(const uint32_t _position) override
555
- {
556
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
557
-
558
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
559
- writer.Number<uint32_t>(_position);
560
-
561
- static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
562
- }
563
-
564
- bool IsValid() const override
565
- {
566
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
567
-
568
- bool result{};
569
-
570
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
571
- if (hresult == Core::ERROR_NONE) {
572
- RPC::Data::Frame::Reader reader(message->Response().Reader());
573
- result = reader.Boolean();
574
- } else {
575
- ASSERT((hresult & COM_ERROR) != 0);
576
- }
577
-
578
- return (result);
579
- }
580
-
581
- uint32_t Count() const override
582
- {
583
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
584
-
585
- uint32_t result{};
586
-
587
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
588
- if (hresult == Core::ERROR_NONE) {
589
- RPC::Data::Frame::Reader reader(message->Response().Reader());
590
- result = reader.Number<uint32_t>();
591
- } else {
592
- ASSERT((hresult & COM_ERROR) != 0);
593
- }
594
-
595
- return (result);
596
- }
597
-
598
- uint32_t Current() const override
599
- {
600
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
601
-
602
- uint32_t result{};
603
-
604
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
605
- if (hresult == Core::ERROR_NONE) {
606
- RPC::Data::Frame::Reader reader(message->Response().Reader());
607
- result = reader.Number<uint32_t>();
608
- } else {
609
- ASSERT((hresult & COM_ERROR) != 0);
610
- }
611
-
612
- return (result);
613
- }
614
-
615
- }; // class RPCIteratorTypeInstance_60eba5a793c685eaProxy
616
-
617
- //
618
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface proxy definitions
619
- //
620
- // Methods:
621
- // (0) virtual bool Next(RPC::Environment&) = 0
622
- // (1) virtual bool Previous(RPC::Environment&) = 0
623
- // (2) virtual void Reset(const uint32_t) = 0
624
- // (3) virtual bool IsValid() const = 0
625
- // (4) virtual uint32_t Count() const = 0
626
- // (5) virtual RPC::Environment Current() const = 0
627
- //
628
-
629
- class RPCIteratorTypeInstance_195e88cf7f955a2eProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>> {
630
- public:
631
- RPCIteratorTypeInstance_195e88cf7f955a2eProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
632
- : BaseClass(channel, implementation, otherSideInformed)
633
- {
634
- }
635
-
636
- bool Next(RPC::Environment& _info) override
637
- {
638
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
639
-
640
- bool result{};
641
-
642
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
643
- if (hresult == Core::ERROR_NONE) {
644
- RPC::Data::Frame::Reader reader(message->Response().Reader());
645
- result = reader.Boolean();
646
- _info.Key = reader.Text();
647
- _info.Value = reader.Text();
648
- _info.Scope = reader.Number<RPC::Environment::scope>();
649
- } else {
650
- ASSERT((hresult & COM_ERROR) != 0);
651
- }
652
-
653
- return (result);
654
- }
655
-
656
- bool Previous(RPC::Environment& _info) override
657
- {
658
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
659
-
660
- bool result{};
661
-
662
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
663
- if (hresult == Core::ERROR_NONE) {
664
- RPC::Data::Frame::Reader reader(message->Response().Reader());
665
- result = reader.Boolean();
666
- _info.Key = reader.Text();
667
- _info.Value = reader.Text();
668
- _info.Scope = reader.Number<RPC::Environment::scope>();
669
- } else {
670
- ASSERT((hresult & COM_ERROR) != 0);
671
- }
672
-
673
- return (result);
674
- }
675
-
676
- void Reset(const uint32_t _position) override
677
- {
678
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
679
-
680
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
681
- writer.Number<uint32_t>(_position);
682
-
683
- static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
684
- }
685
-
686
- bool IsValid() const override
687
- {
688
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
689
-
690
- bool result{};
691
-
692
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
693
- if (hresult == Core::ERROR_NONE) {
694
- RPC::Data::Frame::Reader reader(message->Response().Reader());
695
- result = reader.Boolean();
696
- } else {
697
- ASSERT((hresult & COM_ERROR) != 0);
698
- }
699
-
700
- return (result);
701
- }
702
-
703
- uint32_t Count() const override
704
- {
705
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
706
-
707
- uint32_t result{};
708
-
709
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
710
- if (hresult == Core::ERROR_NONE) {
711
- RPC::Data::Frame::Reader reader(message->Response().Reader());
712
- result = reader.Number<uint32_t>();
713
- } else {
714
- ASSERT((hresult & COM_ERROR) != 0);
715
- }
716
-
717
- return (result);
718
- }
719
-
720
- RPC::Environment Current() const override
721
- {
722
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
723
-
724
- RPC::Environment result{};
725
-
726
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
727
- if (hresult == Core::ERROR_NONE) {
728
- RPC::Data::Frame::Reader reader(message->Response().Reader());
729
- result.Key = reader.Text();
730
- result.Value = reader.Text();
731
- result.Scope = reader.Number<RPC::Environment::scope>();
732
- } else {
733
- ASSERT((hresult & COM_ERROR) != 0);
734
- }
735
-
736
- return (result);
737
- }
738
-
739
- }; // class RPCIteratorTypeInstance_195e88cf7f955a2eProxy
740
-
741
- //
742
282
  // Exchange::ISubsystemControl interface proxy definitions
743
283
  //
744
284
  // Methods:
745
285
  // (0) virtual Core::hresult Activate(const PluginHost::ISubSystem::subsystem, const Core::OptionalType<string>&) = 0
746
286
  //
@@ -783,28 +323,22 @@
783
323
  // REGISTRATION
784
324
  // -----------------------------------------------------------------
785
325
  namespace {
786
326
 
787
327
  typedef ProxyStub::UnknownStubType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods> RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub;
788
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaStubMethods> RPCIteratorTypeInstance_60eba5a793c685eaStub;
789
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods> RPCIteratorTypeInstance_195e88cf7f955a2eStub;
790
328
  typedef ProxyStub::UnknownStubType<Exchange::ISubsystemControl, ExchangeSubsystemControlStubMethods> ExchangeSubsystemControlStub;
791
329
 
792
330
  static class Instantiation {
793
331
  public:
794
332
  Instantiation()
795
333
  {
796
334
  RPC::Administrator::Instance().Announce<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy, RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub>();
797
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaProxy, RPCIteratorTypeInstance_60eba5a793c685eaStub>();
798
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eProxy, RPCIteratorTypeInstance_195e88cf7f955a2eStub>();
799
335
  RPC::Administrator::Instance().Announce<Exchange::ISubsystemControl, ExchangeSubsystemControlProxy, ExchangeSubsystemControlStub>();
800
336
  }
801
337
  ~Instantiation()
802
338
  {
803
339
  RPC::Administrator::Instance().Recall<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>>();
804
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>>();
805
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>>();
806
340
  RPC::Administrator::Instance().Recall<Exchange::ISubsystemControl>();
807
341
  }
808
342
  } ProxyStubRegistration;
809
343
 
810
344
  } // namespace
{baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_SwitchBoard.cpp RENAMED
@@ -1,50 +0,0 @@
1
- //
2
- // generated automatically from "ISwitchBoard.h"
3
- //
4
- // implements COM-RPC proxy stubs for:
5
- //
6
-
7
- #include "Module.h"
8
- #include "ISwitchBoard.h"
9
-
10
- #include <com/com.h>
11
-
12
- namespace Thunder {
13
-
14
- namespace ProxyStubs {
15
-
16
- PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
17
- PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
18
-
19
- // -----------------------------------------------------------------
20
- // STUBS
21
- // -----------------------------------------------------------------
22
-
23
- // -----------------------------------------------------------------
24
- // PROXIES
25
- // -----------------------------------------------------------------
26
-
27
- POP_WARNING()
28
- POP_WARNING()
29
-
30
- // -----------------------------------------------------------------
31
- // REGISTRATION
32
- // -----------------------------------------------------------------
33
- namespace {
34
-
35
-
36
- static class Instantiation {
37
- public:
38
- Instantiation()
39
- {
40
- }
41
- ~Instantiation()
42
- {
43
- }
44
- } ProxyStubRegistration;
45
-
46
- } // namespace
47
-
48
- } // namespace ProxyStubs
49
-
50
- }
{baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_TextToSpeech.cpp RENAMED
@@ -1,12 +1,10 @@
1
1
  //
2
2
  // generated automatically from "ITextToSpeech.h"
3
3
  //
4
4
  // implements COM-RPC proxy stubs for:
5
5
  // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = RPC::ID_STRINGITERATOR] [[iterator]]
6
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = uint32_t, INTERFACE_ID = RPC::ID_VALUEITERATOR] [[iterator]]
7
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = RPC::Environment, INTERFACE_ID = RPC::ID_ENVIRONMENTITERATOR] [[iterator]]
8
6
  // - class Exchange::ITextToSpeech
9
7
  // - class Exchange::ITextToSpeech::INotification
10
8
  //
11
9
 
12
10
  #include "Module.h"
@@ -129,226 +127,10 @@
129
127
  }
130
128
  , nullptr
131
129
  }; // RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods
132
130
 
133
131
  //
134
- // RPC::IIteratorTypeInstance_60eba5a793c685ea interface stub definitions
135
- //
136
- // Methods:
137
- // (0) virtual bool Next(uint32_t&) = 0
138
- // (1) virtual bool Previous(uint32_t&) = 0
139
- // (2) virtual void Reset(const uint32_t) = 0
140
- // (3) virtual bool IsValid() const = 0
141
- // (4) virtual uint32_t Count() const = 0
142
- // (5) virtual uint32_t Current() const = 0
143
- //
144
-
145
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_60eba5a793c685eaStubMethods[] = {
146
- // (0) virtual bool Next(uint32_t&) = 0
147
- //
148
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
149
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
150
-
151
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
152
- ASSERT(implementation != nullptr);
153
-
154
- uint32_t _info{};
155
-
156
- bool result = implementation->Next(_info);
157
-
158
- RPC::Data::Frame::Writer writer(message->Response().Writer());
159
- writer.Boolean(result);
160
- writer.Number<uint32_t>(_info);
161
- },
162
-
163
- // (1) virtual bool Previous(uint32_t&) = 0
164
- //
165
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
166
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
167
-
168
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
169
- ASSERT(implementation != nullptr);
170
-
171
- uint32_t _info{};
172
-
173
- bool result = implementation->Previous(_info);
174
-
175
- RPC::Data::Frame::Writer writer(message->Response().Writer());
176
- writer.Boolean(result);
177
- writer.Number<uint32_t>(_info);
178
- },
179
-
180
- // (2) virtual void Reset(const uint32_t) = 0
181
- //
182
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
183
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
184
-
185
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
186
- ASSERT(implementation != nullptr);
187
-
188
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
189
- const uint32_t _position = reader.Number<uint32_t>();
190
-
191
- implementation->Reset(_position);
192
- },
193
-
194
- // (3) virtual bool IsValid() const = 0
195
- //
196
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
197
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
198
-
199
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
200
- ASSERT(implementation != nullptr);
201
-
202
- bool result = implementation->IsValid();
203
-
204
- RPC::Data::Frame::Writer writer(message->Response().Writer());
205
- writer.Boolean(result);
206
- },
207
-
208
- // (4) virtual uint32_t Count() const = 0
209
- //
210
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
211
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
212
-
213
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
214
- ASSERT(implementation != nullptr);
215
-
216
- uint32_t result = implementation->Count();
217
-
218
- RPC::Data::Frame::Writer writer(message->Response().Writer());
219
- writer.Number<uint32_t>(result);
220
- },
221
-
222
- // (5) virtual uint32_t Current() const = 0
223
- //
224
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
225
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
226
-
227
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
228
- ASSERT(implementation != nullptr);
229
-
230
- uint32_t result = implementation->Current();
231
-
232
- RPC::Data::Frame::Writer writer(message->Response().Writer());
233
- writer.Number<uint32_t>(result);
234
- }
235
- , nullptr
236
- }; // RPCIteratorTypeInstance_60eba5a793c685eaStubMethods
237
-
238
- //
239
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface stub definitions
240
- //
241
- // Methods:
242
- // (0) virtual bool Next(RPC::Environment&) = 0
243
- // (1) virtual bool Previous(RPC::Environment&) = 0
244
- // (2) virtual void Reset(const uint32_t) = 0
245
- // (3) virtual bool IsValid() const = 0
246
- // (4) virtual uint32_t Count() const = 0
247
- // (5) virtual RPC::Environment Current() const = 0
248
- //
249
-
250
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods[] = {
251
- // (0) virtual bool Next(RPC::Environment&) = 0
252
- //
253
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
254
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
255
-
256
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
257
- ASSERT(implementation != nullptr);
258
-
259
- RPC::Environment _info{};
260
-
261
- bool result = implementation->Next(_info);
262
-
263
- RPC::Data::Frame::Writer writer(message->Response().Writer());
264
- writer.Boolean(result);
265
- writer.Text(_info.Key);
266
- writer.Text(_info.Value);
267
- writer.Number<RPC::Environment::scope>(_info.Scope);
268
- },
269
-
270
- // (1) virtual bool Previous(RPC::Environment&) = 0
271
- //
272
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
273
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
274
-
275
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
276
- ASSERT(implementation != nullptr);
277
-
278
- RPC::Environment _info{};
279
-
280
- bool result = implementation->Previous(_info);
281
-
282
- RPC::Data::Frame::Writer writer(message->Response().Writer());
283
- writer.Boolean(result);
284
- writer.Text(_info.Key);
285
- writer.Text(_info.Value);
286
- writer.Number<RPC::Environment::scope>(_info.Scope);
287
- },
288
-
289
- // (2) virtual void Reset(const uint32_t) = 0
290
- //
291
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
292
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
293
-
294
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
295
- ASSERT(implementation != nullptr);
296
-
297
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
298
- const uint32_t _position = reader.Number<uint32_t>();
299
-
300
- implementation->Reset(_position);
301
- },
302
-
303
- // (3) virtual bool IsValid() const = 0
304
- //
305
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
306
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
307
-
308
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
309
- ASSERT(implementation != nullptr);
310
-
311
- bool result = implementation->IsValid();
312
-
313
- RPC::Data::Frame::Writer writer(message->Response().Writer());
314
- writer.Boolean(result);
315
- },
316
-
317
- // (4) virtual uint32_t Count() const = 0
318
- //
319
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
320
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
321
-
322
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
323
- ASSERT(implementation != nullptr);
324
-
325
- uint32_t result = implementation->Count();
326
-
327
- RPC::Data::Frame::Writer writer(message->Response().Writer());
328
- writer.Number<uint32_t>(result);
329
- },
330
-
331
- // (5) virtual RPC::Environment Current() const = 0
332
- //
333
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
334
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
335
-
336
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
337
- ASSERT(implementation != nullptr);
338
-
339
- RPC::Environment result = implementation->Current();
340
-
341
- RPC::Data::Frame::Writer writer(message->Response().Writer());
342
- writer.Text(result.Key);
343
- writer.Text(result.Value);
344
- writer.Number<RPC::Environment::scope>(result.Scope);
345
- }
346
- , nullptr
347
- }; // RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods
348
-
349
- //
350
132
  // Exchange::ITextToSpeech interface stub definitions
351
133
  //
352
134
  // Methods:
353
135
  // (0) virtual void Register(Exchange::ITextToSpeech::INotification*) = 0
354
136
  // (1) virtual void Unregister(Exchange::ITextToSpeech::INotification*) = 0
@@ -925,252 +707,10 @@
925
707
  }
926
708
 
927
709
  }; // class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy
928
710
 
929
711
  //
930
- // RPC::IIteratorTypeInstance_60eba5a793c685ea interface proxy definitions
931
- //
932
- // Methods:
933
- // (0) virtual bool Next(uint32_t&) = 0
934
- // (1) virtual bool Previous(uint32_t&) = 0
935
- // (2) virtual void Reset(const uint32_t) = 0
936
- // (3) virtual bool IsValid() const = 0
937
- // (4) virtual uint32_t Count() const = 0
938
- // (5) virtual uint32_t Current() const = 0
939
- //
940
-
941
- class RPCIteratorTypeInstance_60eba5a793c685eaProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>> {
942
- public:
943
- RPCIteratorTypeInstance_60eba5a793c685eaProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
944
- : BaseClass(channel, implementation, otherSideInformed)
945
- {
946
- }
947
-
948
- bool Next(uint32_t& _info) override
949
- {
950
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
951
-
952
- bool result{};
953
-
954
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
955
- if (hresult == Core::ERROR_NONE) {
956
- RPC::Data::Frame::Reader reader(message->Response().Reader());
957
- result = reader.Boolean();
958
- _info = reader.Number<uint32_t>();
959
- } else {
960
- ASSERT((hresult & COM_ERROR) != 0);
961
- }
962
-
963
- return (result);
964
- }
965
-
966
- bool Previous(uint32_t& _info) override
967
- {
968
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
969
-
970
- bool result{};
971
-
972
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
973
- if (hresult == Core::ERROR_NONE) {
974
- RPC::Data::Frame::Reader reader(message->Response().Reader());
975
- result = reader.Boolean();
976
- _info = reader.Number<uint32_t>();
977
- } else {
978
- ASSERT((hresult & COM_ERROR) != 0);
979
- }
980
-
981
- return (result);
982
- }
983
-
984
- void Reset(const uint32_t _position) override
985
- {
986
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
987
-
988
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
989
- writer.Number<uint32_t>(_position);
990
-
991
- static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
992
- }
993
-
994
- bool IsValid() const override
995
- {
996
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
997
-
998
- bool result{};
999
-
1000
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1001
- if (hresult == Core::ERROR_NONE) {
1002
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1003
- result = reader.Boolean();
1004
- } else {
1005
- ASSERT((hresult & COM_ERROR) != 0);
1006
- }
1007
-
1008
- return (result);
1009
- }
1010
-
1011
- uint32_t Count() const override
1012
- {
1013
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
1014
-
1015
- uint32_t result{};
1016
-
1017
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1018
- if (hresult == Core::ERROR_NONE) {
1019
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1020
- result = reader.Number<uint32_t>();
1021
- } else {
1022
- ASSERT((hresult & COM_ERROR) != 0);
1023
- }
1024
-
1025
- return (result);
1026
- }
1027
-
1028
- uint32_t Current() const override
1029
- {
1030
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1031
-
1032
- uint32_t result{};
1033
-
1034
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1035
- if (hresult == Core::ERROR_NONE) {
1036
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1037
- result = reader.Number<uint32_t>();
1038
- } else {
1039
- ASSERT((hresult & COM_ERROR) != 0);
1040
- }
1041
-
1042
- return (result);
1043
- }
1044
-
1045
- }; // class RPCIteratorTypeInstance_60eba5a793c685eaProxy
1046
-
1047
- //
1048
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface proxy definitions
1049
- //
1050
- // Methods:
1051
- // (0) virtual bool Next(RPC::Environment&) = 0
1052
- // (1) virtual bool Previous(RPC::Environment&) = 0
1053
- // (2) virtual void Reset(const uint32_t) = 0
1054
- // (3) virtual bool IsValid() const = 0
1055
- // (4) virtual uint32_t Count() const = 0
1056
- // (5) virtual RPC::Environment Current() const = 0
1057
- //
1058
-
1059
- class RPCIteratorTypeInstance_195e88cf7f955a2eProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>> {
1060
- public:
1061
- RPCIteratorTypeInstance_195e88cf7f955a2eProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
1062
- : BaseClass(channel, implementation, otherSideInformed)
1063
- {
1064
- }
1065
-
1066
- bool Next(RPC::Environment& _info) override
1067
- {
1068
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
1069
-
1070
- bool result{};
1071
-
1072
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1073
- if (hresult == Core::ERROR_NONE) {
1074
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1075
- result = reader.Boolean();
1076
- _info.Key = reader.Text();
1077
- _info.Value = reader.Text();
1078
- _info.Scope = reader.Number<RPC::Environment::scope>();
1079
- } else {
1080
- ASSERT((hresult & COM_ERROR) != 0);
1081
- }
1082
-
1083
- return (result);
1084
- }
1085
-
1086
- bool Previous(RPC::Environment& _info) override
1087
- {
1088
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
1089
-
1090
- bool result{};
1091
-
1092
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1093
- if (hresult == Core::ERROR_NONE) {
1094
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1095
- result = reader.Boolean();
1096
- _info.Key = reader.Text();
1097
- _info.Value = reader.Text();
1098
- _info.Scope = reader.Number<RPC::Environment::scope>();
1099
- } else {
1100
- ASSERT((hresult & COM_ERROR) != 0);
1101
- }
1102
-
1103
- return (result);
1104
- }
1105
-
1106
- void Reset(const uint32_t _position) override
1107
- {
1108
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
1109
-
1110
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
1111
- writer.Number<uint32_t>(_position);
1112
-
1113
- static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1114
- }
1115
-
1116
- bool IsValid() const override
1117
- {
1118
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
1119
-
1120
- bool result{};
1121
-
1122
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1123
- if (hresult == Core::ERROR_NONE) {
1124
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1125
- result = reader.Boolean();
1126
- } else {
1127
- ASSERT((hresult & COM_ERROR) != 0);
1128
- }
1129
-
1130
- return (result);
1131
- }
1132
-
1133
- uint32_t Count() const override
1134
- {
1135
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
1136
-
1137
- uint32_t result{};
1138
-
1139
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1140
- if (hresult == Core::ERROR_NONE) {
1141
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1142
- result = reader.Number<uint32_t>();
1143
- } else {
1144
- ASSERT((hresult & COM_ERROR) != 0);
1145
- }
1146
-
1147
- return (result);
1148
- }
1149
-
1150
- RPC::Environment Current() const override
1151
- {
1152
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1153
-
1154
- RPC::Environment result{};
1155
-
1156
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1157
- if (hresult == Core::ERROR_NONE) {
1158
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1159
- result.Key = reader.Text();
1160
- result.Value = reader.Text();
1161
- result.Scope = reader.Number<RPC::Environment::scope>();
1162
- } else {
1163
- ASSERT((hresult & COM_ERROR) != 0);
1164
- }
1165
-
1166
- return (result);
1167
- }
1168
-
1169
- }; // class RPCIteratorTypeInstance_195e88cf7f955a2eProxy
1170
-
1171
- //
1172
712
  // Exchange::ITextToSpeech interface proxy definitions
1173
713
  //
1174
714
  // Methods:
1175
715
  // (0) virtual void Register(Exchange::ITextToSpeech::INotification*) = 0
1176
716
  // (1) virtual void Unregister(Exchange::ITextToSpeech::INotification*) = 0
@@ -1682,30 +1222,24 @@
1682
1222
  // REGISTRATION
1683
1223
  // -----------------------------------------------------------------
1684
1224
  namespace {
1685
1225
 
1686
1226
  typedef ProxyStub::UnknownStubType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods> RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub;
1687
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaStubMethods> RPCIteratorTypeInstance_60eba5a793c685eaStub;
1688
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods> RPCIteratorTypeInstance_195e88cf7f955a2eStub;
1689
1227
  typedef ProxyStub::UnknownStubType<Exchange::ITextToSpeech, ExchangeTextToSpeechStubMethods> ExchangeTextToSpeechStub;
1690
1228
  typedef ProxyStub::UnknownStubType<Exchange::ITextToSpeech::INotification, ExchangeTextToSpeechNotificationStubMethods> ExchangeTextToSpeechNotificationStub;
1691
1229
 
1692
1230
  static class Instantiation {
1693
1231
  public:
1694
1232
  Instantiation()
1695
1233
  {
1696
1234
  RPC::Administrator::Instance().Announce<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy, RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub>();
1697
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaProxy, RPCIteratorTypeInstance_60eba5a793c685eaStub>();
1698
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eProxy, RPCIteratorTypeInstance_195e88cf7f955a2eStub>();
1699
1235
  RPC::Administrator::Instance().Announce<Exchange::ITextToSpeech, ExchangeTextToSpeechProxy, ExchangeTextToSpeechStub>();
1700
1236
  RPC::Administrator::Instance().Announce<Exchange::ITextToSpeech::INotification, ExchangeTextToSpeechNotificationProxy, ExchangeTextToSpeechNotificationStub>();
1701
1237
  }
1702
1238
  ~Instantiation()
1703
1239
  {
1704
1240
  RPC::Administrator::Instance().Recall<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>>();
1705
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>>();
1706
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>>();
1707
1241
  RPC::Administrator::Instance().Recall<Exchange::ITextToSpeech>();
1708
1242
  RPC::Administrator::Instance().Recall<Exchange::ITextToSpeech::INotification>();
1709
1243
  }
1710
1244
  } ProxyStubRegistration;
1711
1245
 
{baseline → generated}/Debug/ThunderInterfaces/interfaces/generated/ProxyStubs_ValuePoint.cpp RENAMED
@@ -1,12 +1,10 @@
1
1
  //
2
2
  // generated automatically from "IValuePoint.h"
3
3
  //
4
4
  // implements COM-RPC proxy stubs for:
5
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = RPC::ID_STRINGITERATOR] [[iterator]]
6
5
  // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = uint32_t, INTERFACE_ID = RPC::ID_VALUEITERATOR] [[iterator]]
7
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = RPC::Environment, INTERFACE_ID = RPC::ID_ENVIRONMENTITERATOR] [[iterator]]
8
6
  // - class Exchange::IValuePoint
9
7
  // - class Exchange::IValuePoint::ICatalog
10
8
  // - class Exchange::IValuePoint::ICatalog::INotification
11
9
  // - class Exchange::IValuePoint::INotification
12
10
  //
@@ -26,115 +24,10 @@
26
24
  // -----------------------------------------------------------------
27
25
  // STUBS
28
26
  // -----------------------------------------------------------------
29
27
 
30
28
  //
31
- // RPC::IIteratorTypeInstance_bd6e04b8d151c1f7 interface stub definitions
32
- //
33
- // Methods:
34
- // (0) virtual bool Next(string&) = 0
35
- // (1) virtual bool Previous(string&) = 0
36
- // (2) virtual void Reset(const uint32_t) = 0
37
- // (3) virtual bool IsValid() const = 0
38
- // (4) virtual uint32_t Count() const = 0
39
- // (5) virtual string Current() const = 0
40
- //
41
-
42
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods[] = {
43
- // (0) virtual bool Next(string&) = 0
44
- //
45
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
46
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
47
-
48
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
49
- ASSERT(implementation != nullptr);
50
-
51
- string _info{};
52
-
53
- bool result = implementation->Next(_info);
54
-
55
- RPC::Data::Frame::Writer writer(message->Response().Writer());
56
- writer.Boolean(result);
57
- writer.Text(_info);
58
- },
59
-
60
- // (1) virtual bool Previous(string&) = 0
61
- //
62
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
63
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
64
-
65
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
66
- ASSERT(implementation != nullptr);
67
-
68
- string _info{};
69
-
70
- bool result = implementation->Previous(_info);
71
-
72
- RPC::Data::Frame::Writer writer(message->Response().Writer());
73
- writer.Boolean(result);
74
- writer.Text(_info);
75
- },
76
-
77
- // (2) virtual void Reset(const uint32_t) = 0
78
- //
79
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
80
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
81
-
82
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
83
- ASSERT(implementation != nullptr);
84
-
85
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
86
- const uint32_t _position = reader.Number<uint32_t>();
87
-
88
- implementation->Reset(_position);
89
- },
90
-
91
- // (3) virtual bool IsValid() const = 0
92
- //
93
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
94
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
95
-
96
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
97
- ASSERT(implementation != nullptr);
98
-
99
- bool result = implementation->IsValid();
100
-
101
- RPC::Data::Frame::Writer writer(message->Response().Writer());
102
- writer.Boolean(result);
103
- },
104
-
105
- // (4) virtual uint32_t Count() const = 0
106
- //
107
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
108
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
109
-
110
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
111
- ASSERT(implementation != nullptr);
112
-
113
- uint32_t result = implementation->Count();
114
-
115
- RPC::Data::Frame::Writer writer(message->Response().Writer());
116
- writer.Number<uint32_t>(result);
117
- },
118
-
119
- // (5) virtual string Current() const = 0
120
- //
121
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
122
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
123
-
124
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
125
- ASSERT(implementation != nullptr);
126
-
127
- string result = implementation->Current();
128
-
129
- RPC::Data::Frame::Writer writer(message->Response().Writer());
130
- writer.Text(result);
131
- }
132
- , nullptr
133
- }; // RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods
134
-
135
- //
136
29
  // RPC::IIteratorTypeInstance_60eba5a793c685ea interface stub definitions
137
30
  //
138
31
  // Methods:
139
32
  // (0) virtual bool Next(uint32_t&) = 0
140
33
  // (1) virtual bool Previous(uint32_t&) = 0
@@ -236,121 +129,10 @@
236
129
  }
237
130
  , nullptr
238
131
  }; // RPCIteratorTypeInstance_60eba5a793c685eaStubMethods
239
132
 
240
133
  //
241
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface stub definitions
242
- //
243
- // Methods:
244
- // (0) virtual bool Next(RPC::Environment&) = 0
245
- // (1) virtual bool Previous(RPC::Environment&) = 0
246
- // (2) virtual void Reset(const uint32_t) = 0
247
- // (3) virtual bool IsValid() const = 0
248
- // (4) virtual uint32_t Count() const = 0
249
- // (5) virtual RPC::Environment Current() const = 0
250
- //
251
-
252
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods[] = {
253
- // (0) virtual bool Next(RPC::Environment&) = 0
254
- //
255
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
256
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
257
-
258
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
259
- ASSERT(implementation != nullptr);
260
-
261
- RPC::Environment _info{};
262
-
263
- bool result = implementation->Next(_info);
264
-
265
- RPC::Data::Frame::Writer writer(message->Response().Writer());
266
- writer.Boolean(result);
267
- writer.Text(_info.Key);
268
- writer.Text(_info.Value);
269
- writer.Number<RPC::Environment::scope>(_info.Scope);
270
- },
271
-
272
- // (1) virtual bool Previous(RPC::Environment&) = 0
273
- //
274
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
275
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
276
-
277
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
278
- ASSERT(implementation != nullptr);
279
-
280
- RPC::Environment _info{};
281
-
282
- bool result = implementation->Previous(_info);
283
-
284
- RPC::Data::Frame::Writer writer(message->Response().Writer());
285
- writer.Boolean(result);
286
- writer.Text(_info.Key);
287
- writer.Text(_info.Value);
288
- writer.Number<RPC::Environment::scope>(_info.Scope);
289
- },
290
-
291
- // (2) virtual void Reset(const uint32_t) = 0
292
- //
293
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
294
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
295
-
296
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
297
- ASSERT(implementation != nullptr);
298
-
299
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
300
- const uint32_t _position = reader.Number<uint32_t>();
301
-
302
- implementation->Reset(_position);
303
- },
304
-
305
- // (3) virtual bool IsValid() const = 0
306
- //
307
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
308
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
309
-
310
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
311
- ASSERT(implementation != nullptr);
312
-
313
- bool result = implementation->IsValid();
314
-
315
- RPC::Data::Frame::Writer writer(message->Response().Writer());
316
- writer.Boolean(result);
317
- },
318
-
319
- // (4) virtual uint32_t Count() const = 0
320
- //
321
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
322
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
323
-
324
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
325
- ASSERT(implementation != nullptr);
326
-
327
- uint32_t result = implementation->Count();
328
-
329
- RPC::Data::Frame::Writer writer(message->Response().Writer());
330
- writer.Number<uint32_t>(result);
331
- },
332
-
333
- // (5) virtual RPC::Environment Current() const = 0
334
- //
335
- [](Core::ProxyType<Core::IPCChannel>& /* channel */, Core::ProxyType<RPC::InvokeMessage>& message) {
336
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
337
-
338
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
339
- ASSERT(implementation != nullptr);
340
-
341
- RPC::Environment result = implementation->Current();
342
-
343
- RPC::Data::Frame::Writer writer(message->Response().Writer());
344
- writer.Text(result.Key);
345
- writer.Text(result.Value);
346
- writer.Number<RPC::Environment::scope>(result.Scope);
347
- }
348
- , nullptr
349
- }; // RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods
350
-
351
- //
352
134
  // Exchange::IValuePoint interface stub definitions
353
135
  //
354
136
  // Methods:
355
137
  // (0) virtual Core::hresult Register(Exchange::IValuePoint::INotification* const) = 0
356
138
  // (1) virtual Core::hresult Unregister(const Exchange::IValuePoint::INotification*) = 0
@@ -775,128 +557,10 @@
775
557
  // -----------------------------------------------------------------
776
558
  // PROXIES
777
559
  // -----------------------------------------------------------------
778
560
 
779
561
  //
780
- // RPC::IIteratorTypeInstance_bd6e04b8d151c1f7 interface proxy definitions
781
- //
782
- // Methods:
783
- // (0) virtual bool Next(string&) = 0
784
- // (1) virtual bool Previous(string&) = 0
785
- // (2) virtual void Reset(const uint32_t) = 0
786
- // (3) virtual bool IsValid() const = 0
787
- // (4) virtual uint32_t Count() const = 0
788
- // (5) virtual string Current() const = 0
789
- //
790
-
791
- class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>> {
792
- public:
793
- RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
794
- : BaseClass(channel, implementation, otherSideInformed)
795
- {
796
- }
797
-
798
- bool Next(string& _info) override
799
- {
800
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
801
-
802
- bool result{};
803
-
804
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
805
- if (hresult == Core::ERROR_NONE) {
806
- RPC::Data::Frame::Reader reader(message->Response().Reader());
807
- result = reader.Boolean();
808
- _info = reader.Text();
809
- } else {
810
- ASSERT((hresult & COM_ERROR) != 0);
811
- }
812
-
813
- return (result);
814
- }
815
-
816
- bool Previous(string& _info) override
817
- {
818
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
819
-
820
- bool result{};
821
-
822
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
823
- if (hresult == Core::ERROR_NONE) {
824
- RPC::Data::Frame::Reader reader(message->Response().Reader());
825
- result = reader.Boolean();
826
- _info = reader.Text();
827
- } else {
828
- ASSERT((hresult & COM_ERROR) != 0);
829
- }
830
-
831
- return (result);
832
- }
833
-
834
- void Reset(const uint32_t _position) override
835
- {
836
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
837
-
838
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
839
- writer.Number<uint32_t>(_position);
840
-
841
- static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
842
- }
843
-
844
- bool IsValid() const override
845
- {
846
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
847
-
848
- bool result{};
849
-
850
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
851
- if (hresult == Core::ERROR_NONE) {
852
- RPC::Data::Frame::Reader reader(message->Response().Reader());
853
- result = reader.Boolean();
854
- } else {
855
- ASSERT((hresult & COM_ERROR) != 0);
856
- }
857
-
858
- return (result);
859
- }
860
-
861
- uint32_t Count() const override
862
- {
863
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
864
-
865
- uint32_t result{};
866
-
867
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
868
- if (hresult == Core::ERROR_NONE) {
869
- RPC::Data::Frame::Reader reader(message->Response().Reader());
870
- result = reader.Number<uint32_t>();
871
- } else {
872
- ASSERT((hresult & COM_ERROR) != 0);
873
- }
874
-
875
- return (result);
876
- }
877
-
878
- string Current() const override
879
- {
880
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
881
-
882
- string result{};
883
-
884
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
885
- if (hresult == Core::ERROR_NONE) {
886
- RPC::Data::Frame::Reader reader(message->Response().Reader());
887
- result = reader.Text();
888
- } else {
889
- ASSERT((hresult & COM_ERROR) != 0);
890
- }
891
-
892
- return (result);
893
- }
894
-
895
- }; // class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy
896
-
897
- //
898
562
  // RPC::IIteratorTypeInstance_60eba5a793c685ea interface proxy definitions
899
563
  //
900
564
  // Methods:
901
565
  // (0) virtual bool Next(uint32_t&) = 0
902
566
  // (1) virtual bool Previous(uint32_t&) = 0
@@ -1011,134 +675,10 @@
1011
675
  }
1012
676
 
1013
677
  }; // class RPCIteratorTypeInstance_60eba5a793c685eaProxy
1014
678
 
1015
679
  //
1016
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface proxy definitions
1017
- //
1018
- // Methods:
1019
- // (0) virtual bool Next(RPC::Environment&) = 0
1020
- // (1) virtual bool Previous(RPC::Environment&) = 0
1021
- // (2) virtual void Reset(const uint32_t) = 0
1022
- // (3) virtual bool IsValid() const = 0
1023
- // (4) virtual uint32_t Count() const = 0
1024
- // (5) virtual RPC::Environment Current() const = 0
1025
- //
1026
-
1027
- class RPCIteratorTypeInstance_195e88cf7f955a2eProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>> {
1028
- public:
1029
- RPCIteratorTypeInstance_195e88cf7f955a2eProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
1030
- : BaseClass(channel, implementation, otherSideInformed)
1031
- {
1032
- }
1033
-
1034
- bool Next(RPC::Environment& _info) override
1035
- {
1036
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
1037
-
1038
- bool result{};
1039
-
1040
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1041
- if (hresult == Core::ERROR_NONE) {
1042
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1043
- result = reader.Boolean();
1044
- _info.Key = reader.Text();
1045
- _info.Value = reader.Text();
1046
- _info.Scope = reader.Number<RPC::Environment::scope>();
1047
- } else {
1048
- ASSERT((hresult & COM_ERROR) != 0);
1049
- }
1050
-
1051
- return (result);
1052
- }
1053
-
1054
- bool Previous(RPC::Environment& _info) override
1055
- {
1056
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
1057
-
1058
- bool result{};
1059
-
1060
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1061
- if (hresult == Core::ERROR_NONE) {
1062
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1063
- result = reader.Boolean();
1064
- _info.Key = reader.Text();
1065
- _info.Value = reader.Text();
1066
- _info.Scope = reader.Number<RPC::Environment::scope>();
1067
- } else {
1068
- ASSERT((hresult & COM_ERROR) != 0);
1069
- }
1070
-
1071
- return (result);
1072
- }
1073
-
1074
- void Reset(const uint32_t _position) override
1075
- {
1076
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
1077
-
1078
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
1079
- writer.Number<uint32_t>(_position);
1080
-
1081
- static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1082
- }
1083
-
1084
- bool IsValid() const override
1085
- {
1086
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
1087
-
1088
- bool result{};
1089
-
1090
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1091
- if (hresult == Core::ERROR_NONE) {
1092
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1093
- result = reader.Boolean();
1094
- } else {
1095
- ASSERT((hresult & COM_ERROR) != 0);
1096
- }
1097
-
1098
- return (result);
1099
- }
1100
-
1101
- uint32_t Count() const override
1102
- {
1103
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
1104
-
1105
- uint32_t result{};
1106
-
1107
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1108
- if (hresult == Core::ERROR_NONE) {
1109
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1110
- result = reader.Number<uint32_t>();
1111
- } else {
1112
- ASSERT((hresult & COM_ERROR) != 0);
1113
- }
1114
-
1115
- return (result);
1116
- }
1117
-
1118
- RPC::Environment Current() const override
1119
- {
1120
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1121
-
1122
- RPC::Environment result{};
1123
-
1124
- const Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1125
- if (hresult == Core::ERROR_NONE) {
1126
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1127
- result.Key = reader.Text();
1128
- result.Value = reader.Text();
1129
- result.Scope = reader.Number<RPC::Environment::scope>();
1130
- } else {
1131
- ASSERT((hresult & COM_ERROR) != 0);
1132
- }
1133
-
1134
- return (result);
1135
- }
1136
-
1137
- }; // class RPCIteratorTypeInstance_195e88cf7f955a2eProxy
1138
-
1139
- //
1140
680
  // Exchange::IValuePoint interface proxy definitions
1141
681
  //
1142
682
  // Methods:
1143
683
  // (0) virtual Core::hresult Register(Exchange::IValuePoint::INotification* const) = 0
1144
684
  // (1) virtual Core::hresult Unregister(const Exchange::IValuePoint::INotification*) = 0
@@ -1620,35 +1160,29 @@
1620
1160
  // -----------------------------------------------------------------
1621
1161
  // REGISTRATION
1622
1162
  // -----------------------------------------------------------------
1623
1163
  namespace {
1624
1164
 
1625
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods> RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub;
1626
1165
  typedef ProxyStub::UnknownStubType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaStubMethods> RPCIteratorTypeInstance_60eba5a793c685eaStub;
1627
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods> RPCIteratorTypeInstance_195e88cf7f955a2eStub;
1628
1166
  typedef ProxyStub::UnknownStubType<Exchange::IValuePoint, ExchangeValuePointStubMethods> ExchangeValuePointStub;
1629
1167
  typedef ProxyStub::UnknownStubType<Exchange::IValuePoint::ICatalog, ExchangeValuePointCatalogStubMethods> ExchangeValuePointCatalogStub;
1630
1168
  typedef ProxyStub::UnknownStubType<Exchange::IValuePoint::ICatalog::INotification, ExchangeValuePointCatalogNotificationStubMethods> ExchangeValuePointCatalogNotificationStub;
1631
1169
  typedef ProxyStub::UnknownStubType<Exchange::IValuePoint::INotification, ExchangeValuePointNotificationStubMethods> ExchangeValuePointNotificationStub;
1632
1170
 
1633
1171
  static class Instantiation {
1634
1172
  public:
1635
1173
  Instantiation()
1636
1174
  {
1637
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy, RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub>();
1638
1175
  RPC::Administrator::Instance().Announce<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaProxy, RPCIteratorTypeInstance_60eba5a793c685eaStub>();
1639
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eProxy, RPCIteratorTypeInstance_195e88cf7f955a2eStub>();
1640
1176
  RPC::Administrator::Instance().Announce<Exchange::IValuePoint, ExchangeValuePointProxy, ExchangeValuePointStub>();
1641
1177
  RPC::Administrator::Instance().Announce<Exchange::IValuePoint::ICatalog, ExchangeValuePointCatalogProxy, ExchangeValuePointCatalogStub>();
1642
1178
  RPC::Administrator::Instance().Announce<Exchange::IValuePoint::ICatalog::INotification, ExchangeValuePointCatalogNotificationProxy, ExchangeValuePointCatalogNotificationStub>();
1643
1179
  RPC::Administrator::Instance().Announce<Exchange::IValuePoint::INotification, ExchangeValuePointNotificationProxy, ExchangeValuePointNotificationStub>();
1644
1180
  }
1645
1181
  ~Instantiation()
1646
1182
  {
1647
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>>();
1648
1183
  RPC::Administrator::Instance().Recall<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>>();
1649
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>>();
1650
1184
  RPC::Administrator::Instance().Recall<Exchange::IValuePoint>();
1651
1185
  RPC::Administrator::Instance().Recall<Exchange::IValuePoint::ICatalog>();
1652
1186
  RPC::Administrator::Instance().Recall<Exchange::IValuePoint::ICatalog::INotification>();
1653
1187
  RPC::Administrator::Instance().Recall<Exchange::IValuePoint::INotification>();
1654
1188
  }
{baseline → generated}/Release/Thunder/Source/com/generated/ProxyStubs_COM.cpp RENAMED
@@ -1,12 +1,9 @@
1
1
  //
2
2
  // generated automatically from "ICOM.h"
3
3
  //
4
4
  // implements COM-RPC proxy stubs for:
5
- // - class IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = ID_STRINGITERATOR] [[iterator]]
6
- // - class IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = uint32_t, INTERFACE_ID = ID_VALUEITERATOR] [[iterator]]
7
- // - class IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = Environment, INTERFACE_ID = ID_ENVIRONMENTITERATOR] [[iterator]]
8
5
  // - class IRemoteConnection
9
6
  // - class IRemoteConnection::INotification
10
7
  //
11
8
  // secure code enabled:
12
9
  // - instance verification enabled
@@ -31,586 +28,10 @@
31
28
  // -----------------------------------------------------------------
32
29
  // STUBS
33
30
  // -----------------------------------------------------------------
34
31
 
35
32
  //
36
- // IIteratorTypeInstance_bd6e04b8d151c1f7 interface stub definitions
37
- //
38
- // Methods:
39
- // (0) virtual bool Next(string&) = 0
40
- // (1) virtual bool Previous(string&) = 0
41
- // (2) virtual void Reset(const uint32_t) = 0
42
- // (3) virtual bool IsValid() const = 0
43
- // (4) virtual uint32_t Count() const = 0
44
- // (5) virtual string Current() const = 0
45
- //
46
-
47
- static ProxyStub::MethodHandler IteratorTypeInstance_bd6e04b8d151c1f7StubMethods[] = {
48
- // (0) virtual bool Next(string&) = 0
49
- //
50
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
51
- Core::hresult hresult = Core::ERROR_NONE;
52
-
53
- hresult = [&]() -> Core::hresult {
54
- using interface = IIteratorType<string, ID_STRINGITERATOR>;
55
-
56
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
57
-
58
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
59
- ASSERT(implementation != nullptr);
60
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
61
-
62
- string _info{};
63
-
64
- bool result = implementation->Next(_info);
65
-
66
- RPC::Data::Frame::Writer writer(message->Response().Writer());
67
- writer.Boolean(result);
68
- writer.Text(_info);
69
-
70
- return (Core::ERROR_NONE);
71
- } ();
72
-
73
- if (hresult != Core::ERROR_NONE) {
74
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", IIteratorType<string, ID_STRINGITERATOR>::ID, 0, hresult);
75
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
76
- }
77
- },
78
-
79
- // (1) virtual bool Previous(string&) = 0
80
- //
81
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
82
- Core::hresult hresult = Core::ERROR_NONE;
83
-
84
- hresult = [&]() -> Core::hresult {
85
- using interface = IIteratorType<string, ID_STRINGITERATOR>;
86
-
87
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
88
-
89
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
90
- ASSERT(implementation != nullptr);
91
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
92
-
93
- string _info{};
94
-
95
- bool result = implementation->Previous(_info);
96
-
97
- RPC::Data::Frame::Writer writer(message->Response().Writer());
98
- writer.Boolean(result);
99
- writer.Text(_info);
100
-
101
- return (Core::ERROR_NONE);
102
- } ();
103
-
104
- if (hresult != Core::ERROR_NONE) {
105
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", IIteratorType<string, ID_STRINGITERATOR>::ID, 1, hresult);
106
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
107
- }
108
- },
109
-
110
- // (2) virtual void Reset(const uint32_t) = 0
111
- //
112
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
113
- Core::hresult hresult = Core::ERROR_NONE;
114
-
115
- hresult = [&]() -> Core::hresult {
116
- using interface = IIteratorType<string, ID_STRINGITERATOR>;
117
-
118
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
119
-
120
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
121
- ASSERT(implementation != nullptr);
122
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
123
-
124
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
125
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
126
- const uint32_t _position = reader.Number<uint32_t>();
127
-
128
- implementation->Reset(_position);
129
-
130
- return (Core::ERROR_NONE);
131
- } ();
132
-
133
- if (hresult != Core::ERROR_NONE) {
134
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", IIteratorType<string, ID_STRINGITERATOR>::ID, 2, hresult);
135
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
136
- }
137
- },
138
-
139
- // (3) virtual bool IsValid() const = 0
140
- //
141
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
142
- Core::hresult hresult = Core::ERROR_NONE;
143
-
144
- hresult = [&]() -> Core::hresult {
145
- using interface = IIteratorType<string, ID_STRINGITERATOR>;
146
-
147
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
148
-
149
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
150
- ASSERT(implementation != nullptr);
151
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
152
-
153
- bool result = implementation->IsValid();
154
-
155
- RPC::Data::Frame::Writer writer(message->Response().Writer());
156
- writer.Boolean(result);
157
-
158
- return (Core::ERROR_NONE);
159
- } ();
160
-
161
- if (hresult != Core::ERROR_NONE) {
162
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", IIteratorType<string, ID_STRINGITERATOR>::ID, 3, hresult);
163
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
164
- }
165
- },
166
-
167
- // (4) virtual uint32_t Count() const = 0
168
- //
169
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
170
- Core::hresult hresult = Core::ERROR_NONE;
171
-
172
- hresult = [&]() -> Core::hresult {
173
- using interface = IIteratorType<string, ID_STRINGITERATOR>;
174
-
175
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
176
-
177
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
178
- ASSERT(implementation != nullptr);
179
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
180
-
181
- uint32_t result = implementation->Count();
182
-
183
- RPC::Data::Frame::Writer writer(message->Response().Writer());
184
- writer.Number<uint32_t>(result);
185
-
186
- return (Core::ERROR_NONE);
187
- } ();
188
-
189
- if (hresult != Core::ERROR_NONE) {
190
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", IIteratorType<string, ID_STRINGITERATOR>::ID, 4, hresult);
191
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
192
- }
193
- },
194
-
195
- // (5) virtual string Current() const = 0
196
- //
197
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
198
- Core::hresult hresult = Core::ERROR_NONE;
199
-
200
- hresult = [&]() -> Core::hresult {
201
- using interface = IIteratorType<string, ID_STRINGITERATOR>;
202
-
203
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
204
-
205
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
206
- ASSERT(implementation != nullptr);
207
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
208
-
209
- string result = implementation->Current();
210
-
211
- RPC::Data::Frame::Writer writer(message->Response().Writer());
212
- writer.Text(result);
213
-
214
- return (Core::ERROR_NONE);
215
- } ();
216
-
217
- if (hresult != Core::ERROR_NONE) {
218
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", IIteratorType<string, ID_STRINGITERATOR>::ID, 5, hresult);
219
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
220
- }
221
- }
222
- , nullptr
223
- }; // IteratorTypeInstance_bd6e04b8d151c1f7StubMethods
224
-
225
- //
226
- // IIteratorTypeInstance_60eba5a793c685ea interface stub definitions
227
- //
228
- // Methods:
229
- // (0) virtual bool Next(uint32_t&) = 0
230
- // (1) virtual bool Previous(uint32_t&) = 0
231
- // (2) virtual void Reset(const uint32_t) = 0
232
- // (3) virtual bool IsValid() const = 0
233
- // (4) virtual uint32_t Count() const = 0
234
- // (5) virtual uint32_t Current() const = 0
235
- //
236
-
237
- static ProxyStub::MethodHandler IteratorTypeInstance_60eba5a793c685eaStubMethods[] = {
238
- // (0) virtual bool Next(uint32_t&) = 0
239
- //
240
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
241
- Core::hresult hresult = Core::ERROR_NONE;
242
-
243
- hresult = [&]() -> Core::hresult {
244
- using interface = IIteratorType<uint32_t, ID_VALUEITERATOR>;
245
-
246
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
247
-
248
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
249
- ASSERT(implementation != nullptr);
250
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
251
-
252
- uint32_t _info{};
253
-
254
- bool result = implementation->Next(_info);
255
-
256
- RPC::Data::Frame::Writer writer(message->Response().Writer());
257
- writer.Boolean(result);
258
- writer.Number<uint32_t>(_info);
259
-
260
- return (Core::ERROR_NONE);
261
- } ();
262
-
263
- if (hresult != Core::ERROR_NONE) {
264
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", IIteratorType<uint32_t, ID_VALUEITERATOR>::ID, 0, hresult);
265
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
266
- }
267
- },
268
-
269
- // (1) virtual bool Previous(uint32_t&) = 0
270
- //
271
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
272
- Core::hresult hresult = Core::ERROR_NONE;
273
-
274
- hresult = [&]() -> Core::hresult {
275
- using interface = IIteratorType<uint32_t, ID_VALUEITERATOR>;
276
-
277
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
278
-
279
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
280
- ASSERT(implementation != nullptr);
281
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
282
-
283
- uint32_t _info{};
284
-
285
- bool result = implementation->Previous(_info);
286
-
287
- RPC::Data::Frame::Writer writer(message->Response().Writer());
288
- writer.Boolean(result);
289
- writer.Number<uint32_t>(_info);
290
-
291
- return (Core::ERROR_NONE);
292
- } ();
293
-
294
- if (hresult != Core::ERROR_NONE) {
295
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", IIteratorType<uint32_t, ID_VALUEITERATOR>::ID, 1, hresult);
296
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
297
- }
298
- },
299
-
300
- // (2) virtual void Reset(const uint32_t) = 0
301
- //
302
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
303
- Core::hresult hresult = Core::ERROR_NONE;
304
-
305
- hresult = [&]() -> Core::hresult {
306
- using interface = IIteratorType<uint32_t, ID_VALUEITERATOR>;
307
-
308
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
309
-
310
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
311
- ASSERT(implementation != nullptr);
312
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
313
-
314
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
315
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
316
- const uint32_t _position = reader.Number<uint32_t>();
317
-
318
- implementation->Reset(_position);
319
-
320
- return (Core::ERROR_NONE);
321
- } ();
322
-
323
- if (hresult != Core::ERROR_NONE) {
324
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", IIteratorType<uint32_t, ID_VALUEITERATOR>::ID, 2, hresult);
325
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
326
- }
327
- },
328
-
329
- // (3) virtual bool IsValid() const = 0
330
- //
331
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
332
- Core::hresult hresult = Core::ERROR_NONE;
333
-
334
- hresult = [&]() -> Core::hresult {
335
- using interface = IIteratorType<uint32_t, ID_VALUEITERATOR>;
336
-
337
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
338
-
339
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
340
- ASSERT(implementation != nullptr);
341
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
342
-
343
- bool result = implementation->IsValid();
344
-
345
- RPC::Data::Frame::Writer writer(message->Response().Writer());
346
- writer.Boolean(result);
347
-
348
- return (Core::ERROR_NONE);
349
- } ();
350
-
351
- if (hresult != Core::ERROR_NONE) {
352
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", IIteratorType<uint32_t, ID_VALUEITERATOR>::ID, 3, hresult);
353
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
354
- }
355
- },
356
-
357
- // (4) virtual uint32_t Count() const = 0
358
- //
359
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
360
- Core::hresult hresult = Core::ERROR_NONE;
361
-
362
- hresult = [&]() -> Core::hresult {
363
- using interface = IIteratorType<uint32_t, ID_VALUEITERATOR>;
364
-
365
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
366
-
367
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
368
- ASSERT(implementation != nullptr);
369
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
370
-
371
- uint32_t result = implementation->Count();
372
-
373
- RPC::Data::Frame::Writer writer(message->Response().Writer());
374
- writer.Number<uint32_t>(result);
375
-
376
- return (Core::ERROR_NONE);
377
- } ();
378
-
379
- if (hresult != Core::ERROR_NONE) {
380
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", IIteratorType<uint32_t, ID_VALUEITERATOR>::ID, 4, hresult);
381
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
382
- }
383
- },
384
-
385
- // (5) virtual uint32_t Current() const = 0
386
- //
387
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
388
- Core::hresult hresult = Core::ERROR_NONE;
389
-
390
- hresult = [&]() -> Core::hresult {
391
- using interface = IIteratorType<uint32_t, ID_VALUEITERATOR>;
392
-
393
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
394
-
395
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
396
- ASSERT(implementation != nullptr);
397
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
398
-
399
- uint32_t result = implementation->Current();
400
-
401
- RPC::Data::Frame::Writer writer(message->Response().Writer());
402
- writer.Number<uint32_t>(result);
403
-
404
- return (Core::ERROR_NONE);
405
- } ();
406
-
407
- if (hresult != Core::ERROR_NONE) {
408
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", IIteratorType<uint32_t, ID_VALUEITERATOR>::ID, 5, hresult);
409
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
410
- }
411
- }
412
- , nullptr
413
- }; // IteratorTypeInstance_60eba5a793c685eaStubMethods
414
-
415
- //
416
- // IIteratorTypeInstance_195e88cf7f955a2e interface stub definitions
417
- //
418
- // Methods:
419
- // (0) virtual bool Next(Environment&) = 0
420
- // (1) virtual bool Previous(Environment&) = 0
421
- // (2) virtual void Reset(const uint32_t) = 0
422
- // (3) virtual bool IsValid() const = 0
423
- // (4) virtual uint32_t Count() const = 0
424
- // (5) virtual Environment Current() const = 0
425
- //
426
-
427
- static ProxyStub::MethodHandler IteratorTypeInstance_195e88cf7f955a2eStubMethods[] = {
428
- // (0) virtual bool Next(Environment&) = 0
429
- //
430
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
431
- Core::hresult hresult = Core::ERROR_NONE;
432
-
433
- hresult = [&]() -> Core::hresult {
434
- using interface = IIteratorType<Environment, ID_ENVIRONMENTITERATOR>;
435
-
436
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
437
-
438
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
439
- ASSERT(implementation != nullptr);
440
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
441
-
442
- Environment _info{};
443
-
444
- bool result = implementation->Next(_info);
445
-
446
- RPC::Data::Frame::Writer writer(message->Response().Writer());
447
- writer.Boolean(result);
448
- writer.Text(_info.Key);
449
- writer.Text(_info.Value);
450
- writer.Number<Environment::scope>(_info.Scope);
451
-
452
- return (Core::ERROR_NONE);
453
- } ();
454
-
455
- if (hresult != Core::ERROR_NONE) {
456
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", IIteratorType<Environment, ID_ENVIRONMENTITERATOR>::ID, 0, hresult);
457
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
458
- }
459
- },
460
-
461
- // (1) virtual bool Previous(Environment&) = 0
462
- //
463
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
464
- Core::hresult hresult = Core::ERROR_NONE;
465
-
466
- hresult = [&]() -> Core::hresult {
467
- using interface = IIteratorType<Environment, ID_ENVIRONMENTITERATOR>;
468
-
469
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
470
-
471
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
472
- ASSERT(implementation != nullptr);
473
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
474
-
475
- Environment _info{};
476
-
477
- bool result = implementation->Previous(_info);
478
-
479
- RPC::Data::Frame::Writer writer(message->Response().Writer());
480
- writer.Boolean(result);
481
- writer.Text(_info.Key);
482
- writer.Text(_info.Value);
483
- writer.Number<Environment::scope>(_info.Scope);
484
-
485
- return (Core::ERROR_NONE);
486
- } ();
487
-
488
- if (hresult != Core::ERROR_NONE) {
489
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", IIteratorType<Environment, ID_ENVIRONMENTITERATOR>::ID, 1, hresult);
490
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
491
- }
492
- },
493
-
494
- // (2) virtual void Reset(const uint32_t) = 0
495
- //
496
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
497
- Core::hresult hresult = Core::ERROR_NONE;
498
-
499
- hresult = [&]() -> Core::hresult {
500
- using interface = IIteratorType<Environment, ID_ENVIRONMENTITERATOR>;
501
-
502
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
503
-
504
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
505
- ASSERT(implementation != nullptr);
506
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
507
-
508
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
509
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
510
- const uint32_t _position = reader.Number<uint32_t>();
511
-
512
- implementation->Reset(_position);
513
-
514
- return (Core::ERROR_NONE);
515
- } ();
516
-
517
- if (hresult != Core::ERROR_NONE) {
518
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", IIteratorType<Environment, ID_ENVIRONMENTITERATOR>::ID, 2, hresult);
519
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
520
- }
521
- },
522
-
523
- // (3) virtual bool IsValid() const = 0
524
- //
525
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
526
- Core::hresult hresult = Core::ERROR_NONE;
527
-
528
- hresult = [&]() -> Core::hresult {
529
- using interface = IIteratorType<Environment, ID_ENVIRONMENTITERATOR>;
530
-
531
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
532
-
533
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
534
- ASSERT(implementation != nullptr);
535
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
536
-
537
- bool result = implementation->IsValid();
538
-
539
- RPC::Data::Frame::Writer writer(message->Response().Writer());
540
- writer.Boolean(result);
541
-
542
- return (Core::ERROR_NONE);
543
- } ();
544
-
545
- if (hresult != Core::ERROR_NONE) {
546
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", IIteratorType<Environment, ID_ENVIRONMENTITERATOR>::ID, 3, hresult);
547
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
548
- }
549
- },
550
-
551
- // (4) virtual uint32_t Count() const = 0
552
- //
553
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
554
- Core::hresult hresult = Core::ERROR_NONE;
555
-
556
- hresult = [&]() -> Core::hresult {
557
- using interface = IIteratorType<Environment, ID_ENVIRONMENTITERATOR>;
558
-
559
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
560
-
561
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
562
- ASSERT(implementation != nullptr);
563
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
564
-
565
- uint32_t result = implementation->Count();
566
-
567
- RPC::Data::Frame::Writer writer(message->Response().Writer());
568
- writer.Number<uint32_t>(result);
569
-
570
- return (Core::ERROR_NONE);
571
- } ();
572
-
573
- if (hresult != Core::ERROR_NONE) {
574
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", IIteratorType<Environment, ID_ENVIRONMENTITERATOR>::ID, 4, hresult);
575
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
576
- }
577
- },
578
-
579
- // (5) virtual Environment Current() const = 0
580
- //
581
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
582
- Core::hresult hresult = Core::ERROR_NONE;
583
-
584
- hresult = [&]() -> Core::hresult {
585
- using interface = IIteratorType<Environment, ID_ENVIRONMENTITERATOR>;
586
-
587
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
588
-
589
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
590
- ASSERT(implementation != nullptr);
591
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
592
-
593
- Environment result = implementation->Current();
594
-
595
- RPC::Data::Frame::Writer writer(message->Response().Writer());
596
- writer.Text(result.Key);
597
- writer.Text(result.Value);
598
- writer.Number<Environment::scope>(result.Scope);
599
-
600
- return (Core::ERROR_NONE);
601
- } ();
602
-
603
- if (hresult != Core::ERROR_NONE) {
604
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", IIteratorType<Environment, ID_ENVIRONMENTITERATOR>::ID, 5, hresult);
605
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
606
- }
607
- }
608
- , nullptr
609
- }; // IteratorTypeInstance_195e88cf7f955a2eStubMethods
610
-
611
- //
612
33
  // IRemoteConnection interface stub definitions
613
34
  //
614
35
  // Methods:
615
36
  // (0) virtual uint32_t Id() const = 0
616
37
  // (1) virtual uint32_t RemoteId() const = 0
@@ -919,589 +340,10 @@
919
340
  // -----------------------------------------------------------------
920
341
  // PROXIES
921
342
  // -----------------------------------------------------------------
922
343
 
923
344
  //
924
- // IIteratorTypeInstance_bd6e04b8d151c1f7 interface proxy definitions
925
- //
926
- // Methods:
927
- // (0) virtual bool Next(string&) = 0
928
- // (1) virtual bool Previous(string&) = 0
929
- // (2) virtual void Reset(const uint32_t) = 0
930
- // (3) virtual bool IsValid() const = 0
931
- // (4) virtual uint32_t Count() const = 0
932
- // (5) virtual string Current() const = 0
933
- //
934
-
935
- class IteratorTypeInstance_bd6e04b8d151c1f7Proxy final : public ProxyStub::UnknownProxyType<IIteratorType<string, ID_STRINGITERATOR>> {
936
- public:
937
- IteratorTypeInstance_bd6e04b8d151c1f7Proxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
938
- : BaseClass(channel, implementation, otherSideInformed)
939
- {
940
- }
941
-
942
- bool Next(string& _info) override
943
- {
944
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
945
-
946
- bool result{};
947
-
948
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
949
- if (hresult == Core::ERROR_NONE) {
950
- hresult = [&]() -> Core::hresult {
951
- RPC::Data::Frame::Reader reader(message->Response().Reader());
952
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
953
- result = reader.Boolean();
954
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
955
- const uint16_t _infoPeekedLen__ = reader.PeekNumber<uint16_t>();
956
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _infoPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
957
- _info = reader.Text();
958
-
959
- return (Core::ERROR_NONE);
960
- } ();
961
- } else {
962
- ASSERT((hresult & COM_ERROR) != 0);
963
- }
964
-
965
- if ((hresult & COM_ERROR) != 0) {
966
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", IIteratorType<string, ID_STRINGITERATOR>::ID, 0, hresult);
967
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
968
- }
969
-
970
- return (result);
971
- }
972
-
973
- bool Previous(string& _info) override
974
- {
975
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
976
-
977
- bool result{};
978
-
979
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
980
- if (hresult == Core::ERROR_NONE) {
981
- hresult = [&]() -> Core::hresult {
982
- RPC::Data::Frame::Reader reader(message->Response().Reader());
983
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
984
- result = reader.Boolean();
985
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
986
- const uint16_t _infoPeekedLen__ = reader.PeekNumber<uint16_t>();
987
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _infoPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
988
- _info = reader.Text();
989
-
990
- return (Core::ERROR_NONE);
991
- } ();
992
- } else {
993
- ASSERT((hresult & COM_ERROR) != 0);
994
- }
995
-
996
- if ((hresult & COM_ERROR) != 0) {
997
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", IIteratorType<string, ID_STRINGITERATOR>::ID, 1, hresult);
998
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
999
- }
1000
-
1001
- return (result);
1002
- }
1003
-
1004
- void Reset(const uint32_t _position) override
1005
- {
1006
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
1007
-
1008
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
1009
- writer.Number<uint32_t>(_position);
1010
-
1011
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1012
- if (hresult == Core::ERROR_NONE) {
1013
- hresult = [&]() -> Core::hresult {
1014
-
1015
- return (Core::ERROR_NONE);
1016
- } ();
1017
- } else {
1018
- ASSERT((hresult & COM_ERROR) != 0);
1019
- }
1020
-
1021
- if ((hresult & COM_ERROR) != 0) {
1022
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", IIteratorType<string, ID_STRINGITERATOR>::ID, 2, hresult);
1023
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1024
- }
1025
- }
1026
-
1027
- bool IsValid() const override
1028
- {
1029
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
1030
-
1031
- bool result{};
1032
-
1033
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1034
- if (hresult == Core::ERROR_NONE) {
1035
- hresult = [&]() -> Core::hresult {
1036
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1037
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1038
- result = reader.Boolean();
1039
-
1040
- return (Core::ERROR_NONE);
1041
- } ();
1042
- } else {
1043
- ASSERT((hresult & COM_ERROR) != 0);
1044
- }
1045
-
1046
- if ((hresult & COM_ERROR) != 0) {
1047
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", IIteratorType<string, ID_STRINGITERATOR>::ID, 3, hresult);
1048
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1049
- }
1050
-
1051
- return (result);
1052
- }
1053
-
1054
- uint32_t Count() const override
1055
- {
1056
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
1057
-
1058
- uint32_t result{};
1059
-
1060
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1061
- if (hresult == Core::ERROR_NONE) {
1062
- hresult = [&]() -> Core::hresult {
1063
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1064
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1065
- result = reader.Number<uint32_t>();
1066
-
1067
- return (Core::ERROR_NONE);
1068
- } ();
1069
- } else {
1070
- ASSERT((hresult & COM_ERROR) != 0);
1071
- }
1072
-
1073
- if ((hresult & COM_ERROR) != 0) {
1074
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", IIteratorType<string, ID_STRINGITERATOR>::ID, 4, hresult);
1075
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1076
- }
1077
-
1078
- return (result);
1079
- }
1080
-
1081
- string Current() const override
1082
- {
1083
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1084
-
1085
- string result{};
1086
-
1087
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1088
- if (hresult == Core::ERROR_NONE) {
1089
- hresult = [&]() -> Core::hresult {
1090
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1091
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1092
- const uint16_t resultPeekedLen__ = reader.PeekNumber<uint16_t>();
1093
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + resultPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1094
- result = reader.Text();
1095
-
1096
- return (Core::ERROR_NONE);
1097
- } ();
1098
- } else {
1099
- ASSERT((hresult & COM_ERROR) != 0);
1100
- }
1101
-
1102
- if ((hresult & COM_ERROR) != 0) {
1103
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", IIteratorType<string, ID_STRINGITERATOR>::ID, 5, hresult);
1104
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1105
- }
1106
-
1107
- return (result);
1108
- }
1109
-
1110
- }; // class IteratorTypeInstance_bd6e04b8d151c1f7Proxy
1111
-
1112
- //
1113
- // IIteratorTypeInstance_60eba5a793c685ea interface proxy definitions
1114
- //
1115
- // Methods:
1116
- // (0) virtual bool Next(uint32_t&) = 0
1117
- // (1) virtual bool Previous(uint32_t&) = 0
1118
- // (2) virtual void Reset(const uint32_t) = 0
1119
- // (3) virtual bool IsValid() const = 0
1120
- // (4) virtual uint32_t Count() const = 0
1121
- // (5) virtual uint32_t Current() const = 0
1122
- //
1123
-
1124
- class IteratorTypeInstance_60eba5a793c685eaProxy final : public ProxyStub::UnknownProxyType<IIteratorType<uint32_t, ID_VALUEITERATOR>> {
1125
- public:
1126
- IteratorTypeInstance_60eba5a793c685eaProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
1127
- : BaseClass(channel, implementation, otherSideInformed)
1128
- {
1129
- }
1130
-
1131
- bool Next(uint32_t& _info) override
1132
- {
1133
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
1134
-
1135
- bool result{};
1136
-
1137
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1138
- if (hresult == Core::ERROR_NONE) {
1139
- hresult = [&]() -> Core::hresult {
1140
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1141
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1142
- result = reader.Boolean();
1143
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1144
- _info = reader.Number<uint32_t>();
1145
-
1146
- return (Core::ERROR_NONE);
1147
- } ();
1148
- } else {
1149
- ASSERT((hresult & COM_ERROR) != 0);
1150
- }
1151
-
1152
- if ((hresult & COM_ERROR) != 0) {
1153
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", IIteratorType<uint32_t, ID_VALUEITERATOR>::ID, 0, hresult);
1154
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1155
- }
1156
-
1157
- return (result);
1158
- }
1159
-
1160
- bool Previous(uint32_t& _info) override
1161
- {
1162
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
1163
-
1164
- bool result{};
1165
-
1166
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1167
- if (hresult == Core::ERROR_NONE) {
1168
- hresult = [&]() -> Core::hresult {
1169
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1170
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1171
- result = reader.Boolean();
1172
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1173
- _info = reader.Number<uint32_t>();
1174
-
1175
- return (Core::ERROR_NONE);
1176
- } ();
1177
- } else {
1178
- ASSERT((hresult & COM_ERROR) != 0);
1179
- }
1180
-
1181
- if ((hresult & COM_ERROR) != 0) {
1182
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", IIteratorType<uint32_t, ID_VALUEITERATOR>::ID, 1, hresult);
1183
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1184
- }
1185
-
1186
- return (result);
1187
- }
1188
-
1189
- void Reset(const uint32_t _position) override
1190
- {
1191
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
1192
-
1193
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
1194
- writer.Number<uint32_t>(_position);
1195
-
1196
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1197
- if (hresult == Core::ERROR_NONE) {
1198
- hresult = [&]() -> Core::hresult {
1199
-
1200
- return (Core::ERROR_NONE);
1201
- } ();
1202
- } else {
1203
- ASSERT((hresult & COM_ERROR) != 0);
1204
- }
1205
-
1206
- if ((hresult & COM_ERROR) != 0) {
1207
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", IIteratorType<uint32_t, ID_VALUEITERATOR>::ID, 2, hresult);
1208
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1209
- }
1210
- }
1211
-
1212
- bool IsValid() const override
1213
- {
1214
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
1215
-
1216
- bool result{};
1217
-
1218
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1219
- if (hresult == Core::ERROR_NONE) {
1220
- hresult = [&]() -> Core::hresult {
1221
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1222
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1223
- result = reader.Boolean();
1224
-
1225
- return (Core::ERROR_NONE);
1226
- } ();
1227
- } else {
1228
- ASSERT((hresult & COM_ERROR) != 0);
1229
- }
1230
-
1231
- if ((hresult & COM_ERROR) != 0) {
1232
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", IIteratorType<uint32_t, ID_VALUEITERATOR>::ID, 3, hresult);
1233
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1234
- }
1235
-
1236
- return (result);
1237
- }
1238
-
1239
- uint32_t Count() const override
1240
- {
1241
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
1242
-
1243
- uint32_t result{};
1244
-
1245
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1246
- if (hresult == Core::ERROR_NONE) {
1247
- hresult = [&]() -> Core::hresult {
1248
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1249
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1250
- result = reader.Number<uint32_t>();
1251
-
1252
- return (Core::ERROR_NONE);
1253
- } ();
1254
- } else {
1255
- ASSERT((hresult & COM_ERROR) != 0);
1256
- }
1257
-
1258
- if ((hresult & COM_ERROR) != 0) {
1259
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", IIteratorType<uint32_t, ID_VALUEITERATOR>::ID, 4, hresult);
1260
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1261
- }
1262
-
1263
- return (result);
1264
- }
1265
-
1266
- uint32_t Current() const override
1267
- {
1268
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1269
-
1270
- uint32_t result{};
1271
-
1272
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1273
- if (hresult == Core::ERROR_NONE) {
1274
- hresult = [&]() -> Core::hresult {
1275
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1276
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1277
- result = reader.Number<uint32_t>();
1278
-
1279
- return (Core::ERROR_NONE);
1280
- } ();
1281
- } else {
1282
- ASSERT((hresult & COM_ERROR) != 0);
1283
- }
1284
-
1285
- if ((hresult & COM_ERROR) != 0) {
1286
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", IIteratorType<uint32_t, ID_VALUEITERATOR>::ID, 5, hresult);
1287
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1288
- }
1289
-
1290
- return (result);
1291
- }
1292
-
1293
- }; // class IteratorTypeInstance_60eba5a793c685eaProxy
1294
-
1295
- //
1296
- // IIteratorTypeInstance_195e88cf7f955a2e interface proxy definitions
1297
- //
1298
- // Methods:
1299
- // (0) virtual bool Next(Environment&) = 0
1300
- // (1) virtual bool Previous(Environment&) = 0
1301
- // (2) virtual void Reset(const uint32_t) = 0
1302
- // (3) virtual bool IsValid() const = 0
1303
- // (4) virtual uint32_t Count() const = 0
1304
- // (5) virtual Environment Current() const = 0
1305
- //
1306
-
1307
- class IteratorTypeInstance_195e88cf7f955a2eProxy final : public ProxyStub::UnknownProxyType<IIteratorType<Environment, ID_ENVIRONMENTITERATOR>> {
1308
- public:
1309
- IteratorTypeInstance_195e88cf7f955a2eProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
1310
- : BaseClass(channel, implementation, otherSideInformed)
1311
- {
1312
- }
1313
-
1314
- bool Next(Environment& _info) override
1315
- {
1316
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
1317
-
1318
- bool result{};
1319
-
1320
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1321
- if (hresult == Core::ERROR_NONE) {
1322
- hresult = [&]() -> Core::hresult {
1323
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1324
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1325
- result = reader.Boolean();
1326
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1327
- const uint16_t _info_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
1328
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1329
- _info.Key = reader.Text();
1330
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1331
- const uint16_t _info_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
1332
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1333
- _info.Value = reader.Text();
1334
- if (reader.Length() < (Core::RealSize<Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1335
- _info.Scope = reader.Number<Environment::scope>();
1336
-
1337
- return (Core::ERROR_NONE);
1338
- } ();
1339
- } else {
1340
- ASSERT((hresult & COM_ERROR) != 0);
1341
- }
1342
-
1343
- if ((hresult & COM_ERROR) != 0) {
1344
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", IIteratorType<Environment, ID_ENVIRONMENTITERATOR>::ID, 0, hresult);
1345
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1346
- }
1347
-
1348
- return (result);
1349
- }
1350
-
1351
- bool Previous(Environment& _info) override
1352
- {
1353
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
1354
-
1355
- bool result{};
1356
-
1357
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1358
- if (hresult == Core::ERROR_NONE) {
1359
- hresult = [&]() -> Core::hresult {
1360
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1361
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1362
- result = reader.Boolean();
1363
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1364
- const uint16_t _info_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
1365
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1366
- _info.Key = reader.Text();
1367
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1368
- const uint16_t _info_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
1369
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1370
- _info.Value = reader.Text();
1371
- if (reader.Length() < (Core::RealSize<Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1372
- _info.Scope = reader.Number<Environment::scope>();
1373
-
1374
- return (Core::ERROR_NONE);
1375
- } ();
1376
- } else {
1377
- ASSERT((hresult & COM_ERROR) != 0);
1378
- }
1379
-
1380
- if ((hresult & COM_ERROR) != 0) {
1381
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", IIteratorType<Environment, ID_ENVIRONMENTITERATOR>::ID, 1, hresult);
1382
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1383
- }
1384
-
1385
- return (result);
1386
- }
1387
-
1388
- void Reset(const uint32_t _position) override
1389
- {
1390
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
1391
-
1392
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
1393
- writer.Number<uint32_t>(_position);
1394
-
1395
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1396
- if (hresult == Core::ERROR_NONE) {
1397
- hresult = [&]() -> Core::hresult {
1398
-
1399
- return (Core::ERROR_NONE);
1400
- } ();
1401
- } else {
1402
- ASSERT((hresult & COM_ERROR) != 0);
1403
- }
1404
-
1405
- if ((hresult & COM_ERROR) != 0) {
1406
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", IIteratorType<Environment, ID_ENVIRONMENTITERATOR>::ID, 2, hresult);
1407
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1408
- }
1409
- }
1410
-
1411
- bool IsValid() const override
1412
- {
1413
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
1414
-
1415
- bool result{};
1416
-
1417
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1418
- if (hresult == Core::ERROR_NONE) {
1419
- hresult = [&]() -> Core::hresult {
1420
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1421
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1422
- result = reader.Boolean();
1423
-
1424
- return (Core::ERROR_NONE);
1425
- } ();
1426
- } else {
1427
- ASSERT((hresult & COM_ERROR) != 0);
1428
- }
1429
-
1430
- if ((hresult & COM_ERROR) != 0) {
1431
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", IIteratorType<Environment, ID_ENVIRONMENTITERATOR>::ID, 3, hresult);
1432
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1433
- }
1434
-
1435
- return (result);
1436
- }
1437
-
1438
- uint32_t Count() const override
1439
- {
1440
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
1441
-
1442
- uint32_t result{};
1443
-
1444
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1445
- if (hresult == Core::ERROR_NONE) {
1446
- hresult = [&]() -> Core::hresult {
1447
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1448
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1449
- result = reader.Number<uint32_t>();
1450
-
1451
- return (Core::ERROR_NONE);
1452
- } ();
1453
- } else {
1454
- ASSERT((hresult & COM_ERROR) != 0);
1455
- }
1456
-
1457
- if ((hresult & COM_ERROR) != 0) {
1458
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", IIteratorType<Environment, ID_ENVIRONMENTITERATOR>::ID, 4, hresult);
1459
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1460
- }
1461
-
1462
- return (result);
1463
- }
1464
-
1465
- Environment Current() const override
1466
- {
1467
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1468
-
1469
- Environment result{};
1470
-
1471
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1472
- if (hresult == Core::ERROR_NONE) {
1473
- hresult = [&]() -> Core::hresult {
1474
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1475
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1476
- const uint16_t result_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
1477
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + result_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1478
- result.Key = reader.Text();
1479
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1480
- const uint16_t result_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
1481
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + result_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1482
- result.Value = reader.Text();
1483
- if (reader.Length() < (Core::RealSize<Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1484
- result.Scope = reader.Number<Environment::scope>();
1485
-
1486
- return (Core::ERROR_NONE);
1487
- } ();
1488
- } else {
1489
- ASSERT((hresult & COM_ERROR) != 0);
1490
- }
1491
-
1492
- if ((hresult & COM_ERROR) != 0) {
1493
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", IIteratorType<Environment, ID_ENVIRONMENTITERATOR>::ID, 5, hresult);
1494
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1495
- }
1496
-
1497
- return (result);
1498
- }
1499
-
1500
- }; // class IteratorTypeInstance_195e88cf7f955a2eProxy
1501
-
1502
- //
1503
345
  // IRemoteConnection interface proxy definitions
1504
346
  //
1505
347
  // Methods:
1506
348
  // (0) virtual uint32_t Id() const = 0
1507
349
  // (1) virtual uint32_t RemoteId() const = 0
@@ -1817,33 +659,24 @@
1817
659
  // -----------------------------------------------------------------
1818
660
  // REGISTRATION
1819
661
  // -----------------------------------------------------------------
1820
662
  namespace {
1821
663
 
1822
- typedef ProxyStub::UnknownStubType<IIteratorType<string, ID_STRINGITERATOR>, IteratorTypeInstance_bd6e04b8d151c1f7StubMethods> IteratorTypeInstance_bd6e04b8d151c1f7Stub;
1823
- typedef ProxyStub::UnknownStubType<IIteratorType<uint32_t, ID_VALUEITERATOR>, IteratorTypeInstance_60eba5a793c685eaStubMethods> IteratorTypeInstance_60eba5a793c685eaStub;
1824
- typedef ProxyStub::UnknownStubType<IIteratorType<Environment, ID_ENVIRONMENTITERATOR>, IteratorTypeInstance_195e88cf7f955a2eStubMethods> IteratorTypeInstance_195e88cf7f955a2eStub;
1825
664
  typedef ProxyStub::UnknownStubType<IRemoteConnection, RemoteConnectionStubMethods> RemoteConnectionStub;
1826
665
  typedef ProxyStub::UnknownStubType<IRemoteConnection::INotification, RemoteConnectionNotificationStubMethods> RemoteConnectionNotificationStub;
1827
666
 
1828
667
  static class Instantiation {
1829
668
  public:
1830
669
  Instantiation()
1831
670
  {
1832
671
  const RPC::SecureProxyStubType security = static_cast<RPC::SecureProxyStubType>(static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_SECURE) | static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_COHERENT));
1833
672
 
1834
- RPC::Administrator::Instance().Announce<IIteratorType<string, ID_STRINGITERATOR>, IteratorTypeInstance_bd6e04b8d151c1f7Proxy, IteratorTypeInstance_bd6e04b8d151c1f7Stub>(security);
1835
- RPC::Administrator::Instance().Announce<IIteratorType<uint32_t, ID_VALUEITERATOR>, IteratorTypeInstance_60eba5a793c685eaProxy, IteratorTypeInstance_60eba5a793c685eaStub>(security);
1836
- RPC::Administrator::Instance().Announce<IIteratorType<Environment, ID_ENVIRONMENTITERATOR>, IteratorTypeInstance_195e88cf7f955a2eProxy, IteratorTypeInstance_195e88cf7f955a2eStub>(security);
1837
673
  RPC::Administrator::Instance().Announce<IRemoteConnection, RemoteConnectionProxy, RemoteConnectionStub>(security);
1838
674
  RPC::Administrator::Instance().Announce<IRemoteConnection::INotification, RemoteConnectionNotificationProxy, RemoteConnectionNotificationStub>(security);
1839
675
  }
1840
676
  ~Instantiation()
1841
677
  {
1842
- RPC::Administrator::Instance().Recall<IIteratorType<string, ID_STRINGITERATOR>>();
1843
- RPC::Administrator::Instance().Recall<IIteratorType<uint32_t, ID_VALUEITERATOR>>();
1844
- RPC::Administrator::Instance().Recall<IIteratorType<Environment, ID_ENVIRONMENTITERATOR>>();
1845
678
  RPC::Administrator::Instance().Recall<IRemoteConnection>();
1846
679
  RPC::Administrator::Instance().Recall<IRemoteConnection::INotification>();
1847
680
  }
1848
681
  } ProxyStubRegistration;
1849
682
 
{baseline → generated}/Release/ThunderInterfaces/example_interfaces/example_generated/ProxyStubs_SimpleAsync.cpp RENAMED
@@ -2,11 +2,10 @@
2
2
  // generated automatically from "ISimpleAsync.h"
3
3
  //
4
4
  // implements COM-RPC proxy stubs for:
5
5
  // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = RPC::ID_STRINGITERATOR] [[iterator]]
6
6
  // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = uint32_t, INTERFACE_ID = RPC::ID_VALUEITERATOR] [[iterator]]
7
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = RPC::Environment, INTERFACE_ID = RPC::ID_ENVIRONMENTITERATOR] [[iterator]]
8
7
  // - class Example::ISimpleAsync
9
8
  // - class Example::ISimpleAsync::ICallback
10
9
  // - class Example::ISimpleAsync::INotification
11
10
  // - class Example::ISimpleAsync::IBindNotification
12
11
  //
@@ -411,206 +410,10 @@
411
410
  }
412
411
  , nullptr
413
412
  }; // RPCIteratorTypeInstance_60eba5a793c685eaStubMethods
414
413
 
415
414
  //
416
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface stub definitions
417
- //
418
- // Methods:
419
- // (0) virtual bool Next(RPC::Environment&) = 0
420
- // (1) virtual bool Previous(RPC::Environment&) = 0
421
- // (2) virtual void Reset(const uint32_t) = 0
422
- // (3) virtual bool IsValid() const = 0
423
- // (4) virtual uint32_t Count() const = 0
424
- // (5) virtual RPC::Environment Current() const = 0
425
- //
426
-
427
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods[] = {
428
- // (0) virtual bool Next(RPC::Environment&) = 0
429
- //
430
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
431
- Core::hresult hresult = Core::ERROR_NONE;
432
-
433
- hresult = [&]() -> Core::hresult {
434
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
435
-
436
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
437
-
438
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
439
- ASSERT(implementation != nullptr);
440
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
441
-
442
- RPC::Environment _info{};
443
-
444
- bool result = implementation->Next(_info);
445
-
446
- RPC::Data::Frame::Writer writer(message->Response().Writer());
447
- writer.Boolean(result);
448
- writer.Text(_info.Key);
449
- writer.Text(_info.Value);
450
- writer.Number<RPC::Environment::scope>(_info.Scope);
451
-
452
- return (Core::ERROR_NONE);
453
- } ();
454
-
455
- if (hresult != Core::ERROR_NONE) {
456
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 0, hresult);
457
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
458
- }
459
- },
460
-
461
- // (1) virtual bool Previous(RPC::Environment&) = 0
462
- //
463
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
464
- Core::hresult hresult = Core::ERROR_NONE;
465
-
466
- hresult = [&]() -> Core::hresult {
467
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
468
-
469
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
470
-
471
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
472
- ASSERT(implementation != nullptr);
473
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
474
-
475
- RPC::Environment _info{};
476
-
477
- bool result = implementation->Previous(_info);
478
-
479
- RPC::Data::Frame::Writer writer(message->Response().Writer());
480
- writer.Boolean(result);
481
- writer.Text(_info.Key);
482
- writer.Text(_info.Value);
483
- writer.Number<RPC::Environment::scope>(_info.Scope);
484
-
485
- return (Core::ERROR_NONE);
486
- } ();
487
-
488
- if (hresult != Core::ERROR_NONE) {
489
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 1, hresult);
490
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
491
- }
492
- },
493
-
494
- // (2) virtual void Reset(const uint32_t) = 0
495
- //
496
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
497
- Core::hresult hresult = Core::ERROR_NONE;
498
-
499
- hresult = [&]() -> Core::hresult {
500
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
501
-
502
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
503
-
504
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
505
- ASSERT(implementation != nullptr);
506
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
507
-
508
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
509
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
510
- const uint32_t _position = reader.Number<uint32_t>();
511
-
512
- implementation->Reset(_position);
513
-
514
- return (Core::ERROR_NONE);
515
- } ();
516
-
517
- if (hresult != Core::ERROR_NONE) {
518
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 2, hresult);
519
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
520
- }
521
- },
522
-
523
- // (3) virtual bool IsValid() const = 0
524
- //
525
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
526
- Core::hresult hresult = Core::ERROR_NONE;
527
-
528
- hresult = [&]() -> Core::hresult {
529
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
530
-
531
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
532
-
533
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
534
- ASSERT(implementation != nullptr);
535
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
536
-
537
- bool result = implementation->IsValid();
538
-
539
- RPC::Data::Frame::Writer writer(message->Response().Writer());
540
- writer.Boolean(result);
541
-
542
- return (Core::ERROR_NONE);
543
- } ();
544
-
545
- if (hresult != Core::ERROR_NONE) {
546
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 3, hresult);
547
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
548
- }
549
- },
550
-
551
- // (4) virtual uint32_t Count() const = 0
552
- //
553
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
554
- Core::hresult hresult = Core::ERROR_NONE;
555
-
556
- hresult = [&]() -> Core::hresult {
557
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
558
-
559
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
560
-
561
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
562
- ASSERT(implementation != nullptr);
563
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
564
-
565
- uint32_t result = implementation->Count();
566
-
567
- RPC::Data::Frame::Writer writer(message->Response().Writer());
568
- writer.Number<uint32_t>(result);
569
-
570
- return (Core::ERROR_NONE);
571
- } ();
572
-
573
- if (hresult != Core::ERROR_NONE) {
574
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 4, hresult);
575
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
576
- }
577
- },
578
-
579
- // (5) virtual RPC::Environment Current() const = 0
580
- //
581
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
582
- Core::hresult hresult = Core::ERROR_NONE;
583
-
584
- hresult = [&]() -> Core::hresult {
585
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
586
-
587
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
588
-
589
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
590
- ASSERT(implementation != nullptr);
591
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
592
-
593
- RPC::Environment result = implementation->Current();
594
-
595
- RPC::Data::Frame::Writer writer(message->Response().Writer());
596
- writer.Text(result.Key);
597
- writer.Text(result.Value);
598
- writer.Number<RPC::Environment::scope>(result.Scope);
599
-
600
- return (Core::ERROR_NONE);
601
- } ();
602
-
603
- if (hresult != Core::ERROR_NONE) {
604
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 5, hresult);
605
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
606
- }
607
- }
608
- , nullptr
609
- }; // RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods
610
-
611
- //
612
415
  // Example::ISimpleAsync interface stub definitions
613
416
  //
614
417
  // Methods:
615
418
  // (0) virtual Core::hresult Connect(const Core::OptionalType<std::vector<uint8_t>>&, const Core::OptionalType<uint16_t>&, Example::ISimpleAsync::ICallback* const) = 0
616
419
  // (1) virtual Core::hresult Abort() = 0
@@ -2308,217 +2111,10 @@
2308
2111
  }
2309
2112
 
2310
2113
  }; // class RPCIteratorTypeInstance_60eba5a793c685eaProxy
2311
2114
 
2312
2115
  //
2313
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface proxy definitions
2314
- //
2315
- // Methods:
2316
- // (0) virtual bool Next(RPC::Environment&) = 0
2317
- // (1) virtual bool Previous(RPC::Environment&) = 0
2318
- // (2) virtual void Reset(const uint32_t) = 0
2319
- // (3) virtual bool IsValid() const = 0
2320
- // (4) virtual uint32_t Count() const = 0
2321
- // (5) virtual RPC::Environment Current() const = 0
2322
- //
2323
-
2324
- class RPCIteratorTypeInstance_195e88cf7f955a2eProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>> {
2325
- public:
2326
- RPCIteratorTypeInstance_195e88cf7f955a2eProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
2327
- : BaseClass(channel, implementation, otherSideInformed)
2328
- {
2329
- }
2330
-
2331
- bool Next(RPC::Environment& _info) override
2332
- {
2333
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
2334
-
2335
- bool result{};
2336
-
2337
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
2338
- if (hresult == Core::ERROR_NONE) {
2339
- hresult = [&]() -> Core::hresult {
2340
- RPC::Data::Frame::Reader reader(message->Response().Reader());
2341
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2342
- result = reader.Boolean();
2343
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2344
- const uint16_t _info_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
2345
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2346
- _info.Key = reader.Text();
2347
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2348
- const uint16_t _info_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
2349
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2350
- _info.Value = reader.Text();
2351
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2352
- _info.Scope = reader.Number<RPC::Environment::scope>();
2353
-
2354
- return (Core::ERROR_NONE);
2355
- } ();
2356
- } else {
2357
- ASSERT((hresult & COM_ERROR) != 0);
2358
- }
2359
-
2360
- if ((hresult & COM_ERROR) != 0) {
2361
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 0, hresult);
2362
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
2363
- }
2364
-
2365
- return (result);
2366
- }
2367
-
2368
- bool Previous(RPC::Environment& _info) override
2369
- {
2370
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
2371
-
2372
- bool result{};
2373
-
2374
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
2375
- if (hresult == Core::ERROR_NONE) {
2376
- hresult = [&]() -> Core::hresult {
2377
- RPC::Data::Frame::Reader reader(message->Response().Reader());
2378
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2379
- result = reader.Boolean();
2380
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2381
- const uint16_t _info_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
2382
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2383
- _info.Key = reader.Text();
2384
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2385
- const uint16_t _info_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
2386
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2387
- _info.Value = reader.Text();
2388
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2389
- _info.Scope = reader.Number<RPC::Environment::scope>();
2390
-
2391
- return (Core::ERROR_NONE);
2392
- } ();
2393
- } else {
2394
- ASSERT((hresult & COM_ERROR) != 0);
2395
- }
2396
-
2397
- if ((hresult & COM_ERROR) != 0) {
2398
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 1, hresult);
2399
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
2400
- }
2401
-
2402
- return (result);
2403
- }
2404
-
2405
- void Reset(const uint32_t _position) override
2406
- {
2407
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
2408
-
2409
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
2410
- writer.Number<uint32_t>(_position);
2411
-
2412
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
2413
- if (hresult == Core::ERROR_NONE) {
2414
- hresult = [&]() -> Core::hresult {
2415
-
2416
- return (Core::ERROR_NONE);
2417
- } ();
2418
- } else {
2419
- ASSERT((hresult & COM_ERROR) != 0);
2420
- }
2421
-
2422
- if ((hresult & COM_ERROR) != 0) {
2423
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 2, hresult);
2424
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
2425
- }
2426
- }
2427
-
2428
- bool IsValid() const override
2429
- {
2430
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
2431
-
2432
- bool result{};
2433
-
2434
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
2435
- if (hresult == Core::ERROR_NONE) {
2436
- hresult = [&]() -> Core::hresult {
2437
- RPC::Data::Frame::Reader reader(message->Response().Reader());
2438
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2439
- result = reader.Boolean();
2440
-
2441
- return (Core::ERROR_NONE);
2442
- } ();
2443
- } else {
2444
- ASSERT((hresult & COM_ERROR) != 0);
2445
- }
2446
-
2447
- if ((hresult & COM_ERROR) != 0) {
2448
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 3, hresult);
2449
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
2450
- }
2451
-
2452
- return (result);
2453
- }
2454
-
2455
- uint32_t Count() const override
2456
- {
2457
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
2458
-
2459
- uint32_t result{};
2460
-
2461
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
2462
- if (hresult == Core::ERROR_NONE) {
2463
- hresult = [&]() -> Core::hresult {
2464
- RPC::Data::Frame::Reader reader(message->Response().Reader());
2465
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2466
- result = reader.Number<uint32_t>();
2467
-
2468
- return (Core::ERROR_NONE);
2469
- } ();
2470
- } else {
2471
- ASSERT((hresult & COM_ERROR) != 0);
2472
- }
2473
-
2474
- if ((hresult & COM_ERROR) != 0) {
2475
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 4, hresult);
2476
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
2477
- }
2478
-
2479
- return (result);
2480
- }
2481
-
2482
- RPC::Environment Current() const override
2483
- {
2484
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
2485
-
2486
- RPC::Environment result{};
2487
-
2488
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
2489
- if (hresult == Core::ERROR_NONE) {
2490
- hresult = [&]() -> Core::hresult {
2491
- RPC::Data::Frame::Reader reader(message->Response().Reader());
2492
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2493
- const uint16_t result_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
2494
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + result_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2495
- result.Key = reader.Text();
2496
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2497
- const uint16_t result_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
2498
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + result_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2499
- result.Value = reader.Text();
2500
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2501
- result.Scope = reader.Number<RPC::Environment::scope>();
2502
-
2503
- return (Core::ERROR_NONE);
2504
- } ();
2505
- } else {
2506
- ASSERT((hresult & COM_ERROR) != 0);
2507
- }
2508
-
2509
- if ((hresult & COM_ERROR) != 0) {
2510
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 5, hresult);
2511
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
2512
- }
2513
-
2514
- return (result);
2515
- }
2516
-
2517
- }; // class RPCIteratorTypeInstance_195e88cf7f955a2eProxy
2518
-
2519
- //
2520
2116
  // Example::ISimpleAsync interface proxy definitions
2521
2117
  //
2522
2118
  // Methods:
2523
2119
  // (0) virtual Core::hresult Connect(const Core::OptionalType<std::vector<uint8_t>>&, const Core::OptionalType<uint16_t>&, Example::ISimpleAsync::ICallback* const) = 0
2524
2120
  // (1) virtual Core::hresult Abort() = 0
@@ -3841,11 +3437,10 @@
3841
3437
  // -----------------------------------------------------------------
3842
3438
  namespace {
3843
3439
 
3844
3440
  typedef ProxyStub::UnknownStubType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods> RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub;
3845
3441
  typedef ProxyStub::UnknownStubType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaStubMethods> RPCIteratorTypeInstance_60eba5a793c685eaStub;
3846
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods> RPCIteratorTypeInstance_195e88cf7f955a2eStub;
3847
3442
  typedef ProxyStub::UnknownStubType<Example::ISimpleAsync, ExampleSimpleAsyncStubMethods> ExampleSimpleAsyncStub;
3848
3443
  typedef ProxyStub::UnknownStubType<Example::ISimpleAsync::ICallback, ExampleSimpleAsyncCallbackStubMethods> ExampleSimpleAsyncCallbackStub;
3849
3444
  typedef ProxyStub::UnknownStubType<Example::ISimpleAsync::INotification, ExampleSimpleAsyncNotificationStubMethods> ExampleSimpleAsyncNotificationStub;
3850
3445
  typedef ProxyStub::UnknownStubType<Example::ISimpleAsync::IBindNotification, ExampleSimpleAsyncBindNotificationStubMethods> ExampleSimpleAsyncBindNotificationStub;
3851
3446
 
@@ -3855,21 +3450,19 @@
3855
3450
  {
3856
3451
  const RPC::SecureProxyStubType security = static_cast<RPC::SecureProxyStubType>(static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_SECURE) | static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_COHERENT));
3857
3452
 
3858
3453
  RPC::Administrator::Instance().Announce<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy, RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub>(security);
3859
3454
  RPC::Administrator::Instance().Announce<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaProxy, RPCIteratorTypeInstance_60eba5a793c685eaStub>(security);
3860
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eProxy, RPCIteratorTypeInstance_195e88cf7f955a2eStub>(security);
3861
3455
  RPC::Administrator::Instance().Announce<Example::ISimpleAsync, ExampleSimpleAsyncProxy, ExampleSimpleAsyncStub>(security);
3862
3456
  RPC::Administrator::Instance().Announce<Example::ISimpleAsync::ICallback, ExampleSimpleAsyncCallbackProxy, ExampleSimpleAsyncCallbackStub>(security);
3863
3457
  RPC::Administrator::Instance().Announce<Example::ISimpleAsync::INotification, ExampleSimpleAsyncNotificationProxy, ExampleSimpleAsyncNotificationStub>(security);
3864
3458
  RPC::Administrator::Instance().Announce<Example::ISimpleAsync::IBindNotification, ExampleSimpleAsyncBindNotificationProxy, ExampleSimpleAsyncBindNotificationStub>(security);
3865
3459
  }
3866
3460
  ~Instantiation()
3867
3461
  {
3868
3462
  RPC::Administrator::Instance().Recall<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>>();
3869
3463
  RPC::Administrator::Instance().Recall<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>>();
3870
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>>();
3871
3464
  RPC::Administrator::Instance().Recall<Example::ISimpleAsync>();
3872
3465
  RPC::Administrator::Instance().Recall<Example::ISimpleAsync::ICallback>();
3873
3466
  RPC::Administrator::Instance().Recall<Example::ISimpleAsync::INotification>();
3874
3467
  RPC::Administrator::Instance().Recall<Example::ISimpleAsync::IBindNotification>();
3875
3468
  }
{baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_Bluetooth.cpp RENAMED
@@ -1,55 +0,0 @@
1
- //
2
- // generated automatically from "IBluetooth.h"
3
- //
4
- // implements COM-RPC proxy stubs for:
5
- //
6
- // secure code enabled:
7
- // - instance verification enabled
8
- // - range verification enabled
9
- // - frame coherency verification enabled
10
- //
11
-
12
- #include "Module.h"
13
- #include "IBluetooth.h"
14
-
15
- #include <com/com.h>
16
-
17
- namespace Thunder {
18
-
19
- namespace ProxyStubs {
20
-
21
- PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
22
- PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
23
-
24
- // -----------------------------------------------------------------
25
- // STUBS
26
- // -----------------------------------------------------------------
27
-
28
- // -----------------------------------------------------------------
29
- // PROXIES
30
- // -----------------------------------------------------------------
31
-
32
- POP_WARNING()
33
- POP_WARNING()
34
-
35
- // -----------------------------------------------------------------
36
- // REGISTRATION
37
- // -----------------------------------------------------------------
38
- namespace {
39
-
40
-
41
- static class Instantiation {
42
- public:
43
- Instantiation()
44
- {
45
- }
46
- ~Instantiation()
47
- {
48
- }
49
- } ProxyStubRegistration;
50
-
51
- } // namespace
52
-
53
- } // namespace ProxyStubs
54
-
55
- }
{baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_Butler.cpp RENAMED
@@ -1,12 +1,10 @@
1
1
  //
2
2
  // generated automatically from "IButler.h"
3
3
  //
4
4
  // implements COM-RPC proxy stubs for:
5
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = RPC::ID_STRINGITERATOR] [[iterator]]
6
5
  // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = uint32_t, INTERFACE_ID = RPC::ID_VALUEITERATOR] [[iterator]]
7
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = RPC::Environment, INTERFACE_ID = RPC::ID_ENVIRONMENTITERATOR] [[iterator]]
8
6
  // - class Exchange::IButler
9
7
  // - class Exchange::IButler::INotification
10
8
  //
11
9
  // secure code enabled:
12
10
  // - instance verification enabled
@@ -29,200 +27,10 @@
29
27
  // -----------------------------------------------------------------
30
28
  // STUBS
31
29
  // -----------------------------------------------------------------
32
30
 
33
31
  //
34
- // RPC::IIteratorTypeInstance_bd6e04b8d151c1f7 interface stub definitions
35
- //
36
- // Methods:
37
- // (0) virtual bool Next(string&) = 0
38
- // (1) virtual bool Previous(string&) = 0
39
- // (2) virtual void Reset(const uint32_t) = 0
40
- // (3) virtual bool IsValid() const = 0
41
- // (4) virtual uint32_t Count() const = 0
42
- // (5) virtual string Current() const = 0
43
- //
44
-
45
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods[] = {
46
- // (0) virtual bool Next(string&) = 0
47
- //
48
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
49
- Core::hresult hresult = Core::ERROR_NONE;
50
-
51
- hresult = [&]() -> Core::hresult {
52
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
53
-
54
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
55
-
56
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
57
- ASSERT(implementation != nullptr);
58
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
59
-
60
- string _info{};
61
-
62
- bool result = implementation->Next(_info);
63
-
64
- RPC::Data::Frame::Writer writer(message->Response().Writer());
65
- writer.Boolean(result);
66
- writer.Text(_info);
67
-
68
- return (Core::ERROR_NONE);
69
- } ();
70
-
71
- if (hresult != Core::ERROR_NONE) {
72
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 0, hresult);
73
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
74
- }
75
- },
76
-
77
- // (1) virtual bool Previous(string&) = 0
78
- //
79
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
80
- Core::hresult hresult = Core::ERROR_NONE;
81
-
82
- hresult = [&]() -> Core::hresult {
83
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
84
-
85
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
86
-
87
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
88
- ASSERT(implementation != nullptr);
89
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
90
-
91
- string _info{};
92
-
93
- bool result = implementation->Previous(_info);
94
-
95
- RPC::Data::Frame::Writer writer(message->Response().Writer());
96
- writer.Boolean(result);
97
- writer.Text(_info);
98
-
99
- return (Core::ERROR_NONE);
100
- } ();
101
-
102
- if (hresult != Core::ERROR_NONE) {
103
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 1, hresult);
104
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
105
- }
106
- },
107
-
108
- // (2) virtual void Reset(const uint32_t) = 0
109
- //
110
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
111
- Core::hresult hresult = Core::ERROR_NONE;
112
-
113
- hresult = [&]() -> Core::hresult {
114
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
115
-
116
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
117
-
118
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
119
- ASSERT(implementation != nullptr);
120
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
121
-
122
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
123
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
124
- const uint32_t _position = reader.Number<uint32_t>();
125
-
126
- implementation->Reset(_position);
127
-
128
- return (Core::ERROR_NONE);
129
- } ();
130
-
131
- if (hresult != Core::ERROR_NONE) {
132
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 2, hresult);
133
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
134
- }
135
- },
136
-
137
- // (3) virtual bool IsValid() const = 0
138
- //
139
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
140
- Core::hresult hresult = Core::ERROR_NONE;
141
-
142
- hresult = [&]() -> Core::hresult {
143
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
144
-
145
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
146
-
147
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
148
- ASSERT(implementation != nullptr);
149
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
150
-
151
- bool result = implementation->IsValid();
152
-
153
- RPC::Data::Frame::Writer writer(message->Response().Writer());
154
- writer.Boolean(result);
155
-
156
- return (Core::ERROR_NONE);
157
- } ();
158
-
159
- if (hresult != Core::ERROR_NONE) {
160
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 3, hresult);
161
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
162
- }
163
- },
164
-
165
- // (4) virtual uint32_t Count() const = 0
166
- //
167
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
168
- Core::hresult hresult = Core::ERROR_NONE;
169
-
170
- hresult = [&]() -> Core::hresult {
171
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
172
-
173
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
174
-
175
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
176
- ASSERT(implementation != nullptr);
177
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
178
-
179
- uint32_t result = implementation->Count();
180
-
181
- RPC::Data::Frame::Writer writer(message->Response().Writer());
182
- writer.Number<uint32_t>(result);
183
-
184
- return (Core::ERROR_NONE);
185
- } ();
186
-
187
- if (hresult != Core::ERROR_NONE) {
188
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 4, hresult);
189
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
190
- }
191
- },
192
-
193
- // (5) virtual string Current() const = 0
194
- //
195
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
196
- Core::hresult hresult = Core::ERROR_NONE;
197
-
198
- hresult = [&]() -> Core::hresult {
199
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
200
-
201
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
202
-
203
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
204
- ASSERT(implementation != nullptr);
205
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
206
-
207
- string result = implementation->Current();
208
-
209
- RPC::Data::Frame::Writer writer(message->Response().Writer());
210
- writer.Text(result);
211
-
212
- return (Core::ERROR_NONE);
213
- } ();
214
-
215
- if (hresult != Core::ERROR_NONE) {
216
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 5, hresult);
217
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
218
- }
219
- }
220
- , nullptr
221
- }; // RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods
222
-
223
- //
224
32
  // RPC::IIteratorTypeInstance_60eba5a793c685ea interface stub definitions
225
33
  //
226
34
  // Methods:
227
35
  // (0) virtual bool Next(uint32_t&) = 0
228
36
  // (1) virtual bool Previous(uint32_t&) = 0
@@ -409,206 +217,10 @@
409
217
  }
410
218
  , nullptr
411
219
  }; // RPCIteratorTypeInstance_60eba5a793c685eaStubMethods
412
220
 
413
221
  //
414
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface stub definitions
415
- //
416
- // Methods:
417
- // (0) virtual bool Next(RPC::Environment&) = 0
418
- // (1) virtual bool Previous(RPC::Environment&) = 0
419
- // (2) virtual void Reset(const uint32_t) = 0
420
- // (3) virtual bool IsValid() const = 0
421
- // (4) virtual uint32_t Count() const = 0
422
- // (5) virtual RPC::Environment Current() const = 0
423
- //
424
-
425
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods[] = {
426
- // (0) virtual bool Next(RPC::Environment&) = 0
427
- //
428
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
429
- Core::hresult hresult = Core::ERROR_NONE;
430
-
431
- hresult = [&]() -> Core::hresult {
432
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
433
-
434
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
435
-
436
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
437
- ASSERT(implementation != nullptr);
438
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
439
-
440
- RPC::Environment _info{};
441
-
442
- bool result = implementation->Next(_info);
443
-
444
- RPC::Data::Frame::Writer writer(message->Response().Writer());
445
- writer.Boolean(result);
446
- writer.Text(_info.Key);
447
- writer.Text(_info.Value);
448
- writer.Number<RPC::Environment::scope>(_info.Scope);
449
-
450
- return (Core::ERROR_NONE);
451
- } ();
452
-
453
- if (hresult != Core::ERROR_NONE) {
454
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 0, hresult);
455
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
456
- }
457
- },
458
-
459
- // (1) virtual bool Previous(RPC::Environment&) = 0
460
- //
461
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
462
- Core::hresult hresult = Core::ERROR_NONE;
463
-
464
- hresult = [&]() -> Core::hresult {
465
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
466
-
467
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
468
-
469
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
470
- ASSERT(implementation != nullptr);
471
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
472
-
473
- RPC::Environment _info{};
474
-
475
- bool result = implementation->Previous(_info);
476
-
477
- RPC::Data::Frame::Writer writer(message->Response().Writer());
478
- writer.Boolean(result);
479
- writer.Text(_info.Key);
480
- writer.Text(_info.Value);
481
- writer.Number<RPC::Environment::scope>(_info.Scope);
482
-
483
- return (Core::ERROR_NONE);
484
- } ();
485
-
486
- if (hresult != Core::ERROR_NONE) {
487
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 1, hresult);
488
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
489
- }
490
- },
491
-
492
- // (2) virtual void Reset(const uint32_t) = 0
493
- //
494
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
495
- Core::hresult hresult = Core::ERROR_NONE;
496
-
497
- hresult = [&]() -> Core::hresult {
498
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
499
-
500
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
501
-
502
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
503
- ASSERT(implementation != nullptr);
504
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
505
-
506
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
507
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
508
- const uint32_t _position = reader.Number<uint32_t>();
509
-
510
- implementation->Reset(_position);
511
-
512
- return (Core::ERROR_NONE);
513
- } ();
514
-
515
- if (hresult != Core::ERROR_NONE) {
516
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 2, hresult);
517
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
518
- }
519
- },
520
-
521
- // (3) virtual bool IsValid() const = 0
522
- //
523
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
524
- Core::hresult hresult = Core::ERROR_NONE;
525
-
526
- hresult = [&]() -> Core::hresult {
527
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
528
-
529
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
530
-
531
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
532
- ASSERT(implementation != nullptr);
533
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
534
-
535
- bool result = implementation->IsValid();
536
-
537
- RPC::Data::Frame::Writer writer(message->Response().Writer());
538
- writer.Boolean(result);
539
-
540
- return (Core::ERROR_NONE);
541
- } ();
542
-
543
- if (hresult != Core::ERROR_NONE) {
544
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 3, hresult);
545
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
546
- }
547
- },
548
-
549
- // (4) virtual uint32_t Count() const = 0
550
- //
551
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
552
- Core::hresult hresult = Core::ERROR_NONE;
553
-
554
- hresult = [&]() -> Core::hresult {
555
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
556
-
557
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
558
-
559
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
560
- ASSERT(implementation != nullptr);
561
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
562
-
563
- uint32_t result = implementation->Count();
564
-
565
- RPC::Data::Frame::Writer writer(message->Response().Writer());
566
- writer.Number<uint32_t>(result);
567
-
568
- return (Core::ERROR_NONE);
569
- } ();
570
-
571
- if (hresult != Core::ERROR_NONE) {
572
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 4, hresult);
573
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
574
- }
575
- },
576
-
577
- // (5) virtual RPC::Environment Current() const = 0
578
- //
579
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
580
- Core::hresult hresult = Core::ERROR_NONE;
581
-
582
- hresult = [&]() -> Core::hresult {
583
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
584
-
585
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
586
-
587
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
588
- ASSERT(implementation != nullptr);
589
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
590
-
591
- RPC::Environment result = implementation->Current();
592
-
593
- RPC::Data::Frame::Writer writer(message->Response().Writer());
594
- writer.Text(result.Key);
595
- writer.Text(result.Value);
596
- writer.Number<RPC::Environment::scope>(result.Scope);
597
-
598
- return (Core::ERROR_NONE);
599
- } ();
600
-
601
- if (hresult != Core::ERROR_NONE) {
602
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 5, hresult);
603
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
604
- }
605
- }
606
- , nullptr
607
- }; // RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods
608
-
609
- //
610
222
  // Exchange::IButler interface stub definitions
611
223
  //
612
224
  // Methods:
613
225
  // (0) virtual Core::hresult Register(Exchange::IButler::INotification* const) = 0
614
226
  // (1) virtual Core::hresult Unregister(const Exchange::IButler::INotification*) = 0
@@ -1165,199 +777,10 @@
1165
777
  // -----------------------------------------------------------------
1166
778
  // PROXIES
1167
779
  // -----------------------------------------------------------------
1168
780
 
1169
781
  //
1170
- // RPC::IIteratorTypeInstance_bd6e04b8d151c1f7 interface proxy definitions
1171
- //
1172
- // Methods:
1173
- // (0) virtual bool Next(string&) = 0
1174
- // (1) virtual bool Previous(string&) = 0
1175
- // (2) virtual void Reset(const uint32_t) = 0
1176
- // (3) virtual bool IsValid() const = 0
1177
- // (4) virtual uint32_t Count() const = 0
1178
- // (5) virtual string Current() const = 0
1179
- //
1180
-
1181
- class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>> {
1182
- public:
1183
- RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
1184
- : BaseClass(channel, implementation, otherSideInformed)
1185
- {
1186
- }
1187
-
1188
- bool Next(string& _info) override
1189
- {
1190
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
1191
-
1192
- bool result{};
1193
-
1194
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1195
- if (hresult == Core::ERROR_NONE) {
1196
- hresult = [&]() -> Core::hresult {
1197
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1198
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1199
- result = reader.Boolean();
1200
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1201
- const uint16_t _infoPeekedLen__ = reader.PeekNumber<uint16_t>();
1202
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _infoPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1203
- _info = reader.Text();
1204
-
1205
- return (Core::ERROR_NONE);
1206
- } ();
1207
- } else {
1208
- ASSERT((hresult & COM_ERROR) != 0);
1209
- }
1210
-
1211
- if ((hresult & COM_ERROR) != 0) {
1212
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 0, hresult);
1213
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1214
- }
1215
-
1216
- return (result);
1217
- }
1218
-
1219
- bool Previous(string& _info) override
1220
- {
1221
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
1222
-
1223
- bool result{};
1224
-
1225
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1226
- if (hresult == Core::ERROR_NONE) {
1227
- hresult = [&]() -> Core::hresult {
1228
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1229
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1230
- result = reader.Boolean();
1231
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1232
- const uint16_t _infoPeekedLen__ = reader.PeekNumber<uint16_t>();
1233
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _infoPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1234
- _info = reader.Text();
1235
-
1236
- return (Core::ERROR_NONE);
1237
- } ();
1238
- } else {
1239
- ASSERT((hresult & COM_ERROR) != 0);
1240
- }
1241
-
1242
- if ((hresult & COM_ERROR) != 0) {
1243
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 1, hresult);
1244
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1245
- }
1246
-
1247
- return (result);
1248
- }
1249
-
1250
- void Reset(const uint32_t _position) override
1251
- {
1252
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
1253
-
1254
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
1255
- writer.Number<uint32_t>(_position);
1256
-
1257
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1258
- if (hresult == Core::ERROR_NONE) {
1259
- hresult = [&]() -> Core::hresult {
1260
-
1261
- return (Core::ERROR_NONE);
1262
- } ();
1263
- } else {
1264
- ASSERT((hresult & COM_ERROR) != 0);
1265
- }
1266
-
1267
- if ((hresult & COM_ERROR) != 0) {
1268
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 2, hresult);
1269
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1270
- }
1271
- }
1272
-
1273
- bool IsValid() const override
1274
- {
1275
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
1276
-
1277
- bool result{};
1278
-
1279
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1280
- if (hresult == Core::ERROR_NONE) {
1281
- hresult = [&]() -> Core::hresult {
1282
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1283
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1284
- result = reader.Boolean();
1285
-
1286
- return (Core::ERROR_NONE);
1287
- } ();
1288
- } else {
1289
- ASSERT((hresult & COM_ERROR) != 0);
1290
- }
1291
-
1292
- if ((hresult & COM_ERROR) != 0) {
1293
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 3, hresult);
1294
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1295
- }
1296
-
1297
- return (result);
1298
- }
1299
-
1300
- uint32_t Count() const override
1301
- {
1302
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
1303
-
1304
- uint32_t result{};
1305
-
1306
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1307
- if (hresult == Core::ERROR_NONE) {
1308
- hresult = [&]() -> Core::hresult {
1309
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1310
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1311
- result = reader.Number<uint32_t>();
1312
-
1313
- return (Core::ERROR_NONE);
1314
- } ();
1315
- } else {
1316
- ASSERT((hresult & COM_ERROR) != 0);
1317
- }
1318
-
1319
- if ((hresult & COM_ERROR) != 0) {
1320
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 4, hresult);
1321
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1322
- }
1323
-
1324
- return (result);
1325
- }
1326
-
1327
- string Current() const override
1328
- {
1329
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1330
-
1331
- string result{};
1332
-
1333
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1334
- if (hresult == Core::ERROR_NONE) {
1335
- hresult = [&]() -> Core::hresult {
1336
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1337
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1338
- const uint16_t resultPeekedLen__ = reader.PeekNumber<uint16_t>();
1339
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + resultPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1340
- result = reader.Text();
1341
-
1342
- return (Core::ERROR_NONE);
1343
- } ();
1344
- } else {
1345
- ASSERT((hresult & COM_ERROR) != 0);
1346
- }
1347
-
1348
- if ((hresult & COM_ERROR) != 0) {
1349
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 5, hresult);
1350
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1351
- }
1352
-
1353
- return (result);
1354
- }
1355
-
1356
- }; // class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy
1357
-
1358
- //
1359
782
  // RPC::IIteratorTypeInstance_60eba5a793c685ea interface proxy definitions
1360
783
  //
1361
784
  // Methods:
1362
785
  // (0) virtual bool Next(uint32_t&) = 0
1363
786
  // (1) virtual bool Previous(uint32_t&) = 0
@@ -1537,217 +960,10 @@
1537
960
  }
1538
961
 
1539
962
  }; // class RPCIteratorTypeInstance_60eba5a793c685eaProxy
1540
963
 
1541
964
  //
1542
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface proxy definitions
1543
- //
1544
- // Methods:
1545
- // (0) virtual bool Next(RPC::Environment&) = 0
1546
- // (1) virtual bool Previous(RPC::Environment&) = 0
1547
- // (2) virtual void Reset(const uint32_t) = 0
1548
- // (3) virtual bool IsValid() const = 0
1549
- // (4) virtual uint32_t Count() const = 0
1550
- // (5) virtual RPC::Environment Current() const = 0
1551
- //
1552
-
1553
- class RPCIteratorTypeInstance_195e88cf7f955a2eProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>> {
1554
- public:
1555
- RPCIteratorTypeInstance_195e88cf7f955a2eProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
1556
- : BaseClass(channel, implementation, otherSideInformed)
1557
- {
1558
- }
1559
-
1560
- bool Next(RPC::Environment& _info) override
1561
- {
1562
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
1563
-
1564
- bool result{};
1565
-
1566
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1567
- if (hresult == Core::ERROR_NONE) {
1568
- hresult = [&]() -> Core::hresult {
1569
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1570
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1571
- result = reader.Boolean();
1572
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1573
- const uint16_t _info_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
1574
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1575
- _info.Key = reader.Text();
1576
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1577
- const uint16_t _info_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
1578
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1579
- _info.Value = reader.Text();
1580
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1581
- _info.Scope = reader.Number<RPC::Environment::scope>();
1582
-
1583
- return (Core::ERROR_NONE);
1584
- } ();
1585
- } else {
1586
- ASSERT((hresult & COM_ERROR) != 0);
1587
- }
1588
-
1589
- if ((hresult & COM_ERROR) != 0) {
1590
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 0, hresult);
1591
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1592
- }
1593
-
1594
- return (result);
1595
- }
1596
-
1597
- bool Previous(RPC::Environment& _info) override
1598
- {
1599
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
1600
-
1601
- bool result{};
1602
-
1603
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1604
- if (hresult == Core::ERROR_NONE) {
1605
- hresult = [&]() -> Core::hresult {
1606
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1607
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1608
- result = reader.Boolean();
1609
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1610
- const uint16_t _info_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
1611
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1612
- _info.Key = reader.Text();
1613
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1614
- const uint16_t _info_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
1615
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1616
- _info.Value = reader.Text();
1617
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1618
- _info.Scope = reader.Number<RPC::Environment::scope>();
1619
-
1620
- return (Core::ERROR_NONE);
1621
- } ();
1622
- } else {
1623
- ASSERT((hresult & COM_ERROR) != 0);
1624
- }
1625
-
1626
- if ((hresult & COM_ERROR) != 0) {
1627
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 1, hresult);
1628
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1629
- }
1630
-
1631
- return (result);
1632
- }
1633
-
1634
- void Reset(const uint32_t _position) override
1635
- {
1636
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
1637
-
1638
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
1639
- writer.Number<uint32_t>(_position);
1640
-
1641
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1642
- if (hresult == Core::ERROR_NONE) {
1643
- hresult = [&]() -> Core::hresult {
1644
-
1645
- return (Core::ERROR_NONE);
1646
- } ();
1647
- } else {
1648
- ASSERT((hresult & COM_ERROR) != 0);
1649
- }
1650
-
1651
- if ((hresult & COM_ERROR) != 0) {
1652
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 2, hresult);
1653
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1654
- }
1655
- }
1656
-
1657
- bool IsValid() const override
1658
- {
1659
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
1660
-
1661
- bool result{};
1662
-
1663
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1664
- if (hresult == Core::ERROR_NONE) {
1665
- hresult = [&]() -> Core::hresult {
1666
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1667
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1668
- result = reader.Boolean();
1669
-
1670
- return (Core::ERROR_NONE);
1671
- } ();
1672
- } else {
1673
- ASSERT((hresult & COM_ERROR) != 0);
1674
- }
1675
-
1676
- if ((hresult & COM_ERROR) != 0) {
1677
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 3, hresult);
1678
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1679
- }
1680
-
1681
- return (result);
1682
- }
1683
-
1684
- uint32_t Count() const override
1685
- {
1686
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
1687
-
1688
- uint32_t result{};
1689
-
1690
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1691
- if (hresult == Core::ERROR_NONE) {
1692
- hresult = [&]() -> Core::hresult {
1693
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1694
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1695
- result = reader.Number<uint32_t>();
1696
-
1697
- return (Core::ERROR_NONE);
1698
- } ();
1699
- } else {
1700
- ASSERT((hresult & COM_ERROR) != 0);
1701
- }
1702
-
1703
- if ((hresult & COM_ERROR) != 0) {
1704
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 4, hresult);
1705
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1706
- }
1707
-
1708
- return (result);
1709
- }
1710
-
1711
- RPC::Environment Current() const override
1712
- {
1713
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1714
-
1715
- RPC::Environment result{};
1716
-
1717
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1718
- if (hresult == Core::ERROR_NONE) {
1719
- hresult = [&]() -> Core::hresult {
1720
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1721
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1722
- const uint16_t result_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
1723
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + result_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1724
- result.Key = reader.Text();
1725
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1726
- const uint16_t result_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
1727
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + result_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1728
- result.Value = reader.Text();
1729
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1730
- result.Scope = reader.Number<RPC::Environment::scope>();
1731
-
1732
- return (Core::ERROR_NONE);
1733
- } ();
1734
- } else {
1735
- ASSERT((hresult & COM_ERROR) != 0);
1736
- }
1737
-
1738
- if ((hresult & COM_ERROR) != 0) {
1739
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 5, hresult);
1740
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1741
- }
1742
-
1743
- return (result);
1744
- }
1745
-
1746
- }; // class RPCIteratorTypeInstance_195e88cf7f955a2eProxy
1747
-
1748
- //
1749
965
  // Exchange::IButler interface proxy definitions
1750
966
  //
1751
967
  // Methods:
1752
968
  // (0) virtual Core::hresult Register(Exchange::IButler::INotification* const) = 0
1753
969
  // (1) virtual Core::hresult Unregister(const Exchange::IButler::INotification*) = 0
@@ -2274,33 +1490,27 @@
2274
1490
  // -----------------------------------------------------------------
2275
1491
  // REGISTRATION
2276
1492
  // -----------------------------------------------------------------
2277
1493
  namespace {
2278
1494
 
2279
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods> RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub;
2280
1495
  typedef ProxyStub::UnknownStubType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaStubMethods> RPCIteratorTypeInstance_60eba5a793c685eaStub;
2281
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods> RPCIteratorTypeInstance_195e88cf7f955a2eStub;
2282
1496
  typedef ProxyStub::UnknownStubType<Exchange::IButler, ExchangeButlerStubMethods> ExchangeButlerStub;
2283
1497
  typedef ProxyStub::UnknownStubType<Exchange::IButler::INotification, ExchangeButlerNotificationStubMethods> ExchangeButlerNotificationStub;
2284
1498
 
2285
1499
  static class Instantiation {
2286
1500
  public:
2287
1501
  Instantiation()
2288
1502
  {
2289
1503
  const RPC::SecureProxyStubType security = static_cast<RPC::SecureProxyStubType>(static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_SECURE) | static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_COHERENT));
2290
1504
 
2291
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy, RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub>(security);
2292
1505
  RPC::Administrator::Instance().Announce<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaProxy, RPCIteratorTypeInstance_60eba5a793c685eaStub>(security);
2293
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eProxy, RPCIteratorTypeInstance_195e88cf7f955a2eStub>(security);
2294
1506
  RPC::Administrator::Instance().Announce<Exchange::IButler, ExchangeButlerProxy, ExchangeButlerStub>(security);
2295
1507
  RPC::Administrator::Instance().Announce<Exchange::IButler::INotification, ExchangeButlerNotificationProxy, ExchangeButlerNotificationStub>(security);
2296
1508
  }
2297
1509
  ~Instantiation()
2298
1510
  {
2299
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>>();
2300
1511
  RPC::Administrator::Instance().Recall<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>>();
2301
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>>();
2302
1512
  RPC::Administrator::Instance().Recall<Exchange::IButler>();
2303
1513
  RPC::Administrator::Instance().Recall<Exchange::IButler::INotification>();
2304
1514
  }
2305
1515
  } ProxyStubRegistration;
2306
1516
 
{baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_Capture.cpp RENAMED
@@ -1,55 +0,0 @@
1
- //
2
- // generated automatically from "ICapture.h"
3
- //
4
- // implements COM-RPC proxy stubs for:
5
- //
6
- // secure code enabled:
7
- // - instance verification enabled
8
- // - range verification enabled
9
- // - frame coherency verification enabled
10
- //
11
-
12
- #include "Module.h"
13
- #include "ICapture.h"
14
-
15
- #include <com/com.h>
16
-
17
- namespace Thunder {
18
-
19
- namespace ProxyStubs {
20
-
21
- PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
22
- PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
23
-
24
- // -----------------------------------------------------------------
25
- // STUBS
26
- // -----------------------------------------------------------------
27
-
28
- // -----------------------------------------------------------------
29
- // PROXIES
30
- // -----------------------------------------------------------------
31
-
32
- POP_WARNING()
33
- POP_WARNING()
34
-
35
- // -----------------------------------------------------------------
36
- // REGISTRATION
37
- // -----------------------------------------------------------------
38
- namespace {
39
-
40
-
41
- static class Instantiation {
42
- public:
43
- Instantiation()
44
- {
45
- }
46
- ~Instantiation()
47
- {
48
- }
49
- } ProxyStubRegistration;
50
-
51
- } // namespace
52
-
53
- } // namespace ProxyStubs
54
-
55
- }
{baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_ContentDecryption.cpp RENAMED
@@ -1,12 +1,10 @@
1
1
  //
2
2
  // generated automatically from "IContentDecryption.h"
3
3
  //
4
4
  // implements COM-RPC proxy stubs for:
5
5
  // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = RPC::ID_STRINGITERATOR] [[iterator]]
6
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = uint32_t, INTERFACE_ID = RPC::ID_VALUEITERATOR] [[iterator]]
7
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = RPC::Environment, INTERFACE_ID = RPC::ID_ENVIRONMENTITERATOR] [[iterator]]
8
6
  // - class Exchange::IContentDecryption
9
7
  // - class Exchange::IContentDecryption::INotification
10
8
  //
11
9
  // secure code enabled:
12
10
  // - instance verification enabled
@@ -219,396 +217,10 @@
219
217
  }
220
218
  , nullptr
221
219
  }; // RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods
222
220
 
223
221
  //
224
- // RPC::IIteratorTypeInstance_60eba5a793c685ea interface stub definitions
225
- //
226
- // Methods:
227
- // (0) virtual bool Next(uint32_t&) = 0
228
- // (1) virtual bool Previous(uint32_t&) = 0
229
- // (2) virtual void Reset(const uint32_t) = 0
230
- // (3) virtual bool IsValid() const = 0
231
- // (4) virtual uint32_t Count() const = 0
232
- // (5) virtual uint32_t Current() const = 0
233
- //
234
-
235
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_60eba5a793c685eaStubMethods[] = {
236
- // (0) virtual bool Next(uint32_t&) = 0
237
- //
238
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
239
- Core::hresult hresult = Core::ERROR_NONE;
240
-
241
- hresult = [&]() -> Core::hresult {
242
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
243
-
244
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
245
-
246
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
247
- ASSERT(implementation != nullptr);
248
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
249
-
250
- uint32_t _info{};
251
-
252
- bool result = implementation->Next(_info);
253
-
254
- RPC::Data::Frame::Writer writer(message->Response().Writer());
255
- writer.Boolean(result);
256
- writer.Number<uint32_t>(_info);
257
-
258
- return (Core::ERROR_NONE);
259
- } ();
260
-
261
- if (hresult != Core::ERROR_NONE) {
262
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 0, hresult);
263
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
264
- }
265
- },
266
-
267
- // (1) virtual bool Previous(uint32_t&) = 0
268
- //
269
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
270
- Core::hresult hresult = Core::ERROR_NONE;
271
-
272
- hresult = [&]() -> Core::hresult {
273
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
274
-
275
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
276
-
277
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
278
- ASSERT(implementation != nullptr);
279
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
280
-
281
- uint32_t _info{};
282
-
283
- bool result = implementation->Previous(_info);
284
-
285
- RPC::Data::Frame::Writer writer(message->Response().Writer());
286
- writer.Boolean(result);
287
- writer.Number<uint32_t>(_info);
288
-
289
- return (Core::ERROR_NONE);
290
- } ();
291
-
292
- if (hresult != Core::ERROR_NONE) {
293
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 1, hresult);
294
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
295
- }
296
- },
297
-
298
- // (2) virtual void Reset(const uint32_t) = 0
299
- //
300
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
301
- Core::hresult hresult = Core::ERROR_NONE;
302
-
303
- hresult = [&]() -> Core::hresult {
304
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
305
-
306
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
307
-
308
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
309
- ASSERT(implementation != nullptr);
310
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
311
-
312
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
313
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
314
- const uint32_t _position = reader.Number<uint32_t>();
315
-
316
- implementation->Reset(_position);
317
-
318
- return (Core::ERROR_NONE);
319
- } ();
320
-
321
- if (hresult != Core::ERROR_NONE) {
322
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 2, hresult);
323
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
324
- }
325
- },
326
-
327
- // (3) virtual bool IsValid() const = 0
328
- //
329
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
330
- Core::hresult hresult = Core::ERROR_NONE;
331
-
332
- hresult = [&]() -> Core::hresult {
333
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
334
-
335
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
336
-
337
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
338
- ASSERT(implementation != nullptr);
339
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
340
-
341
- bool result = implementation->IsValid();
342
-
343
- RPC::Data::Frame::Writer writer(message->Response().Writer());
344
- writer.Boolean(result);
345
-
346
- return (Core::ERROR_NONE);
347
- } ();
348
-
349
- if (hresult != Core::ERROR_NONE) {
350
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 3, hresult);
351
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
352
- }
353
- },
354
-
355
- // (4) virtual uint32_t Count() const = 0
356
- //
357
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
358
- Core::hresult hresult = Core::ERROR_NONE;
359
-
360
- hresult = [&]() -> Core::hresult {
361
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
362
-
363
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
364
-
365
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
366
- ASSERT(implementation != nullptr);
367
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
368
-
369
- uint32_t result = implementation->Count();
370
-
371
- RPC::Data::Frame::Writer writer(message->Response().Writer());
372
- writer.Number<uint32_t>(result);
373
-
374
- return (Core::ERROR_NONE);
375
- } ();
376
-
377
- if (hresult != Core::ERROR_NONE) {
378
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 4, hresult);
379
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
380
- }
381
- },
382
-
383
- // (5) virtual uint32_t Current() const = 0
384
- //
385
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
386
- Core::hresult hresult = Core::ERROR_NONE;
387
-
388
- hresult = [&]() -> Core::hresult {
389
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
390
-
391
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
392
-
393
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
394
- ASSERT(implementation != nullptr);
395
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
396
-
397
- uint32_t result = implementation->Current();
398
-
399
- RPC::Data::Frame::Writer writer(message->Response().Writer());
400
- writer.Number<uint32_t>(result);
401
-
402
- return (Core::ERROR_NONE);
403
- } ();
404
-
405
- if (hresult != Core::ERROR_NONE) {
406
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 5, hresult);
407
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
408
- }
409
- }
410
- , nullptr
411
- }; // RPCIteratorTypeInstance_60eba5a793c685eaStubMethods
412
-
413
- //
414
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface stub definitions
415
- //
416
- // Methods:
417
- // (0) virtual bool Next(RPC::Environment&) = 0
418
- // (1) virtual bool Previous(RPC::Environment&) = 0
419
- // (2) virtual void Reset(const uint32_t) = 0
420
- // (3) virtual bool IsValid() const = 0
421
- // (4) virtual uint32_t Count() const = 0
422
- // (5) virtual RPC::Environment Current() const = 0
423
- //
424
-
425
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods[] = {
426
- // (0) virtual bool Next(RPC::Environment&) = 0
427
- //
428
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
429
- Core::hresult hresult = Core::ERROR_NONE;
430
-
431
- hresult = [&]() -> Core::hresult {
432
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
433
-
434
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
435
-
436
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
437
- ASSERT(implementation != nullptr);
438
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
439
-
440
- RPC::Environment _info{};
441
-
442
- bool result = implementation->Next(_info);
443
-
444
- RPC::Data::Frame::Writer writer(message->Response().Writer());
445
- writer.Boolean(result);
446
- writer.Text(_info.Key);
447
- writer.Text(_info.Value);
448
- writer.Number<RPC::Environment::scope>(_info.Scope);
449
-
450
- return (Core::ERROR_NONE);
451
- } ();
452
-
453
- if (hresult != Core::ERROR_NONE) {
454
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 0, hresult);
455
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
456
- }
457
- },
458
-
459
- // (1) virtual bool Previous(RPC::Environment&) = 0
460
- //
461
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
462
- Core::hresult hresult = Core::ERROR_NONE;
463
-
464
- hresult = [&]() -> Core::hresult {
465
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
466
-
467
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
468
-
469
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
470
- ASSERT(implementation != nullptr);
471
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
472
-
473
- RPC::Environment _info{};
474
-
475
- bool result = implementation->Previous(_info);
476
-
477
- RPC::Data::Frame::Writer writer(message->Response().Writer());
478
- writer.Boolean(result);
479
- writer.Text(_info.Key);
480
- writer.Text(_info.Value);
481
- writer.Number<RPC::Environment::scope>(_info.Scope);
482
-
483
- return (Core::ERROR_NONE);
484
- } ();
485
-
486
- if (hresult != Core::ERROR_NONE) {
487
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 1, hresult);
488
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
489
- }
490
- },
491
-
492
- // (2) virtual void Reset(const uint32_t) = 0
493
- //
494
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
495
- Core::hresult hresult = Core::ERROR_NONE;
496
-
497
- hresult = [&]() -> Core::hresult {
498
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
499
-
500
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
501
-
502
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
503
- ASSERT(implementation != nullptr);
504
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
505
-
506
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
507
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
508
- const uint32_t _position = reader.Number<uint32_t>();
509
-
510
- implementation->Reset(_position);
511
-
512
- return (Core::ERROR_NONE);
513
- } ();
514
-
515
- if (hresult != Core::ERROR_NONE) {
516
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 2, hresult);
517
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
518
- }
519
- },
520
-
521
- // (3) virtual bool IsValid() const = 0
522
- //
523
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
524
- Core::hresult hresult = Core::ERROR_NONE;
525
-
526
- hresult = [&]() -> Core::hresult {
527
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
528
-
529
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
530
-
531
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
532
- ASSERT(implementation != nullptr);
533
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
534
-
535
- bool result = implementation->IsValid();
536
-
537
- RPC::Data::Frame::Writer writer(message->Response().Writer());
538
- writer.Boolean(result);
539
-
540
- return (Core::ERROR_NONE);
541
- } ();
542
-
543
- if (hresult != Core::ERROR_NONE) {
544
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 3, hresult);
545
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
546
- }
547
- },
548
-
549
- // (4) virtual uint32_t Count() const = 0
550
- //
551
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
552
- Core::hresult hresult = Core::ERROR_NONE;
553
-
554
- hresult = [&]() -> Core::hresult {
555
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
556
-
557
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
558
-
559
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
560
- ASSERT(implementation != nullptr);
561
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
562
-
563
- uint32_t result = implementation->Count();
564
-
565
- RPC::Data::Frame::Writer writer(message->Response().Writer());
566
- writer.Number<uint32_t>(result);
567
-
568
- return (Core::ERROR_NONE);
569
- } ();
570
-
571
- if (hresult != Core::ERROR_NONE) {
572
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 4, hresult);
573
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
574
- }
575
- },
576
-
577
- // (5) virtual RPC::Environment Current() const = 0
578
- //
579
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
580
- Core::hresult hresult = Core::ERROR_NONE;
581
-
582
- hresult = [&]() -> Core::hresult {
583
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
584
-
585
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
586
-
587
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
588
- ASSERT(implementation != nullptr);
589
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
590
-
591
- RPC::Environment result = implementation->Current();
592
-
593
- RPC::Data::Frame::Writer writer(message->Response().Writer());
594
- writer.Text(result.Key);
595
- writer.Text(result.Value);
596
- writer.Number<RPC::Environment::scope>(result.Scope);
597
-
598
- return (Core::ERROR_NONE);
599
- } ();
600
-
601
- if (hresult != Core::ERROR_NONE) {
602
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 5, hresult);
603
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
604
- }
605
- }
606
- , nullptr
607
- }; // RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods
608
-
609
- //
610
222
  // Exchange::IContentDecryption interface stub definitions
611
223
  //
612
224
  // Methods:
613
225
  // (0) virtual uint32_t Initialize(PluginHost::IShell*) = 0
614
226
  // (1) virtual void Deinitialize(PluginHost::IShell*) = 0
@@ -1143,400 +755,10 @@
1143
755
  }
1144
756
 
1145
757
  }; // class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy
1146
758
 
1147
759
  //
1148
- // RPC::IIteratorTypeInstance_60eba5a793c685ea interface proxy definitions
1149
- //
1150
- // Methods:
1151
- // (0) virtual bool Next(uint32_t&) = 0
1152
- // (1) virtual bool Previous(uint32_t&) = 0
1153
- // (2) virtual void Reset(const uint32_t) = 0
1154
- // (3) virtual bool IsValid() const = 0
1155
- // (4) virtual uint32_t Count() const = 0
1156
- // (5) virtual uint32_t Current() const = 0
1157
- //
1158
-
1159
- class RPCIteratorTypeInstance_60eba5a793c685eaProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>> {
1160
- public:
1161
- RPCIteratorTypeInstance_60eba5a793c685eaProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
1162
- : BaseClass(channel, implementation, otherSideInformed)
1163
- {
1164
- }
1165
-
1166
- bool Next(uint32_t& _info) override
1167
- {
1168
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
1169
-
1170
- bool result{};
1171
-
1172
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1173
- if (hresult == Core::ERROR_NONE) {
1174
- hresult = [&]() -> Core::hresult {
1175
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1176
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1177
- result = reader.Boolean();
1178
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1179
- _info = reader.Number<uint32_t>();
1180
-
1181
- return (Core::ERROR_NONE);
1182
- } ();
1183
- } else {
1184
- ASSERT((hresult & COM_ERROR) != 0);
1185
- }
1186
-
1187
- if ((hresult & COM_ERROR) != 0) {
1188
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 0, hresult);
1189
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1190
- }
1191
-
1192
- return (result);
1193
- }
1194
-
1195
- bool Previous(uint32_t& _info) override
1196
- {
1197
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
1198
-
1199
- bool result{};
1200
-
1201
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1202
- if (hresult == Core::ERROR_NONE) {
1203
- hresult = [&]() -> Core::hresult {
1204
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1205
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1206
- result = reader.Boolean();
1207
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1208
- _info = reader.Number<uint32_t>();
1209
-
1210
- return (Core::ERROR_NONE);
1211
- } ();
1212
- } else {
1213
- ASSERT((hresult & COM_ERROR) != 0);
1214
- }
1215
-
1216
- if ((hresult & COM_ERROR) != 0) {
1217
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 1, hresult);
1218
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1219
- }
1220
-
1221
- return (result);
1222
- }
1223
-
1224
- void Reset(const uint32_t _position) override
1225
- {
1226
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
1227
-
1228
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
1229
- writer.Number<uint32_t>(_position);
1230
-
1231
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1232
- if (hresult == Core::ERROR_NONE) {
1233
- hresult = [&]() -> Core::hresult {
1234
-
1235
- return (Core::ERROR_NONE);
1236
- } ();
1237
- } else {
1238
- ASSERT((hresult & COM_ERROR) != 0);
1239
- }
1240
-
1241
- if ((hresult & COM_ERROR) != 0) {
1242
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 2, hresult);
1243
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1244
- }
1245
- }
1246
-
1247
- bool IsValid() const override
1248
- {
1249
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
1250
-
1251
- bool result{};
1252
-
1253
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1254
- if (hresult == Core::ERROR_NONE) {
1255
- hresult = [&]() -> Core::hresult {
1256
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1257
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1258
- result = reader.Boolean();
1259
-
1260
- return (Core::ERROR_NONE);
1261
- } ();
1262
- } else {
1263
- ASSERT((hresult & COM_ERROR) != 0);
1264
- }
1265
-
1266
- if ((hresult & COM_ERROR) != 0) {
1267
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 3, hresult);
1268
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1269
- }
1270
-
1271
- return (result);
1272
- }
1273
-
1274
- uint32_t Count() const override
1275
- {
1276
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
1277
-
1278
- uint32_t result{};
1279
-
1280
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1281
- if (hresult == Core::ERROR_NONE) {
1282
- hresult = [&]() -> Core::hresult {
1283
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1284
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1285
- result = reader.Number<uint32_t>();
1286
-
1287
- return (Core::ERROR_NONE);
1288
- } ();
1289
- } else {
1290
- ASSERT((hresult & COM_ERROR) != 0);
1291
- }
1292
-
1293
- if ((hresult & COM_ERROR) != 0) {
1294
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 4, hresult);
1295
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1296
- }
1297
-
1298
- return (result);
1299
- }
1300
-
1301
- uint32_t Current() const override
1302
- {
1303
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1304
-
1305
- uint32_t result{};
1306
-
1307
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1308
- if (hresult == Core::ERROR_NONE) {
1309
- hresult = [&]() -> Core::hresult {
1310
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1311
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1312
- result = reader.Number<uint32_t>();
1313
-
1314
- return (Core::ERROR_NONE);
1315
- } ();
1316
- } else {
1317
- ASSERT((hresult & COM_ERROR) != 0);
1318
- }
1319
-
1320
- if ((hresult & COM_ERROR) != 0) {
1321
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 5, hresult);
1322
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1323
- }
1324
-
1325
- return (result);
1326
- }
1327
-
1328
- }; // class RPCIteratorTypeInstance_60eba5a793c685eaProxy
1329
-
1330
- //
1331
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface proxy definitions
1332
- //
1333
- // Methods:
1334
- // (0) virtual bool Next(RPC::Environment&) = 0
1335
- // (1) virtual bool Previous(RPC::Environment&) = 0
1336
- // (2) virtual void Reset(const uint32_t) = 0
1337
- // (3) virtual bool IsValid() const = 0
1338
- // (4) virtual uint32_t Count() const = 0
1339
- // (5) virtual RPC::Environment Current() const = 0
1340
- //
1341
-
1342
- class RPCIteratorTypeInstance_195e88cf7f955a2eProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>> {
1343
- public:
1344
- RPCIteratorTypeInstance_195e88cf7f955a2eProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
1345
- : BaseClass(channel, implementation, otherSideInformed)
1346
- {
1347
- }
1348
-
1349
- bool Next(RPC::Environment& _info) override
1350
- {
1351
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
1352
-
1353
- bool result{};
1354
-
1355
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1356
- if (hresult == Core::ERROR_NONE) {
1357
- hresult = [&]() -> Core::hresult {
1358
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1359
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1360
- result = reader.Boolean();
1361
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1362
- const uint16_t _info_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
1363
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1364
- _info.Key = reader.Text();
1365
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1366
- const uint16_t _info_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
1367
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1368
- _info.Value = reader.Text();
1369
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1370
- _info.Scope = reader.Number<RPC::Environment::scope>();
1371
-
1372
- return (Core::ERROR_NONE);
1373
- } ();
1374
- } else {
1375
- ASSERT((hresult & COM_ERROR) != 0);
1376
- }
1377
-
1378
- if ((hresult & COM_ERROR) != 0) {
1379
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 0, hresult);
1380
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1381
- }
1382
-
1383
- return (result);
1384
- }
1385
-
1386
- bool Previous(RPC::Environment& _info) override
1387
- {
1388
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
1389
-
1390
- bool result{};
1391
-
1392
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1393
- if (hresult == Core::ERROR_NONE) {
1394
- hresult = [&]() -> Core::hresult {
1395
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1396
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1397
- result = reader.Boolean();
1398
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1399
- const uint16_t _info_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
1400
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1401
- _info.Key = reader.Text();
1402
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1403
- const uint16_t _info_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
1404
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1405
- _info.Value = reader.Text();
1406
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1407
- _info.Scope = reader.Number<RPC::Environment::scope>();
1408
-
1409
- return (Core::ERROR_NONE);
1410
- } ();
1411
- } else {
1412
- ASSERT((hresult & COM_ERROR) != 0);
1413
- }
1414
-
1415
- if ((hresult & COM_ERROR) != 0) {
1416
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 1, hresult);
1417
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1418
- }
1419
-
1420
- return (result);
1421
- }
1422
-
1423
- void Reset(const uint32_t _position) override
1424
- {
1425
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
1426
-
1427
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
1428
- writer.Number<uint32_t>(_position);
1429
-
1430
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1431
- if (hresult == Core::ERROR_NONE) {
1432
- hresult = [&]() -> Core::hresult {
1433
-
1434
- return (Core::ERROR_NONE);
1435
- } ();
1436
- } else {
1437
- ASSERT((hresult & COM_ERROR) != 0);
1438
- }
1439
-
1440
- if ((hresult & COM_ERROR) != 0) {
1441
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 2, hresult);
1442
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1443
- }
1444
- }
1445
-
1446
- bool IsValid() const override
1447
- {
1448
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
1449
-
1450
- bool result{};
1451
-
1452
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1453
- if (hresult == Core::ERROR_NONE) {
1454
- hresult = [&]() -> Core::hresult {
1455
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1456
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1457
- result = reader.Boolean();
1458
-
1459
- return (Core::ERROR_NONE);
1460
- } ();
1461
- } else {
1462
- ASSERT((hresult & COM_ERROR) != 0);
1463
- }
1464
-
1465
- if ((hresult & COM_ERROR) != 0) {
1466
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 3, hresult);
1467
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1468
- }
1469
-
1470
- return (result);
1471
- }
1472
-
1473
- uint32_t Count() const override
1474
- {
1475
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
1476
-
1477
- uint32_t result{};
1478
-
1479
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1480
- if (hresult == Core::ERROR_NONE) {
1481
- hresult = [&]() -> Core::hresult {
1482
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1483
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1484
- result = reader.Number<uint32_t>();
1485
-
1486
- return (Core::ERROR_NONE);
1487
- } ();
1488
- } else {
1489
- ASSERT((hresult & COM_ERROR) != 0);
1490
- }
1491
-
1492
- if ((hresult & COM_ERROR) != 0) {
1493
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 4, hresult);
1494
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1495
- }
1496
-
1497
- return (result);
1498
- }
1499
-
1500
- RPC::Environment Current() const override
1501
- {
1502
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1503
-
1504
- RPC::Environment result{};
1505
-
1506
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1507
- if (hresult == Core::ERROR_NONE) {
1508
- hresult = [&]() -> Core::hresult {
1509
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1510
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1511
- const uint16_t result_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
1512
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + result_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1513
- result.Key = reader.Text();
1514
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1515
- const uint16_t result_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
1516
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + result_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1517
- result.Value = reader.Text();
1518
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1519
- result.Scope = reader.Number<RPC::Environment::scope>();
1520
-
1521
- return (Core::ERROR_NONE);
1522
- } ();
1523
- } else {
1524
- ASSERT((hresult & COM_ERROR) != 0);
1525
- }
1526
-
1527
- if ((hresult & COM_ERROR) != 0) {
1528
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 5, hresult);
1529
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1530
- }
1531
-
1532
- return (result);
1533
- }
1534
-
1535
- }; // class RPCIteratorTypeInstance_195e88cf7f955a2eProxy
1536
-
1537
- //
1538
760
  // Exchange::IContentDecryption interface proxy definitions
1539
761
  //
1540
762
  // Methods:
1541
763
  // (0) virtual uint32_t Initialize(PluginHost::IShell*) = 0
1542
764
  // (1) virtual void Deinitialize(PluginHost::IShell*) = 0
@@ -1885,32 +1107,26 @@
1885
1107
  // REGISTRATION
1886
1108
  // -----------------------------------------------------------------
1887
1109
  namespace {
1888
1110
 
1889
1111
  typedef ProxyStub::UnknownStubType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods> RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub;
1890
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaStubMethods> RPCIteratorTypeInstance_60eba5a793c685eaStub;
1891
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods> RPCIteratorTypeInstance_195e88cf7f955a2eStub;
1892
1112
  typedef ProxyStub::UnknownStubType<Exchange::IContentDecryption, ExchangeContentDecryptionStubMethods> ExchangeContentDecryptionStub;
1893
1113
  typedef ProxyStub::UnknownStubType<Exchange::IContentDecryption::INotification, ExchangeContentDecryptionNotificationStubMethods> ExchangeContentDecryptionNotificationStub;
1894
1114
 
1895
1115
  static class Instantiation {
1896
1116
  public:
1897
1117
  Instantiation()
1898
1118
  {
1899
1119
  const RPC::SecureProxyStubType security = static_cast<RPC::SecureProxyStubType>(static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_SECURE) | static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_COHERENT));
1900
1120
 
1901
1121
  RPC::Administrator::Instance().Announce<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy, RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub>(security);
1902
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaProxy, RPCIteratorTypeInstance_60eba5a793c685eaStub>(security);
1903
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eProxy, RPCIteratorTypeInstance_195e88cf7f955a2eStub>(security);
1904
1122
  RPC::Administrator::Instance().Announce<Exchange::IContentDecryption, ExchangeContentDecryptionProxy, ExchangeContentDecryptionStub>(security);
1905
1123
  RPC::Administrator::Instance().Announce<Exchange::IContentDecryption::INotification, ExchangeContentDecryptionNotificationProxy, ExchangeContentDecryptionNotificationStub>(security);
1906
1124
  }
1907
1125
  ~Instantiation()
1908
1126
  {
1909
1127
  RPC::Administrator::Instance().Recall<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>>();
1910
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>>();
1911
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>>();
1912
1128
  RPC::Administrator::Instance().Recall<Exchange::IContentDecryption>();
1913
1129
  RPC::Administrator::Instance().Recall<Exchange::IContentDecryption::INotification>();
1914
1130
  }
1915
1131
  } ProxyStubRegistration;
1916
1132
 
{baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_IPNetwork.cpp RENAMED
@@ -1,55 +0,0 @@
1
- //
2
- // generated automatically from "IIPNetwork.h"
3
- //
4
- // implements COM-RPC proxy stubs for:
5
- //
6
- // secure code enabled:
7
- // - instance verification enabled
8
- // - range verification enabled
9
- // - frame coherency verification enabled
10
- //
11
-
12
- #include "Module.h"
13
- #include "IIPNetwork.h"
14
-
15
- #include <com/com.h>
16
-
17
- namespace Thunder {
18
-
19
- namespace ProxyStubs {
20
-
21
- PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
22
- PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
23
-
24
- // -----------------------------------------------------------------
25
- // STUBS
26
- // -----------------------------------------------------------------
27
-
28
- // -----------------------------------------------------------------
29
- // PROXIES
30
- // -----------------------------------------------------------------
31
-
32
- POP_WARNING()
33
- POP_WARNING()
34
-
35
- // -----------------------------------------------------------------
36
- // REGISTRATION
37
- // -----------------------------------------------------------------
38
- namespace {
39
-
40
-
41
- static class Instantiation {
42
- public:
43
- Instantiation()
44
- {
45
- }
46
- ~Instantiation()
47
- {
48
- }
49
- } ProxyStubRegistration;
50
-
51
- } // namespace
52
-
53
- } // namespace ProxyStubs
54
-
55
- }
{baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_InputSwitch.cpp RENAMED
@@ -1,12 +1,10 @@
1
1
  //
2
2
  // generated automatically from "IInputSwitch.h"
3
3
  //
4
4
  // implements COM-RPC proxy stubs for:
5
5
  // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = RPC::ID_STRINGITERATOR] [[iterator]]
6
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = uint32_t, INTERFACE_ID = RPC::ID_VALUEITERATOR] [[iterator]]
7
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = RPC::Environment, INTERFACE_ID = RPC::ID_ENVIRONMENTITERATOR] [[iterator]]
8
6
  // - class Exchange::IInputSwitch
9
7
  //
10
8
  // secure code enabled:
11
9
  // - instance verification enabled
12
10
  // - range verification enabled
@@ -218,396 +216,10 @@
218
216
  }
219
217
  , nullptr
220
218
  }; // RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods
221
219
 
222
220
  //
223
- // RPC::IIteratorTypeInstance_60eba5a793c685ea interface stub definitions
224
- //
225
- // Methods:
226
- // (0) virtual bool Next(uint32_t&) = 0
227
- // (1) virtual bool Previous(uint32_t&) = 0
228
- // (2) virtual void Reset(const uint32_t) = 0
229
- // (3) virtual bool IsValid() const = 0
230
- // (4) virtual uint32_t Count() const = 0
231
- // (5) virtual uint32_t Current() const = 0
232
- //
233
-
234
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_60eba5a793c685eaStubMethods[] = {
235
- // (0) virtual bool Next(uint32_t&) = 0
236
- //
237
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
238
- Core::hresult hresult = Core::ERROR_NONE;
239
-
240
- hresult = [&]() -> Core::hresult {
241
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
242
-
243
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
244
-
245
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
246
- ASSERT(implementation != nullptr);
247
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
248
-
249
- uint32_t _info{};
250
-
251
- bool result = implementation->Next(_info);
252
-
253
- RPC::Data::Frame::Writer writer(message->Response().Writer());
254
- writer.Boolean(result);
255
- writer.Number<uint32_t>(_info);
256
-
257
- return (Core::ERROR_NONE);
258
- } ();
259
-
260
- if (hresult != Core::ERROR_NONE) {
261
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 0, hresult);
262
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
263
- }
264
- },
265
-
266
- // (1) virtual bool Previous(uint32_t&) = 0
267
- //
268
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
269
- Core::hresult hresult = Core::ERROR_NONE;
270
-
271
- hresult = [&]() -> Core::hresult {
272
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
273
-
274
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
275
-
276
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
277
- ASSERT(implementation != nullptr);
278
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
279
-
280
- uint32_t _info{};
281
-
282
- bool result = implementation->Previous(_info);
283
-
284
- RPC::Data::Frame::Writer writer(message->Response().Writer());
285
- writer.Boolean(result);
286
- writer.Number<uint32_t>(_info);
287
-
288
- return (Core::ERROR_NONE);
289
- } ();
290
-
291
- if (hresult != Core::ERROR_NONE) {
292
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 1, hresult);
293
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
294
- }
295
- },
296
-
297
- // (2) virtual void Reset(const uint32_t) = 0
298
- //
299
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
300
- Core::hresult hresult = Core::ERROR_NONE;
301
-
302
- hresult = [&]() -> Core::hresult {
303
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
304
-
305
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
306
-
307
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
308
- ASSERT(implementation != nullptr);
309
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
310
-
311
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
312
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
313
- const uint32_t _position = reader.Number<uint32_t>();
314
-
315
- implementation->Reset(_position);
316
-
317
- return (Core::ERROR_NONE);
318
- } ();
319
-
320
- if (hresult != Core::ERROR_NONE) {
321
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 2, hresult);
322
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
323
- }
324
- },
325
-
326
- // (3) virtual bool IsValid() const = 0
327
- //
328
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
329
- Core::hresult hresult = Core::ERROR_NONE;
330
-
331
- hresult = [&]() -> Core::hresult {
332
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
333
-
334
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
335
-
336
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
337
- ASSERT(implementation != nullptr);
338
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
339
-
340
- bool result = implementation->IsValid();
341
-
342
- RPC::Data::Frame::Writer writer(message->Response().Writer());
343
- writer.Boolean(result);
344
-
345
- return (Core::ERROR_NONE);
346
- } ();
347
-
348
- if (hresult != Core::ERROR_NONE) {
349
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 3, hresult);
350
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
351
- }
352
- },
353
-
354
- // (4) virtual uint32_t Count() const = 0
355
- //
356
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
357
- Core::hresult hresult = Core::ERROR_NONE;
358
-
359
- hresult = [&]() -> Core::hresult {
360
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
361
-
362
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
363
-
364
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
365
- ASSERT(implementation != nullptr);
366
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
367
-
368
- uint32_t result = implementation->Count();
369
-
370
- RPC::Data::Frame::Writer writer(message->Response().Writer());
371
- writer.Number<uint32_t>(result);
372
-
373
- return (Core::ERROR_NONE);
374
- } ();
375
-
376
- if (hresult != Core::ERROR_NONE) {
377
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 4, hresult);
378
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
379
- }
380
- },
381
-
382
- // (5) virtual uint32_t Current() const = 0
383
- //
384
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
385
- Core::hresult hresult = Core::ERROR_NONE;
386
-
387
- hresult = [&]() -> Core::hresult {
388
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
389
-
390
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
391
-
392
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
393
- ASSERT(implementation != nullptr);
394
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
395
-
396
- uint32_t result = implementation->Current();
397
-
398
- RPC::Data::Frame::Writer writer(message->Response().Writer());
399
- writer.Number<uint32_t>(result);
400
-
401
- return (Core::ERROR_NONE);
402
- } ();
403
-
404
- if (hresult != Core::ERROR_NONE) {
405
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 5, hresult);
406
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
407
- }
408
- }
409
- , nullptr
410
- }; // RPCIteratorTypeInstance_60eba5a793c685eaStubMethods
411
-
412
- //
413
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface stub definitions
414
- //
415
- // Methods:
416
- // (0) virtual bool Next(RPC::Environment&) = 0
417
- // (1) virtual bool Previous(RPC::Environment&) = 0
418
- // (2) virtual void Reset(const uint32_t) = 0
419
- // (3) virtual bool IsValid() const = 0
420
- // (4) virtual uint32_t Count() const = 0
421
- // (5) virtual RPC::Environment Current() const = 0
422
- //
423
-
424
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods[] = {
425
- // (0) virtual bool Next(RPC::Environment&) = 0
426
- //
427
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
428
- Core::hresult hresult = Core::ERROR_NONE;
429
-
430
- hresult = [&]() -> Core::hresult {
431
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
432
-
433
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
434
-
435
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
436
- ASSERT(implementation != nullptr);
437
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
438
-
439
- RPC::Environment _info{};
440
-
441
- bool result = implementation->Next(_info);
442
-
443
- RPC::Data::Frame::Writer writer(message->Response().Writer());
444
- writer.Boolean(result);
445
- writer.Text(_info.Key);
446
- writer.Text(_info.Value);
447
- writer.Number<RPC::Environment::scope>(_info.Scope);
448
-
449
- return (Core::ERROR_NONE);
450
- } ();
451
-
452
- if (hresult != Core::ERROR_NONE) {
453
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 0, hresult);
454
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
455
- }
456
- },
457
-
458
- // (1) virtual bool Previous(RPC::Environment&) = 0
459
- //
460
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
461
- Core::hresult hresult = Core::ERROR_NONE;
462
-
463
- hresult = [&]() -> Core::hresult {
464
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
465
-
466
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
467
-
468
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
469
- ASSERT(implementation != nullptr);
470
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
471
-
472
- RPC::Environment _info{};
473
-
474
- bool result = implementation->Previous(_info);
475
-
476
- RPC::Data::Frame::Writer writer(message->Response().Writer());
477
- writer.Boolean(result);
478
- writer.Text(_info.Key);
479
- writer.Text(_info.Value);
480
- writer.Number<RPC::Environment::scope>(_info.Scope);
481
-
482
- return (Core::ERROR_NONE);
483
- } ();
484
-
485
- if (hresult != Core::ERROR_NONE) {
486
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 1, hresult);
487
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
488
- }
489
- },
490
-
491
- // (2) virtual void Reset(const uint32_t) = 0
492
- //
493
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
494
- Core::hresult hresult = Core::ERROR_NONE;
495
-
496
- hresult = [&]() -> Core::hresult {
497
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
498
-
499
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
500
-
501
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
502
- ASSERT(implementation != nullptr);
503
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
504
-
505
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
506
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
507
- const uint32_t _position = reader.Number<uint32_t>();
508
-
509
- implementation->Reset(_position);
510
-
511
- return (Core::ERROR_NONE);
512
- } ();
513
-
514
- if (hresult != Core::ERROR_NONE) {
515
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 2, hresult);
516
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
517
- }
518
- },
519
-
520
- // (3) virtual bool IsValid() const = 0
521
- //
522
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
523
- Core::hresult hresult = Core::ERROR_NONE;
524
-
525
- hresult = [&]() -> Core::hresult {
526
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
527
-
528
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
529
-
530
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
531
- ASSERT(implementation != nullptr);
532
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
533
-
534
- bool result = implementation->IsValid();
535
-
536
- RPC::Data::Frame::Writer writer(message->Response().Writer());
537
- writer.Boolean(result);
538
-
539
- return (Core::ERROR_NONE);
540
- } ();
541
-
542
- if (hresult != Core::ERROR_NONE) {
543
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 3, hresult);
544
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
545
- }
546
- },
547
-
548
- // (4) virtual uint32_t Count() const = 0
549
- //
550
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
551
- Core::hresult hresult = Core::ERROR_NONE;
552
-
553
- hresult = [&]() -> Core::hresult {
554
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
555
-
556
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
557
-
558
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
559
- ASSERT(implementation != nullptr);
560
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
561
-
562
- uint32_t result = implementation->Count();
563
-
564
- RPC::Data::Frame::Writer writer(message->Response().Writer());
565
- writer.Number<uint32_t>(result);
566
-
567
- return (Core::ERROR_NONE);
568
- } ();
569
-
570
- if (hresult != Core::ERROR_NONE) {
571
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 4, hresult);
572
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
573
- }
574
- },
575
-
576
- // (5) virtual RPC::Environment Current() const = 0
577
- //
578
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
579
- Core::hresult hresult = Core::ERROR_NONE;
580
-
581
- hresult = [&]() -> Core::hresult {
582
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
583
-
584
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
585
-
586
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
587
- ASSERT(implementation != nullptr);
588
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
589
-
590
- RPC::Environment result = implementation->Current();
591
-
592
- RPC::Data::Frame::Writer writer(message->Response().Writer());
593
- writer.Text(result.Key);
594
- writer.Text(result.Value);
595
- writer.Number<RPC::Environment::scope>(result.Scope);
596
-
597
- return (Core::ERROR_NONE);
598
- } ();
599
-
600
- if (hresult != Core::ERROR_NONE) {
601
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 5, hresult);
602
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
603
- }
604
- }
605
- , nullptr
606
- }; // RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods
607
-
608
- //
609
221
  // Exchange::IInputSwitch interface stub definitions
610
222
  //
611
223
  // Methods:
612
224
  // (0) virtual RPC::IStringIterator* Consumers() const = 0
613
225
  // (1) virtual bool Consumer(const string&) const = 0
@@ -936,400 +548,10 @@
936
548
  }
937
549
 
938
550
  }; // class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy
939
551
 
940
552
  //
941
- // RPC::IIteratorTypeInstance_60eba5a793c685ea interface proxy definitions
942
- //
943
- // Methods:
944
- // (0) virtual bool Next(uint32_t&) = 0
945
- // (1) virtual bool Previous(uint32_t&) = 0
946
- // (2) virtual void Reset(const uint32_t) = 0
947
- // (3) virtual bool IsValid() const = 0
948
- // (4) virtual uint32_t Count() const = 0
949
- // (5) virtual uint32_t Current() const = 0
950
- //
951
-
952
- class RPCIteratorTypeInstance_60eba5a793c685eaProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>> {
953
- public:
954
- RPCIteratorTypeInstance_60eba5a793c685eaProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
955
- : BaseClass(channel, implementation, otherSideInformed)
956
- {
957
- }
958
-
959
- bool Next(uint32_t& _info) override
960
- {
961
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
962
-
963
- bool result{};
964
-
965
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
966
- if (hresult == Core::ERROR_NONE) {
967
- hresult = [&]() -> Core::hresult {
968
- RPC::Data::Frame::Reader reader(message->Response().Reader());
969
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
970
- result = reader.Boolean();
971
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
972
- _info = reader.Number<uint32_t>();
973
-
974
- return (Core::ERROR_NONE);
975
- } ();
976
- } else {
977
- ASSERT((hresult & COM_ERROR) != 0);
978
- }
979
-
980
- if ((hresult & COM_ERROR) != 0) {
981
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 0, hresult);
982
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
983
- }
984
-
985
- return (result);
986
- }
987
-
988
- bool Previous(uint32_t& _info) override
989
- {
990
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
991
-
992
- bool result{};
993
-
994
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
995
- if (hresult == Core::ERROR_NONE) {
996
- hresult = [&]() -> Core::hresult {
997
- RPC::Data::Frame::Reader reader(message->Response().Reader());
998
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
999
- result = reader.Boolean();
1000
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1001
- _info = reader.Number<uint32_t>();
1002
-
1003
- return (Core::ERROR_NONE);
1004
- } ();
1005
- } else {
1006
- ASSERT((hresult & COM_ERROR) != 0);
1007
- }
1008
-
1009
- if ((hresult & COM_ERROR) != 0) {
1010
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 1, hresult);
1011
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1012
- }
1013
-
1014
- return (result);
1015
- }
1016
-
1017
- void Reset(const uint32_t _position) override
1018
- {
1019
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
1020
-
1021
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
1022
- writer.Number<uint32_t>(_position);
1023
-
1024
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1025
- if (hresult == Core::ERROR_NONE) {
1026
- hresult = [&]() -> Core::hresult {
1027
-
1028
- return (Core::ERROR_NONE);
1029
- } ();
1030
- } else {
1031
- ASSERT((hresult & COM_ERROR) != 0);
1032
- }
1033
-
1034
- if ((hresult & COM_ERROR) != 0) {
1035
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 2, hresult);
1036
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1037
- }
1038
- }
1039
-
1040
- bool IsValid() const override
1041
- {
1042
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
1043
-
1044
- bool result{};
1045
-
1046
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1047
- if (hresult == Core::ERROR_NONE) {
1048
- hresult = [&]() -> Core::hresult {
1049
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1050
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1051
- result = reader.Boolean();
1052
-
1053
- return (Core::ERROR_NONE);
1054
- } ();
1055
- } else {
1056
- ASSERT((hresult & COM_ERROR) != 0);
1057
- }
1058
-
1059
- if ((hresult & COM_ERROR) != 0) {
1060
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 3, hresult);
1061
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1062
- }
1063
-
1064
- return (result);
1065
- }
1066
-
1067
- uint32_t Count() const override
1068
- {
1069
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
1070
-
1071
- uint32_t result{};
1072
-
1073
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1074
- if (hresult == Core::ERROR_NONE) {
1075
- hresult = [&]() -> Core::hresult {
1076
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1077
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1078
- result = reader.Number<uint32_t>();
1079
-
1080
- return (Core::ERROR_NONE);
1081
- } ();
1082
- } else {
1083
- ASSERT((hresult & COM_ERROR) != 0);
1084
- }
1085
-
1086
- if ((hresult & COM_ERROR) != 0) {
1087
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 4, hresult);
1088
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1089
- }
1090
-
1091
- return (result);
1092
- }
1093
-
1094
- uint32_t Current() const override
1095
- {
1096
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1097
-
1098
- uint32_t result{};
1099
-
1100
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1101
- if (hresult == Core::ERROR_NONE) {
1102
- hresult = [&]() -> Core::hresult {
1103
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1104
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1105
- result = reader.Number<uint32_t>();
1106
-
1107
- return (Core::ERROR_NONE);
1108
- } ();
1109
- } else {
1110
- ASSERT((hresult & COM_ERROR) != 0);
1111
- }
1112
-
1113
- if ((hresult & COM_ERROR) != 0) {
1114
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 5, hresult);
1115
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1116
- }
1117
-
1118
- return (result);
1119
- }
1120
-
1121
- }; // class RPCIteratorTypeInstance_60eba5a793c685eaProxy
1122
-
1123
- //
1124
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface proxy definitions
1125
- //
1126
- // Methods:
1127
- // (0) virtual bool Next(RPC::Environment&) = 0
1128
- // (1) virtual bool Previous(RPC::Environment&) = 0
1129
- // (2) virtual void Reset(const uint32_t) = 0
1130
- // (3) virtual bool IsValid() const = 0
1131
- // (4) virtual uint32_t Count() const = 0
1132
- // (5) virtual RPC::Environment Current() const = 0
1133
- //
1134
-
1135
- class RPCIteratorTypeInstance_195e88cf7f955a2eProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>> {
1136
- public:
1137
- RPCIteratorTypeInstance_195e88cf7f955a2eProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
1138
- : BaseClass(channel, implementation, otherSideInformed)
1139
- {
1140
- }
1141
-
1142
- bool Next(RPC::Environment& _info) override
1143
- {
1144
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
1145
-
1146
- bool result{};
1147
-
1148
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1149
- if (hresult == Core::ERROR_NONE) {
1150
- hresult = [&]() -> Core::hresult {
1151
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1152
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1153
- result = reader.Boolean();
1154
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1155
- const uint16_t _info_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
1156
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1157
- _info.Key = reader.Text();
1158
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1159
- const uint16_t _info_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
1160
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1161
- _info.Value = reader.Text();
1162
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1163
- _info.Scope = reader.Number<RPC::Environment::scope>();
1164
-
1165
- return (Core::ERROR_NONE);
1166
- } ();
1167
- } else {
1168
- ASSERT((hresult & COM_ERROR) != 0);
1169
- }
1170
-
1171
- if ((hresult & COM_ERROR) != 0) {
1172
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 0, hresult);
1173
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1174
- }
1175
-
1176
- return (result);
1177
- }
1178
-
1179
- bool Previous(RPC::Environment& _info) override
1180
- {
1181
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
1182
-
1183
- bool result{};
1184
-
1185
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1186
- if (hresult == Core::ERROR_NONE) {
1187
- hresult = [&]() -> Core::hresult {
1188
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1189
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1190
- result = reader.Boolean();
1191
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1192
- const uint16_t _info_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
1193
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1194
- _info.Key = reader.Text();
1195
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1196
- const uint16_t _info_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
1197
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1198
- _info.Value = reader.Text();
1199
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1200
- _info.Scope = reader.Number<RPC::Environment::scope>();
1201
-
1202
- return (Core::ERROR_NONE);
1203
- } ();
1204
- } else {
1205
- ASSERT((hresult & COM_ERROR) != 0);
1206
- }
1207
-
1208
- if ((hresult & COM_ERROR) != 0) {
1209
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 1, hresult);
1210
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1211
- }
1212
-
1213
- return (result);
1214
- }
1215
-
1216
- void Reset(const uint32_t _position) override
1217
- {
1218
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
1219
-
1220
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
1221
- writer.Number<uint32_t>(_position);
1222
-
1223
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1224
- if (hresult == Core::ERROR_NONE) {
1225
- hresult = [&]() -> Core::hresult {
1226
-
1227
- return (Core::ERROR_NONE);
1228
- } ();
1229
- } else {
1230
- ASSERT((hresult & COM_ERROR) != 0);
1231
- }
1232
-
1233
- if ((hresult & COM_ERROR) != 0) {
1234
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 2, hresult);
1235
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1236
- }
1237
- }
1238
-
1239
- bool IsValid() const override
1240
- {
1241
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
1242
-
1243
- bool result{};
1244
-
1245
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1246
- if (hresult == Core::ERROR_NONE) {
1247
- hresult = [&]() -> Core::hresult {
1248
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1249
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1250
- result = reader.Boolean();
1251
-
1252
- return (Core::ERROR_NONE);
1253
- } ();
1254
- } else {
1255
- ASSERT((hresult & COM_ERROR) != 0);
1256
- }
1257
-
1258
- if ((hresult & COM_ERROR) != 0) {
1259
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 3, hresult);
1260
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1261
- }
1262
-
1263
- return (result);
1264
- }
1265
-
1266
- uint32_t Count() const override
1267
- {
1268
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
1269
-
1270
- uint32_t result{};
1271
-
1272
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1273
- if (hresult == Core::ERROR_NONE) {
1274
- hresult = [&]() -> Core::hresult {
1275
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1276
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1277
- result = reader.Number<uint32_t>();
1278
-
1279
- return (Core::ERROR_NONE);
1280
- } ();
1281
- } else {
1282
- ASSERT((hresult & COM_ERROR) != 0);
1283
- }
1284
-
1285
- if ((hresult & COM_ERROR) != 0) {
1286
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 4, hresult);
1287
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1288
- }
1289
-
1290
- return (result);
1291
- }
1292
-
1293
- RPC::Environment Current() const override
1294
- {
1295
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1296
-
1297
- RPC::Environment result{};
1298
-
1299
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1300
- if (hresult == Core::ERROR_NONE) {
1301
- hresult = [&]() -> Core::hresult {
1302
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1303
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1304
- const uint16_t result_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
1305
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + result_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1306
- result.Key = reader.Text();
1307
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1308
- const uint16_t result_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
1309
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + result_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1310
- result.Value = reader.Text();
1311
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1312
- result.Scope = reader.Number<RPC::Environment::scope>();
1313
-
1314
- return (Core::ERROR_NONE);
1315
- } ();
1316
- } else {
1317
- ASSERT((hresult & COM_ERROR) != 0);
1318
- }
1319
-
1320
- if ((hresult & COM_ERROR) != 0) {
1321
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 5, hresult);
1322
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1323
- }
1324
-
1325
- return (result);
1326
- }
1327
-
1328
- }; // class RPCIteratorTypeInstance_195e88cf7f955a2eProxy
1329
-
1330
- //
1331
553
  // Exchange::IInputSwitch interface proxy definitions
1332
554
  //
1333
555
  // Methods:
1334
556
  // (0) virtual RPC::IStringIterator* Consumers() const = 0
1335
557
  // (1) virtual bool Consumer(const string&) const = 0
@@ -1470,30 +692,24 @@
1470
692
  // REGISTRATION
1471
693
  // -----------------------------------------------------------------
1472
694
  namespace {
1473
695
 
1474
696
  typedef ProxyStub::UnknownStubType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods> RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub;
1475
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaStubMethods> RPCIteratorTypeInstance_60eba5a793c685eaStub;
1476
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods> RPCIteratorTypeInstance_195e88cf7f955a2eStub;
1477
697
  typedef ProxyStub::UnknownStubType<Exchange::IInputSwitch, ExchangeInputSwitchStubMethods> ExchangeInputSwitchStub;
1478
698
 
1479
699
  static class Instantiation {
1480
700
  public:
1481
701
  Instantiation()
1482
702
  {
1483
703
  const RPC::SecureProxyStubType security = static_cast<RPC::SecureProxyStubType>(static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_SECURE) | static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_COHERENT));
1484
704
 
1485
705
  RPC::Administrator::Instance().Announce<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy, RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub>(security);
1486
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaProxy, RPCIteratorTypeInstance_60eba5a793c685eaStub>(security);
1487
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eProxy, RPCIteratorTypeInstance_195e88cf7f955a2eStub>(security);
1488
706
  RPC::Administrator::Instance().Announce<Exchange::IInputSwitch, ExchangeInputSwitchProxy, ExchangeInputSwitchStub>(security);
1489
707
  }
1490
708
  ~Instantiation()
1491
709
  {
1492
710
  RPC::Administrator::Instance().Recall<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>>();
1493
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>>();
1494
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>>();
1495
711
  RPC::Administrator::Instance().Recall<Exchange::IInputSwitch>();
1496
712
  }
1497
713
  } ProxyStubRegistration;
1498
714
 
1499
715
  } // namespace
{baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_Memory.cpp RENAMED
@@ -1,9 +1,10 @@
1
1
  //
2
2
  // generated automatically from "IMemory.h"
3
3
  //
4
4
  // implements COM-RPC proxy stubs for:
5
+ // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = RPC::ID_STRINGITERATOR] [[iterator]]
5
6
  //
6
7
  // secure code enabled:
7
8
  // - instance verification enabled
8
9
  // - range verification enabled
9
10
  // - frame coherency verification enabled
@@ -23,30 +24,414 @@
23
24
 
24
25
  // -----------------------------------------------------------------
25
26
  // STUBS
26
27
  // -----------------------------------------------------------------
27
28
 
29
+ //
30
+ // RPC::IIteratorTypeInstance_bd6e04b8d151c1f7 interface stub definitions
31
+ //
32
+ // Methods:
33
+ // (0) virtual bool Next(string&) = 0
34
+ // (1) virtual bool Previous(string&) = 0
35
+ // (2) virtual void Reset(const uint32_t) = 0
36
+ // (3) virtual bool IsValid() const = 0
37
+ // (4) virtual uint32_t Count() const = 0
38
+ // (5) virtual string Current() const = 0
39
+ //
40
+
41
+ static ProxyStub::MethodHandler RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods[] = {
42
+ // (0) virtual bool Next(string&) = 0
43
+ //
44
+ [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
45
+ Core::hresult hresult = Core::ERROR_NONE;
46
+
47
+ hresult = [&]() -> Core::hresult {
48
+ using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
49
+
50
+ if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
51
+
52
+ interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
53
+ ASSERT(implementation != nullptr);
54
+ if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
55
+
56
+ string _info{};
57
+
58
+ bool result = implementation->Next(_info);
59
+
60
+ RPC::Data::Frame::Writer writer(message->Response().Writer());
61
+ writer.Boolean(result);
62
+ writer.Text(_info);
63
+
64
+ return (Core::ERROR_NONE);
65
+ } ();
66
+
67
+ if (hresult != Core::ERROR_NONE) {
68
+ fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 0, hresult);
69
+ TRACE_L1("Warning: This COM-RPC failure will not propagate!");
70
+ }
71
+ },
72
+
73
+ // (1) virtual bool Previous(string&) = 0
74
+ //
75
+ [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
76
+ Core::hresult hresult = Core::ERROR_NONE;
77
+
78
+ hresult = [&]() -> Core::hresult {
79
+ using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
80
+
81
+ if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
82
+
83
+ interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
84
+ ASSERT(implementation != nullptr);
85
+ if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
86
+
87
+ string _info{};
88
+
89
+ bool result = implementation->Previous(_info);
90
+
91
+ RPC::Data::Frame::Writer writer(message->Response().Writer());
92
+ writer.Boolean(result);
93
+ writer.Text(_info);
94
+
95
+ return (Core::ERROR_NONE);
96
+ } ();
97
+
98
+ if (hresult != Core::ERROR_NONE) {
99
+ fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 1, hresult);
100
+ TRACE_L1("Warning: This COM-RPC failure will not propagate!");
101
+ }
102
+ },
103
+
104
+ // (2) virtual void Reset(const uint32_t) = 0
105
+ //
106
+ [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
107
+ Core::hresult hresult = Core::ERROR_NONE;
108
+
109
+ hresult = [&]() -> Core::hresult {
110
+ using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
111
+
112
+ if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
113
+
114
+ interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
115
+ ASSERT(implementation != nullptr);
116
+ if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
117
+
118
+ RPC::Data::Frame::Reader reader(message->Parameters().Reader());
119
+ if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
120
+ const uint32_t _position = reader.Number<uint32_t>();
121
+
122
+ implementation->Reset(_position);
123
+
124
+ return (Core::ERROR_NONE);
125
+ } ();
126
+
127
+ if (hresult != Core::ERROR_NONE) {
128
+ fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 2, hresult);
129
+ TRACE_L1("Warning: This COM-RPC failure will not propagate!");
130
+ }
131
+ },
132
+
133
+ // (3) virtual bool IsValid() const = 0
134
+ //
135
+ [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
136
+ Core::hresult hresult = Core::ERROR_NONE;
137
+
138
+ hresult = [&]() -> Core::hresult {
139
+ using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
140
+
141
+ if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
142
+
143
+ const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
144
+ ASSERT(implementation != nullptr);
145
+ if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
146
+
147
+ bool result = implementation->IsValid();
148
+
149
+ RPC::Data::Frame::Writer writer(message->Response().Writer());
150
+ writer.Boolean(result);
151
+
152
+ return (Core::ERROR_NONE);
153
+ } ();
154
+
155
+ if (hresult != Core::ERROR_NONE) {
156
+ fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 3, hresult);
157
+ TRACE_L1("Warning: This COM-RPC failure will not propagate!");
158
+ }
159
+ },
160
+
161
+ // (4) virtual uint32_t Count() const = 0
162
+ //
163
+ [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
164
+ Core::hresult hresult = Core::ERROR_NONE;
165
+
166
+ hresult = [&]() -> Core::hresult {
167
+ using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
168
+
169
+ if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
170
+
171
+ const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
172
+ ASSERT(implementation != nullptr);
173
+ if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
174
+
175
+ uint32_t result = implementation->Count();
176
+
177
+ RPC::Data::Frame::Writer writer(message->Response().Writer());
178
+ writer.Number<uint32_t>(result);
179
+
180
+ return (Core::ERROR_NONE);
181
+ } ();
182
+
183
+ if (hresult != Core::ERROR_NONE) {
184
+ fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 4, hresult);
185
+ TRACE_L1("Warning: This COM-RPC failure will not propagate!");
186
+ }
187
+ },
188
+
189
+ // (5) virtual string Current() const = 0
190
+ //
191
+ [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
192
+ Core::hresult hresult = Core::ERROR_NONE;
193
+
194
+ hresult = [&]() -> Core::hresult {
195
+ using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
196
+
197
+ if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
198
+
199
+ const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
200
+ ASSERT(implementation != nullptr);
201
+ if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
202
+
203
+ string result = implementation->Current();
204
+
205
+ RPC::Data::Frame::Writer writer(message->Response().Writer());
206
+ writer.Text(result);
207
+
208
+ return (Core::ERROR_NONE);
209
+ } ();
210
+
211
+ if (hresult != Core::ERROR_NONE) {
212
+ fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 5, hresult);
213
+ TRACE_L1("Warning: This COM-RPC failure will not propagate!");
214
+ }
215
+ }
216
+ , nullptr
217
+ }; // RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods
218
+
28
219
  // -----------------------------------------------------------------
29
220
  // PROXIES
30
221
  // -----------------------------------------------------------------
31
222
 
223
+ //
224
+ // RPC::IIteratorTypeInstance_bd6e04b8d151c1f7 interface proxy definitions
225
+ //
226
+ // Methods:
227
+ // (0) virtual bool Next(string&) = 0
228
+ // (1) virtual bool Previous(string&) = 0
229
+ // (2) virtual void Reset(const uint32_t) = 0
230
+ // (3) virtual bool IsValid() const = 0
231
+ // (4) virtual uint32_t Count() const = 0
232
+ // (5) virtual string Current() const = 0
233
+ //
234
+
235
+ class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>> {
236
+ public:
237
+ RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
238
+ : BaseClass(channel, implementation, otherSideInformed)
239
+ {
240
+ }
241
+
242
+ bool Next(string& _info) override
243
+ {
244
+ IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
245
+
246
+ bool result{};
247
+
248
+ Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
249
+ if (hresult == Core::ERROR_NONE) {
250
+ hresult = [&]() -> Core::hresult {
251
+ RPC::Data::Frame::Reader reader(message->Response().Reader());
252
+ if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
253
+ result = reader.Boolean();
254
+ if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
255
+ const uint16_t _infoPeekedLen__ = reader.PeekNumber<uint16_t>();
256
+ if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _infoPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
257
+ _info = reader.Text();
258
+
259
+ return (Core::ERROR_NONE);
260
+ } ();
261
+ } else {
262
+ ASSERT((hresult & COM_ERROR) != 0);
263
+ }
264
+
265
+ if ((hresult & COM_ERROR) != 0) {
266
+ fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 0, hresult);
267
+ TRACE_L1("Warning: This COM-RPC failure will not propagate!");
268
+ }
269
+
270
+ return (result);
271
+ }
272
+
273
+ bool Previous(string& _info) override
274
+ {
275
+ IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
276
+
277
+ bool result{};
278
+
279
+ Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
280
+ if (hresult == Core::ERROR_NONE) {
281
+ hresult = [&]() -> Core::hresult {
282
+ RPC::Data::Frame::Reader reader(message->Response().Reader());
283
+ if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
284
+ result = reader.Boolean();
285
+ if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
286
+ const uint16_t _infoPeekedLen__ = reader.PeekNumber<uint16_t>();
287
+ if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _infoPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
288
+ _info = reader.Text();
289
+
290
+ return (Core::ERROR_NONE);
291
+ } ();
292
+ } else {
293
+ ASSERT((hresult & COM_ERROR) != 0);
294
+ }
295
+
296
+ if ((hresult & COM_ERROR) != 0) {
297
+ fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 1, hresult);
298
+ TRACE_L1("Warning: This COM-RPC failure will not propagate!");
299
+ }
300
+
301
+ return (result);
302
+ }
303
+
304
+ void Reset(const uint32_t _position) override
305
+ {
306
+ IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
307
+
308
+ RPC::Data::Frame::Writer writer(message->Parameters().Writer());
309
+ writer.Number<uint32_t>(_position);
310
+
311
+ Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
312
+ if (hresult == Core::ERROR_NONE) {
313
+ hresult = [&]() -> Core::hresult {
314
+
315
+ return (Core::ERROR_NONE);
316
+ } ();
317
+ } else {
318
+ ASSERT((hresult & COM_ERROR) != 0);
319
+ }
320
+
321
+ if ((hresult & COM_ERROR) != 0) {
322
+ fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 2, hresult);
323
+ TRACE_L1("Warning: This COM-RPC failure will not propagate!");
324
+ }
325
+ }
326
+
327
+ bool IsValid() const override
328
+ {
329
+ IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
330
+
331
+ bool result{};
332
+
333
+ Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
334
+ if (hresult == Core::ERROR_NONE) {
335
+ hresult = [&]() -> Core::hresult {
336
+ RPC::Data::Frame::Reader reader(message->Response().Reader());
337
+ if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
338
+ result = reader.Boolean();
339
+
340
+ return (Core::ERROR_NONE);
341
+ } ();
342
+ } else {
343
+ ASSERT((hresult & COM_ERROR) != 0);
344
+ }
345
+
346
+ if ((hresult & COM_ERROR) != 0) {
347
+ fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 3, hresult);
348
+ TRACE_L1("Warning: This COM-RPC failure will not propagate!");
349
+ }
350
+
351
+ return (result);
352
+ }
353
+
354
+ uint32_t Count() const override
355
+ {
356
+ IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
357
+
358
+ uint32_t result{};
359
+
360
+ Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
361
+ if (hresult == Core::ERROR_NONE) {
362
+ hresult = [&]() -> Core::hresult {
363
+ RPC::Data::Frame::Reader reader(message->Response().Reader());
364
+ if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
365
+ result = reader.Number<uint32_t>();
366
+
367
+ return (Core::ERROR_NONE);
368
+ } ();
369
+ } else {
370
+ ASSERT((hresult & COM_ERROR) != 0);
371
+ }
372
+
373
+ if ((hresult & COM_ERROR) != 0) {
374
+ fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 4, hresult);
375
+ TRACE_L1("Warning: This COM-RPC failure will not propagate!");
376
+ }
377
+
378
+ return (result);
379
+ }
380
+
381
+ string Current() const override
382
+ {
383
+ IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
384
+
385
+ string result{};
386
+
387
+ Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
388
+ if (hresult == Core::ERROR_NONE) {
389
+ hresult = [&]() -> Core::hresult {
390
+ RPC::Data::Frame::Reader reader(message->Response().Reader());
391
+ if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
392
+ const uint16_t resultPeekedLen__ = reader.PeekNumber<uint16_t>();
393
+ if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + resultPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
394
+ result = reader.Text();
395
+
396
+ return (Core::ERROR_NONE);
397
+ } ();
398
+ } else {
399
+ ASSERT((hresult & COM_ERROR) != 0);
400
+ }
401
+
402
+ if ((hresult & COM_ERROR) != 0) {
403
+ fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 5, hresult);
404
+ TRACE_L1("Warning: This COM-RPC failure will not propagate!");
405
+ }
406
+
407
+ return (result);
408
+ }
409
+
410
+ }; // class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy
411
+
32
412
  POP_WARNING()
33
413
  POP_WARNING()
34
414
 
35
415
  // -----------------------------------------------------------------
36
416
  // REGISTRATION
37
417
  // -----------------------------------------------------------------
38
418
  namespace {
39
419
 
420
+ typedef ProxyStub::UnknownStubType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods> RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub;
40
421
 
41
422
  static class Instantiation {
42
423
  public:
43
424
  Instantiation()
44
425
  {
426
+ const RPC::SecureProxyStubType security = static_cast<RPC::SecureProxyStubType>(static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_SECURE) | static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_COHERENT));
427
+
428
+ RPC::Administrator::Instance().Announce<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy, RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub>(security);
45
429
  }
46
430
  ~Instantiation()
47
431
  {
432
+ RPC::Administrator::Instance().Recall<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>>();
48
433
  }
49
434
  } ProxyStubRegistration;
50
435
 
51
436
  } // namespace
52
437
 
{baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_MessageControl.cpp RENAMED
@@ -1,1088 +0,0 @@
1
- //
2
- // generated automatically from "IMessageControl.h"
3
- //
4
- // implements COM-RPC proxy stubs for:
5
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = Exchange::IMessageControl::Control, INTERFACE_ID = Exchange::ID_MESSAGE_CONTROL_ITERATOR] [[iterator]]
6
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = RPC::ID_STRINGITERATOR] [[iterator]]
7
- // - class Exchange::IMessageControl
8
- //
9
- // secure code enabled:
10
- // - instance verification enabled
11
- // - range verification enabled
12
- // - frame coherency verification enabled
13
- //
14
-
15
- #include "Module.h"
16
- #include "IMessageControl.h"
17
-
18
- #include <com/com.h>
19
-
20
- namespace Thunder {
21
-
22
- namespace ProxyStubs {
23
-
24
- PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
25
- PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
26
-
27
- // -----------------------------------------------------------------
28
- // STUBS
29
- // -----------------------------------------------------------------
30
-
31
- //
32
- // RPC::IIteratorTypeInstance_675a6ff7e5671893 interface stub definitions
33
- //
34
- // Methods:
35
- // (0) virtual bool Next(Exchange::IMessageControl::Control&) = 0
36
- // (1) virtual bool Previous(Exchange::IMessageControl::Control&) = 0
37
- // (2) virtual void Reset(const uint32_t) = 0
38
- // (3) virtual bool IsValid() const = 0
39
- // (4) virtual uint32_t Count() const = 0
40
- // (5) virtual Exchange::IMessageControl::Control Current() const = 0
41
- //
42
-
43
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_675a6ff7e5671893StubMethods[] = {
44
- // (0) virtual bool Next(Exchange::IMessageControl::Control&) = 0
45
- //
46
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
47
- Core::hresult hresult = Core::ERROR_NONE;
48
-
49
- hresult = [&]() -> Core::hresult {
50
- using interface = RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>;
51
-
52
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
53
-
54
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
55
- ASSERT(implementation != nullptr);
56
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
57
-
58
- Exchange::IMessageControl::Control _info{};
59
-
60
- bool result = implementation->Next(_info);
61
-
62
- RPC::Data::Frame::Writer writer(message->Response().Writer());
63
- writer.Boolean(result);
64
- writer.Number<Exchange::IMessageControl::messagetype>(_info.type);
65
- writer.Text(_info.category);
66
- writer.Text(_info.module);
67
- writer.Boolean(_info.enabled);
68
-
69
- return (Core::ERROR_NONE);
70
- } ();
71
-
72
- if (hresult != Core::ERROR_NONE) {
73
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>::ID, 0, hresult);
74
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
75
- }
76
- },
77
-
78
- // (1) virtual bool Previous(Exchange::IMessageControl::Control&) = 0
79
- //
80
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
81
- Core::hresult hresult = Core::ERROR_NONE;
82
-
83
- hresult = [&]() -> Core::hresult {
84
- using interface = RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>;
85
-
86
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
87
-
88
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
89
- ASSERT(implementation != nullptr);
90
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
91
-
92
- Exchange::IMessageControl::Control _info{};
93
-
94
- bool result = implementation->Previous(_info);
95
-
96
- RPC::Data::Frame::Writer writer(message->Response().Writer());
97
- writer.Boolean(result);
98
- writer.Number<Exchange::IMessageControl::messagetype>(_info.type);
99
- writer.Text(_info.category);
100
- writer.Text(_info.module);
101
- writer.Boolean(_info.enabled);
102
-
103
- return (Core::ERROR_NONE);
104
- } ();
105
-
106
- if (hresult != Core::ERROR_NONE) {
107
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>::ID, 1, hresult);
108
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
109
- }
110
- },
111
-
112
- // (2) virtual void Reset(const uint32_t) = 0
113
- //
114
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
115
- Core::hresult hresult = Core::ERROR_NONE;
116
-
117
- hresult = [&]() -> Core::hresult {
118
- using interface = RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>;
119
-
120
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
121
-
122
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
123
- ASSERT(implementation != nullptr);
124
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
125
-
126
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
127
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
128
- const uint32_t _position = reader.Number<uint32_t>();
129
-
130
- implementation->Reset(_position);
131
-
132
- return (Core::ERROR_NONE);
133
- } ();
134
-
135
- if (hresult != Core::ERROR_NONE) {
136
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>::ID, 2, hresult);
137
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
138
- }
139
- },
140
-
141
- // (3) virtual bool IsValid() const = 0
142
- //
143
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
144
- Core::hresult hresult = Core::ERROR_NONE;
145
-
146
- hresult = [&]() -> Core::hresult {
147
- using interface = RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>;
148
-
149
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
150
-
151
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
152
- ASSERT(implementation != nullptr);
153
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
154
-
155
- bool result = implementation->IsValid();
156
-
157
- RPC::Data::Frame::Writer writer(message->Response().Writer());
158
- writer.Boolean(result);
159
-
160
- return (Core::ERROR_NONE);
161
- } ();
162
-
163
- if (hresult != Core::ERROR_NONE) {
164
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>::ID, 3, hresult);
165
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
166
- }
167
- },
168
-
169
- // (4) virtual uint32_t Count() const = 0
170
- //
171
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
172
- Core::hresult hresult = Core::ERROR_NONE;
173
-
174
- hresult = [&]() -> Core::hresult {
175
- using interface = RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>;
176
-
177
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
178
-
179
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
180
- ASSERT(implementation != nullptr);
181
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
182
-
183
- uint32_t result = implementation->Count();
184
-
185
- RPC::Data::Frame::Writer writer(message->Response().Writer());
186
- writer.Number<uint32_t>(result);
187
-
188
- return (Core::ERROR_NONE);
189
- } ();
190
-
191
- if (hresult != Core::ERROR_NONE) {
192
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>::ID, 4, hresult);
193
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
194
- }
195
- },
196
-
197
- // (5) virtual Exchange::IMessageControl::Control Current() const = 0
198
- //
199
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
200
- Core::hresult hresult = Core::ERROR_NONE;
201
-
202
- hresult = [&]() -> Core::hresult {
203
- using interface = RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>;
204
-
205
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
206
-
207
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
208
- ASSERT(implementation != nullptr);
209
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
210
-
211
- Exchange::IMessageControl::Control result = implementation->Current();
212
-
213
- RPC::Data::Frame::Writer writer(message->Response().Writer());
214
- writer.Number<Exchange::IMessageControl::messagetype>(result.type);
215
- writer.Text(result.category);
216
- writer.Text(result.module);
217
- writer.Boolean(result.enabled);
218
-
219
- return (Core::ERROR_NONE);
220
- } ();
221
-
222
- if (hresult != Core::ERROR_NONE) {
223
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>::ID, 5, hresult);
224
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
225
- }
226
- }
227
- , nullptr
228
- }; // RPCIteratorTypeInstance_675a6ff7e5671893StubMethods
229
-
230
- //
231
- // RPC::IIteratorTypeInstance_b3acff3685df4032 interface stub definitions
232
- //
233
- // Methods:
234
- // (0) virtual bool Next(string&) = 0
235
- // (1) virtual bool Previous(string&) = 0
236
- // (2) virtual void Reset(const uint32_t) = 0
237
- // (3) virtual bool IsValid() const = 0
238
- // (4) virtual uint32_t Count() const = 0
239
- // (5) virtual string Current() const = 0
240
- //
241
-
242
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_b3acff3685df4032StubMethods[] = {
243
- // (0) virtual bool Next(string&) = 0
244
- //
245
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
246
- Core::hresult hresult = Core::ERROR_NONE;
247
-
248
- hresult = [&]() -> Core::hresult {
249
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
250
-
251
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
252
-
253
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
254
- ASSERT(implementation != nullptr);
255
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
256
-
257
- string _info{};
258
-
259
- bool result = implementation->Next(_info);
260
-
261
- RPC::Data::Frame::Writer writer(message->Response().Writer());
262
- writer.Boolean(result);
263
- writer.Text(_info);
264
-
265
- return (Core::ERROR_NONE);
266
- } ();
267
-
268
- if (hresult != Core::ERROR_NONE) {
269
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 0, hresult);
270
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
271
- }
272
- },
273
-
274
- // (1) virtual bool Previous(string&) = 0
275
- //
276
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
277
- Core::hresult hresult = Core::ERROR_NONE;
278
-
279
- hresult = [&]() -> Core::hresult {
280
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
281
-
282
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
283
-
284
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
285
- ASSERT(implementation != nullptr);
286
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
287
-
288
- string _info{};
289
-
290
- bool result = implementation->Previous(_info);
291
-
292
- RPC::Data::Frame::Writer writer(message->Response().Writer());
293
- writer.Boolean(result);
294
- writer.Text(_info);
295
-
296
- return (Core::ERROR_NONE);
297
- } ();
298
-
299
- if (hresult != Core::ERROR_NONE) {
300
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 1, hresult);
301
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
302
- }
303
- },
304
-
305
- // (2) virtual void Reset(const uint32_t) = 0
306
- //
307
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
308
- Core::hresult hresult = Core::ERROR_NONE;
309
-
310
- hresult = [&]() -> Core::hresult {
311
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
312
-
313
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
314
-
315
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
316
- ASSERT(implementation != nullptr);
317
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
318
-
319
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
320
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
321
- const uint32_t _position = reader.Number<uint32_t>();
322
-
323
- implementation->Reset(_position);
324
-
325
- return (Core::ERROR_NONE);
326
- } ();
327
-
328
- if (hresult != Core::ERROR_NONE) {
329
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 2, hresult);
330
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
331
- }
332
- },
333
-
334
- // (3) virtual bool IsValid() const = 0
335
- //
336
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
337
- Core::hresult hresult = Core::ERROR_NONE;
338
-
339
- hresult = [&]() -> Core::hresult {
340
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
341
-
342
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
343
-
344
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
345
- ASSERT(implementation != nullptr);
346
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
347
-
348
- bool result = implementation->IsValid();
349
-
350
- RPC::Data::Frame::Writer writer(message->Response().Writer());
351
- writer.Boolean(result);
352
-
353
- return (Core::ERROR_NONE);
354
- } ();
355
-
356
- if (hresult != Core::ERROR_NONE) {
357
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 3, hresult);
358
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
359
- }
360
- },
361
-
362
- // (4) virtual uint32_t Count() const = 0
363
- //
364
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
365
- Core::hresult hresult = Core::ERROR_NONE;
366
-
367
- hresult = [&]() -> Core::hresult {
368
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
369
-
370
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
371
-
372
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
373
- ASSERT(implementation != nullptr);
374
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
375
-
376
- uint32_t result = implementation->Count();
377
-
378
- RPC::Data::Frame::Writer writer(message->Response().Writer());
379
- writer.Number<uint32_t>(result);
380
-
381
- return (Core::ERROR_NONE);
382
- } ();
383
-
384
- if (hresult != Core::ERROR_NONE) {
385
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 4, hresult);
386
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
387
- }
388
- },
389
-
390
- // (5) virtual string Current() const = 0
391
- //
392
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
393
- Core::hresult hresult = Core::ERROR_NONE;
394
-
395
- hresult = [&]() -> Core::hresult {
396
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
397
-
398
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
399
-
400
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
401
- ASSERT(implementation != nullptr);
402
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
403
-
404
- string result = implementation->Current();
405
-
406
- RPC::Data::Frame::Writer writer(message->Response().Writer());
407
- writer.Text(result);
408
-
409
- return (Core::ERROR_NONE);
410
- } ();
411
-
412
- if (hresult != Core::ERROR_NONE) {
413
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 5, hresult);
414
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
415
- }
416
- }
417
- , nullptr
418
- }; // RPCIteratorTypeInstance_b3acff3685df4032StubMethods
419
-
420
- //
421
- // Exchange::IMessageControl interface stub definitions
422
- //
423
- // Methods:
424
- // (0) virtual Core::hresult Enable(const Exchange::IMessageControl::messagetype, const string&, const string&, const bool) = 0
425
- // (1) virtual Core::hresult Modules(Exchange::IMessageControl::IStringIterator*&) const = 0
426
- // (2) virtual Core::hresult Controls(const string&, Exchange::IMessageControl::IControlIterator*&) const = 0
427
- //
428
-
429
- static ProxyStub::MethodHandler ExchangeMessageControlStubMethods[] = {
430
- // (0) virtual Core::hresult Enable(const Exchange::IMessageControl::messagetype, const string&, const string&, const bool) = 0
431
- //
432
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
433
- Core::hresult hresult = Core::ERROR_NONE;
434
-
435
- hresult = [&]() -> Core::hresult {
436
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
437
-
438
- Exchange::IMessageControl* implementation = reinterpret_cast<Exchange::IMessageControl*>(message->Parameters().Implementation());
439
- ASSERT(implementation != nullptr);
440
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), Exchange::IMessageControl::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
441
-
442
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
443
- if (reader.Length() < (Core::RealSize<Exchange::IMessageControl::messagetype>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
444
- const Exchange::IMessageControl::messagetype _type = reader.Number<Exchange::IMessageControl::messagetype>();
445
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
446
- const uint16_t _categoryPeekedLen__ = reader.PeekNumber<uint16_t>();
447
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _categoryPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
448
- const string _category = reader.Text();
449
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
450
- const uint16_t _modulePeekedLen__ = reader.PeekNumber<uint16_t>();
451
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _modulePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
452
- const string _module = reader.Text();
453
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
454
- const bool _enabled = reader.Boolean();
455
-
456
- Core::hresult result = implementation->Enable(_type, static_cast<const string&>(_category), static_cast<const string&>(_module), _enabled);
457
-
458
- RPC::Data::Frame::Writer writer(message->Response().Writer());
459
- writer.Number<Core::hresult>(result);
460
-
461
- return (Core::ERROR_NONE);
462
- } ();
463
-
464
- if (hresult != Core::ERROR_NONE) {
465
- RPC::Data::Frame::Writer writer(message->Response().Writer());
466
- writer.Number<uint32_t>(hresult);
467
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", Exchange::IMessageControl::ID, 0, hresult);
468
- }
469
- },
470
-
471
- // (1) virtual Core::hresult Modules(Exchange::IMessageControl::IStringIterator*&) const = 0
472
- //
473
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
474
- Core::hresult hresult = Core::ERROR_NONE;
475
-
476
- hresult = [&]() -> Core::hresult {
477
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
478
-
479
- const Exchange::IMessageControl* implementation = reinterpret_cast<const Exchange::IMessageControl*>(message->Parameters().Implementation());
480
- ASSERT(implementation != nullptr);
481
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), Exchange::IMessageControl::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
482
-
483
- Exchange::IMessageControl::IStringIterator* _modules{};
484
-
485
- Core::hresult result = implementation->Modules(_modules);
486
-
487
- RPC::Data::Frame::Writer writer(message->Response().Writer());
488
- writer.Number<Core::hresult>(result);
489
- writer.Number<Core::instance_id>(RPC::instance_cast(_modules));
490
-
491
- RPC::Administrator::Instance().RegisterInterface(channel, _modules);
492
-
493
- return (Core::ERROR_NONE);
494
- } ();
495
-
496
- if (hresult != Core::ERROR_NONE) {
497
- RPC::Data::Frame::Writer writer(message->Response().Writer());
498
- writer.Number<uint32_t>(hresult);
499
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", Exchange::IMessageControl::ID, 1, hresult);
500
- }
501
- },
502
-
503
- // (2) virtual Core::hresult Controls(const string&, Exchange::IMessageControl::IControlIterator*&) const = 0
504
- //
505
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
506
- Core::hresult hresult = Core::ERROR_NONE;
507
-
508
- hresult = [&]() -> Core::hresult {
509
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
510
-
511
- const Exchange::IMessageControl* implementation = reinterpret_cast<const Exchange::IMessageControl*>(message->Parameters().Implementation());
512
- ASSERT(implementation != nullptr);
513
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), Exchange::IMessageControl::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
514
-
515
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
516
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
517
- const uint16_t _modulePeekedLen__ = reader.PeekNumber<uint16_t>();
518
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _modulePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
519
- const string _module = reader.Text();
520
-
521
- Exchange::IMessageControl::IControlIterator* _control{};
522
-
523
- Core::hresult result = implementation->Controls(static_cast<const string&>(_module), _control);
524
-
525
- RPC::Data::Frame::Writer writer(message->Response().Writer());
526
- writer.Number<Core::hresult>(result);
527
- writer.Number<Core::instance_id>(RPC::instance_cast(_control));
528
-
529
- RPC::Administrator::Instance().RegisterInterface(channel, _control);
530
-
531
- return (Core::ERROR_NONE);
532
- } ();
533
-
534
- if (hresult != Core::ERROR_NONE) {
535
- RPC::Data::Frame::Writer writer(message->Response().Writer());
536
- writer.Number<uint32_t>(hresult);
537
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", Exchange::IMessageControl::ID, 2, hresult);
538
- }
539
- }
540
- , nullptr
541
- }; // ExchangeMessageControlStubMethods
542
-
543
- // -----------------------------------------------------------------
544
- // PROXIES
545
- // -----------------------------------------------------------------
546
-
547
- //
548
- // RPC::IIteratorTypeInstance_675a6ff7e5671893 interface proxy definitions
549
- //
550
- // Methods:
551
- // (0) virtual bool Next(Exchange::IMessageControl::Control&) = 0
552
- // (1) virtual bool Previous(Exchange::IMessageControl::Control&) = 0
553
- // (2) virtual void Reset(const uint32_t) = 0
554
- // (3) virtual bool IsValid() const = 0
555
- // (4) virtual uint32_t Count() const = 0
556
- // (5) virtual Exchange::IMessageControl::Control Current() const = 0
557
- //
558
-
559
- class RPCIteratorTypeInstance_675a6ff7e5671893Proxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>> {
560
- public:
561
- RPCIteratorTypeInstance_675a6ff7e5671893Proxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
562
- : BaseClass(channel, implementation, otherSideInformed)
563
- {
564
- }
565
-
566
- bool Next(Exchange::IMessageControl::Control& _info) override
567
- {
568
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
569
-
570
- bool result{};
571
-
572
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
573
- if (hresult == Core::ERROR_NONE) {
574
- hresult = [&]() -> Core::hresult {
575
- RPC::Data::Frame::Reader reader(message->Response().Reader());
576
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
577
- result = reader.Boolean();
578
- if (reader.Length() < (Core::RealSize<Exchange::IMessageControl::messagetype>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
579
- _info.type = reader.Number<Exchange::IMessageControl::messagetype>();
580
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
581
- const uint16_t _info_categoryPeekedLen__ = reader.PeekNumber<uint16_t>();
582
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_categoryPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
583
- _info.category = reader.Text();
584
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
585
- const uint16_t _info_modulePeekedLen__ = reader.PeekNumber<uint16_t>();
586
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_modulePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
587
- _info.module = reader.Text();
588
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
589
- _info.enabled = reader.Boolean();
590
-
591
- return (Core::ERROR_NONE);
592
- } ();
593
- } else {
594
- ASSERT((hresult & COM_ERROR) != 0);
595
- }
596
-
597
- if ((hresult & COM_ERROR) != 0) {
598
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>::ID, 0, hresult);
599
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
600
- }
601
-
602
- return (result);
603
- }
604
-
605
- bool Previous(Exchange::IMessageControl::Control& _info) override
606
- {
607
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
608
-
609
- bool result{};
610
-
611
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
612
- if (hresult == Core::ERROR_NONE) {
613
- hresult = [&]() -> Core::hresult {
614
- RPC::Data::Frame::Reader reader(message->Response().Reader());
615
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
616
- result = reader.Boolean();
617
- if (reader.Length() < (Core::RealSize<Exchange::IMessageControl::messagetype>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
618
- _info.type = reader.Number<Exchange::IMessageControl::messagetype>();
619
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
620
- const uint16_t _info_categoryPeekedLen__ = reader.PeekNumber<uint16_t>();
621
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_categoryPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
622
- _info.category = reader.Text();
623
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
624
- const uint16_t _info_modulePeekedLen__ = reader.PeekNumber<uint16_t>();
625
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_modulePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
626
- _info.module = reader.Text();
627
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
628
- _info.enabled = reader.Boolean();
629
-
630
- return (Core::ERROR_NONE);
631
- } ();
632
- } else {
633
- ASSERT((hresult & COM_ERROR) != 0);
634
- }
635
-
636
- if ((hresult & COM_ERROR) != 0) {
637
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>::ID, 1, hresult);
638
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
639
- }
640
-
641
- return (result);
642
- }
643
-
644
- void Reset(const uint32_t _position) override
645
- {
646
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
647
-
648
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
649
- writer.Number<uint32_t>(_position);
650
-
651
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
652
- if (hresult == Core::ERROR_NONE) {
653
- hresult = [&]() -> Core::hresult {
654
-
655
- return (Core::ERROR_NONE);
656
- } ();
657
- } else {
658
- ASSERT((hresult & COM_ERROR) != 0);
659
- }
660
-
661
- if ((hresult & COM_ERROR) != 0) {
662
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>::ID, 2, hresult);
663
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
664
- }
665
- }
666
-
667
- bool IsValid() const override
668
- {
669
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
670
-
671
- bool result{};
672
-
673
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
674
- if (hresult == Core::ERROR_NONE) {
675
- hresult = [&]() -> Core::hresult {
676
- RPC::Data::Frame::Reader reader(message->Response().Reader());
677
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
678
- result = reader.Boolean();
679
-
680
- return (Core::ERROR_NONE);
681
- } ();
682
- } else {
683
- ASSERT((hresult & COM_ERROR) != 0);
684
- }
685
-
686
- if ((hresult & COM_ERROR) != 0) {
687
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>::ID, 3, hresult);
688
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
689
- }
690
-
691
- return (result);
692
- }
693
-
694
- uint32_t Count() const override
695
- {
696
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
697
-
698
- uint32_t result{};
699
-
700
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
701
- if (hresult == Core::ERROR_NONE) {
702
- hresult = [&]() -> Core::hresult {
703
- RPC::Data::Frame::Reader reader(message->Response().Reader());
704
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
705
- result = reader.Number<uint32_t>();
706
-
707
- return (Core::ERROR_NONE);
708
- } ();
709
- } else {
710
- ASSERT((hresult & COM_ERROR) != 0);
711
- }
712
-
713
- if ((hresult & COM_ERROR) != 0) {
714
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>::ID, 4, hresult);
715
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
716
- }
717
-
718
- return (result);
719
- }
720
-
721
- Exchange::IMessageControl::Control Current() const override
722
- {
723
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
724
-
725
- Exchange::IMessageControl::Control result{};
726
-
727
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
728
- if (hresult == Core::ERROR_NONE) {
729
- hresult = [&]() -> Core::hresult {
730
- RPC::Data::Frame::Reader reader(message->Response().Reader());
731
- if (reader.Length() < (Core::RealSize<Exchange::IMessageControl::messagetype>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
732
- result.type = reader.Number<Exchange::IMessageControl::messagetype>();
733
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
734
- const uint16_t result_categoryPeekedLen__ = reader.PeekNumber<uint16_t>();
735
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + result_categoryPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
736
- result.category = reader.Text();
737
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
738
- const uint16_t result_modulePeekedLen__ = reader.PeekNumber<uint16_t>();
739
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + result_modulePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
740
- result.module = reader.Text();
741
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
742
- result.enabled = reader.Boolean();
743
-
744
- return (Core::ERROR_NONE);
745
- } ();
746
- } else {
747
- ASSERT((hresult & COM_ERROR) != 0);
748
- }
749
-
750
- if ((hresult & COM_ERROR) != 0) {
751
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>::ID, 5, hresult);
752
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
753
- }
754
-
755
- return (result);
756
- }
757
-
758
- }; // class RPCIteratorTypeInstance_675a6ff7e5671893Proxy
759
-
760
- //
761
- // RPC::IIteratorTypeInstance_b3acff3685df4032 interface proxy definitions
762
- //
763
- // Methods:
764
- // (0) virtual bool Next(string&) = 0
765
- // (1) virtual bool Previous(string&) = 0
766
- // (2) virtual void Reset(const uint32_t) = 0
767
- // (3) virtual bool IsValid() const = 0
768
- // (4) virtual uint32_t Count() const = 0
769
- // (5) virtual string Current() const = 0
770
- //
771
-
772
- class RPCIteratorTypeInstance_b3acff3685df4032Proxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>> {
773
- public:
774
- RPCIteratorTypeInstance_b3acff3685df4032Proxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
775
- : BaseClass(channel, implementation, otherSideInformed)
776
- {
777
- }
778
-
779
- bool Next(string& _info) override
780
- {
781
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
782
-
783
- bool result{};
784
-
785
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
786
- if (hresult == Core::ERROR_NONE) {
787
- hresult = [&]() -> Core::hresult {
788
- RPC::Data::Frame::Reader reader(message->Response().Reader());
789
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
790
- result = reader.Boolean();
791
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
792
- const uint16_t _infoPeekedLen__ = reader.PeekNumber<uint16_t>();
793
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _infoPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
794
- _info = reader.Text();
795
-
796
- return (Core::ERROR_NONE);
797
- } ();
798
- } else {
799
- ASSERT((hresult & COM_ERROR) != 0);
800
- }
801
-
802
- if ((hresult & COM_ERROR) != 0) {
803
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 0, hresult);
804
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
805
- }
806
-
807
- return (result);
808
- }
809
-
810
- bool Previous(string& _info) override
811
- {
812
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
813
-
814
- bool result{};
815
-
816
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
817
- if (hresult == Core::ERROR_NONE) {
818
- hresult = [&]() -> Core::hresult {
819
- RPC::Data::Frame::Reader reader(message->Response().Reader());
820
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
821
- result = reader.Boolean();
822
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
823
- const uint16_t _infoPeekedLen__ = reader.PeekNumber<uint16_t>();
824
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _infoPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
825
- _info = reader.Text();
826
-
827
- return (Core::ERROR_NONE);
828
- } ();
829
- } else {
830
- ASSERT((hresult & COM_ERROR) != 0);
831
- }
832
-
833
- if ((hresult & COM_ERROR) != 0) {
834
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 1, hresult);
835
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
836
- }
837
-
838
- return (result);
839
- }
840
-
841
- void Reset(const uint32_t _position) override
842
- {
843
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
844
-
845
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
846
- writer.Number<uint32_t>(_position);
847
-
848
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
849
- if (hresult == Core::ERROR_NONE) {
850
- hresult = [&]() -> Core::hresult {
851
-
852
- return (Core::ERROR_NONE);
853
- } ();
854
- } else {
855
- ASSERT((hresult & COM_ERROR) != 0);
856
- }
857
-
858
- if ((hresult & COM_ERROR) != 0) {
859
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 2, hresult);
860
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
861
- }
862
- }
863
-
864
- bool IsValid() const override
865
- {
866
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
867
-
868
- bool result{};
869
-
870
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
871
- if (hresult == Core::ERROR_NONE) {
872
- hresult = [&]() -> Core::hresult {
873
- RPC::Data::Frame::Reader reader(message->Response().Reader());
874
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
875
- result = reader.Boolean();
876
-
877
- return (Core::ERROR_NONE);
878
- } ();
879
- } else {
880
- ASSERT((hresult & COM_ERROR) != 0);
881
- }
882
-
883
- if ((hresult & COM_ERROR) != 0) {
884
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 3, hresult);
885
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
886
- }
887
-
888
- return (result);
889
- }
890
-
891
- uint32_t Count() const override
892
- {
893
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
894
-
895
- uint32_t result{};
896
-
897
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
898
- if (hresult == Core::ERROR_NONE) {
899
- hresult = [&]() -> Core::hresult {
900
- RPC::Data::Frame::Reader reader(message->Response().Reader());
901
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
902
- result = reader.Number<uint32_t>();
903
-
904
- return (Core::ERROR_NONE);
905
- } ();
906
- } else {
907
- ASSERT((hresult & COM_ERROR) != 0);
908
- }
909
-
910
- if ((hresult & COM_ERROR) != 0) {
911
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 4, hresult);
912
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
913
- }
914
-
915
- return (result);
916
- }
917
-
918
- string Current() const override
919
- {
920
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
921
-
922
- string result{};
923
-
924
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
925
- if (hresult == Core::ERROR_NONE) {
926
- hresult = [&]() -> Core::hresult {
927
- RPC::Data::Frame::Reader reader(message->Response().Reader());
928
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
929
- const uint16_t resultPeekedLen__ = reader.PeekNumber<uint16_t>();
930
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + resultPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
931
- result = reader.Text();
932
-
933
- return (Core::ERROR_NONE);
934
- } ();
935
- } else {
936
- ASSERT((hresult & COM_ERROR) != 0);
937
- }
938
-
939
- if ((hresult & COM_ERROR) != 0) {
940
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 5, hresult);
941
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
942
- }
943
-
944
- return (result);
945
- }
946
-
947
- }; // class RPCIteratorTypeInstance_b3acff3685df4032Proxy
948
-
949
- //
950
- // Exchange::IMessageControl interface proxy definitions
951
- //
952
- // Methods:
953
- // (0) virtual Core::hresult Enable(const Exchange::IMessageControl::messagetype, const string&, const string&, const bool) = 0
954
- // (1) virtual Core::hresult Modules(Exchange::IMessageControl::IStringIterator*&) const = 0
955
- // (2) virtual Core::hresult Controls(const string&, Exchange::IMessageControl::IControlIterator*&) const = 0
956
- //
957
-
958
- class ExchangeMessageControlProxy final : public ProxyStub::UnknownProxyType<Exchange::IMessageControl> {
959
- public:
960
- ExchangeMessageControlProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
961
- : BaseClass(channel, implementation, otherSideInformed)
962
- {
963
- }
964
-
965
- Core::hresult Enable(const Exchange::IMessageControl::messagetype _type, const string& _category, const string& _module, const bool _enabled) override
966
- {
967
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
968
-
969
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
970
- writer.Number<Exchange::IMessageControl::messagetype>(_type);
971
- writer.Text(_category);
972
- writer.Text(_module);
973
- writer.Boolean(_enabled);
974
-
975
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
976
- if (hresult == Core::ERROR_NONE) {
977
- hresult = [&]() -> Core::hresult {
978
- RPC::Data::Frame::Reader reader(message->Response().Reader());
979
- if (reader.Length() < (Core::RealSize<Core::hresult>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
980
- hresult = reader.Number<Core::hresult>();
981
-
982
- return (hresult);
983
- } ();
984
- } else {
985
- ASSERT((hresult & COM_ERROR) != 0);
986
- }
987
-
988
- if ((hresult & COM_ERROR) != 0) {
989
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", Exchange::IMessageControl::ID, 0, hresult);
990
- }
991
-
992
- return (hresult);
993
- }
994
-
995
- Core::hresult Modules(Exchange::IMessageControl::IStringIterator*& _modules) const override
996
- {
997
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
998
-
999
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1000
- if (hresult == Core::ERROR_NONE) {
1001
- hresult = [&]() -> Core::hresult {
1002
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1003
- if (reader.Length() < (Core::RealSize<Core::hresult>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1004
- hresult = reader.Number<Core::hresult>();
1005
- if ((hresult & COM_ERROR) == 0) {
1006
- _modules = reinterpret_cast<Exchange::IMessageControl::IStringIterator*>(static_cast<const ProxyStub::UnknownProxy&>(*this).Interface(reader.Number<Core::instance_id>(), Exchange::IMessageControl::IStringIterator::ID));
1007
- }
1008
-
1009
- return (hresult);
1010
- } ();
1011
- } else {
1012
- ASSERT((hresult & COM_ERROR) != 0);
1013
- }
1014
-
1015
- if ((hresult & COM_ERROR) != 0) {
1016
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", Exchange::IMessageControl::ID, 1, hresult);
1017
- }
1018
-
1019
- return (hresult);
1020
- }
1021
-
1022
- Core::hresult Controls(const string& _module, Exchange::IMessageControl::IControlIterator*& _control) const override
1023
- {
1024
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
1025
-
1026
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
1027
- writer.Text(_module);
1028
-
1029
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1030
- if (hresult == Core::ERROR_NONE) {
1031
- hresult = [&]() -> Core::hresult {
1032
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1033
- if (reader.Length() < (Core::RealSize<Core::hresult>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1034
- hresult = reader.Number<Core::hresult>();
1035
- if ((hresult & COM_ERROR) == 0) {
1036
- _control = reinterpret_cast<Exchange::IMessageControl::IControlIterator*>(static_cast<const ProxyStub::UnknownProxy&>(*this).Interface(reader.Number<Core::instance_id>(), Exchange::IMessageControl::IControlIterator::ID));
1037
- }
1038
-
1039
- return (hresult);
1040
- } ();
1041
- } else {
1042
- ASSERT((hresult & COM_ERROR) != 0);
1043
- }
1044
-
1045
- if ((hresult & COM_ERROR) != 0) {
1046
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", Exchange::IMessageControl::ID, 2, hresult);
1047
- }
1048
-
1049
- return (hresult);
1050
- }
1051
-
1052
- }; // class ExchangeMessageControlProxy
1053
-
1054
- POP_WARNING()
1055
- POP_WARNING()
1056
-
1057
- // -----------------------------------------------------------------
1058
- // REGISTRATION
1059
- // -----------------------------------------------------------------
1060
- namespace {
1061
-
1062
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>, RPCIteratorTypeInstance_675a6ff7e5671893StubMethods> RPCIteratorTypeInstance_675a6ff7e5671893Stub;
1063
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_b3acff3685df4032StubMethods> RPCIteratorTypeInstance_b3acff3685df4032Stub;
1064
- typedef ProxyStub::UnknownStubType<Exchange::IMessageControl, ExchangeMessageControlStubMethods> ExchangeMessageControlStub;
1065
-
1066
- static class Instantiation {
1067
- public:
1068
- Instantiation()
1069
- {
1070
- const RPC::SecureProxyStubType security = static_cast<RPC::SecureProxyStubType>(static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_SECURE) | static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_COHERENT));
1071
-
1072
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>, RPCIteratorTypeInstance_675a6ff7e5671893Proxy, RPCIteratorTypeInstance_675a6ff7e5671893Stub>(security);
1073
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_b3acff3685df4032Proxy, RPCIteratorTypeInstance_b3acff3685df4032Stub>(security);
1074
- RPC::Administrator::Instance().Announce<Exchange::IMessageControl, ExchangeMessageControlProxy, ExchangeMessageControlStub>(security);
1075
- }
1076
- ~Instantiation()
1077
- {
1078
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<Exchange::IMessageControl::Control, Exchange::ID_MESSAGE_CONTROL_ITERATOR>>();
1079
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>>();
1080
- RPC::Administrator::Instance().Recall<Exchange::IMessageControl>();
1081
- }
1082
- } ProxyStubRegistration;
1083
-
1084
- } // namespace
1085
-
1086
- } // namespace ProxyStubs
1087
-
1088
- }
{baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_PackageManager.cpp RENAMED
@@ -1,10 +1,9 @@
1
1
  //
2
2
  // generated automatically from "IPackageManager.h"
3
3
  //
4
4
  // implements COM-RPC proxy stubs for:
5
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = RPC::ID_STRINGITERATOR] [[iterator]]
6
5
  // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = Exchange::IPackageManager::KeyValue, INTERFACE_ID = Exchange::ID_PACKAGEMANAGER_KEY_VALUE_ITERATOR] [[iterator]]
7
6
  // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = Exchange::IPackageManager::PackageKey, INTERFACE_ID = Exchange::ID_PACKAGEMANAGER_PACKAGE_KEY_ITERATOR] [[iterator]]
8
7
  // - class Exchange::IPackageManager
9
8
  // - class Exchange::IPackageManager::INotification
10
9
  // - class Exchange::IPackageManagerBroker
@@ -31,200 +30,10 @@
31
30
  // -----------------------------------------------------------------
32
31
  // STUBS
33
32
  // -----------------------------------------------------------------
34
33
 
35
34
  //
36
- // RPC::IIteratorTypeInstance_b3acff3685df4032 interface stub definitions
37
- //
38
- // Methods:
39
- // (0) virtual bool Next(string&) = 0
40
- // (1) virtual bool Previous(string&) = 0
41
- // (2) virtual void Reset(const uint32_t) = 0
42
- // (3) virtual bool IsValid() const = 0
43
- // (4) virtual uint32_t Count() const = 0
44
- // (5) virtual string Current() const = 0
45
- //
46
-
47
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_b3acff3685df4032StubMethods[] = {
48
- // (0) virtual bool Next(string&) = 0
49
- //
50
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
51
- Core::hresult hresult = Core::ERROR_NONE;
52
-
53
- hresult = [&]() -> Core::hresult {
54
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
55
-
56
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
57
-
58
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
59
- ASSERT(implementation != nullptr);
60
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
61
-
62
- string _info{};
63
-
64
- bool result = implementation->Next(_info);
65
-
66
- RPC::Data::Frame::Writer writer(message->Response().Writer());
67
- writer.Boolean(result);
68
- writer.Text(_info);
69
-
70
- return (Core::ERROR_NONE);
71
- } ();
72
-
73
- if (hresult != Core::ERROR_NONE) {
74
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 0, hresult);
75
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
76
- }
77
- },
78
-
79
- // (1) virtual bool Previous(string&) = 0
80
- //
81
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
82
- Core::hresult hresult = Core::ERROR_NONE;
83
-
84
- hresult = [&]() -> Core::hresult {
85
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
86
-
87
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
88
-
89
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
90
- ASSERT(implementation != nullptr);
91
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
92
-
93
- string _info{};
94
-
95
- bool result = implementation->Previous(_info);
96
-
97
- RPC::Data::Frame::Writer writer(message->Response().Writer());
98
- writer.Boolean(result);
99
- writer.Text(_info);
100
-
101
- return (Core::ERROR_NONE);
102
- } ();
103
-
104
- if (hresult != Core::ERROR_NONE) {
105
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 1, hresult);
106
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
107
- }
108
- },
109
-
110
- // (2) virtual void Reset(const uint32_t) = 0
111
- //
112
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
113
- Core::hresult hresult = Core::ERROR_NONE;
114
-
115
- hresult = [&]() -> Core::hresult {
116
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
117
-
118
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
119
-
120
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
121
- ASSERT(implementation != nullptr);
122
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
123
-
124
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
125
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
126
- const uint32_t _position = reader.Number<uint32_t>();
127
-
128
- implementation->Reset(_position);
129
-
130
- return (Core::ERROR_NONE);
131
- } ();
132
-
133
- if (hresult != Core::ERROR_NONE) {
134
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 2, hresult);
135
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
136
- }
137
- },
138
-
139
- // (3) virtual bool IsValid() const = 0
140
- //
141
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
142
- Core::hresult hresult = Core::ERROR_NONE;
143
-
144
- hresult = [&]() -> Core::hresult {
145
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
146
-
147
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
148
-
149
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
150
- ASSERT(implementation != nullptr);
151
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
152
-
153
- bool result = implementation->IsValid();
154
-
155
- RPC::Data::Frame::Writer writer(message->Response().Writer());
156
- writer.Boolean(result);
157
-
158
- return (Core::ERROR_NONE);
159
- } ();
160
-
161
- if (hresult != Core::ERROR_NONE) {
162
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 3, hresult);
163
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
164
- }
165
- },
166
-
167
- // (4) virtual uint32_t Count() const = 0
168
- //
169
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
170
- Core::hresult hresult = Core::ERROR_NONE;
171
-
172
- hresult = [&]() -> Core::hresult {
173
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
174
-
175
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
176
-
177
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
178
- ASSERT(implementation != nullptr);
179
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
180
-
181
- uint32_t result = implementation->Count();
182
-
183
- RPC::Data::Frame::Writer writer(message->Response().Writer());
184
- writer.Number<uint32_t>(result);
185
-
186
- return (Core::ERROR_NONE);
187
- } ();
188
-
189
- if (hresult != Core::ERROR_NONE) {
190
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 4, hresult);
191
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
192
- }
193
- },
194
-
195
- // (5) virtual string Current() const = 0
196
- //
197
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
198
- Core::hresult hresult = Core::ERROR_NONE;
199
-
200
- hresult = [&]() -> Core::hresult {
201
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
202
-
203
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
204
-
205
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
206
- ASSERT(implementation != nullptr);
207
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
208
-
209
- string result = implementation->Current();
210
-
211
- RPC::Data::Frame::Writer writer(message->Response().Writer());
212
- writer.Text(result);
213
-
214
- return (Core::ERROR_NONE);
215
- } ();
216
-
217
- if (hresult != Core::ERROR_NONE) {
218
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 5, hresult);
219
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
220
- }
221
- }
222
- , nullptr
223
- }; // RPCIteratorTypeInstance_b3acff3685df4032StubMethods
224
-
225
- //
226
35
  // RPC::IIteratorTypeInstance_12fceda1fceae24e interface stub definitions
227
36
  //
228
37
  // Methods:
229
38
  // (0) virtual bool Next(Exchange::IPackageManager::KeyValue&) = 0
230
39
  // (1) virtual bool Previous(Exchange::IPackageManager::KeyValue&) = 0
@@ -1594,199 +1403,10 @@
1594
1403
  // -----------------------------------------------------------------
1595
1404
  // PROXIES
1596
1405
  // -----------------------------------------------------------------
1597
1406
 
1598
1407
  //
1599
- // RPC::IIteratorTypeInstance_b3acff3685df4032 interface proxy definitions
1600
- //
1601
- // Methods:
1602
- // (0) virtual bool Next(string&) = 0
1603
- // (1) virtual bool Previous(string&) = 0
1604
- // (2) virtual void Reset(const uint32_t) = 0
1605
- // (3) virtual bool IsValid() const = 0
1606
- // (4) virtual uint32_t Count() const = 0
1607
- // (5) virtual string Current() const = 0
1608
- //
1609
-
1610
- class RPCIteratorTypeInstance_b3acff3685df4032Proxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>> {
1611
- public:
1612
- RPCIteratorTypeInstance_b3acff3685df4032Proxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
1613
- : BaseClass(channel, implementation, otherSideInformed)
1614
- {
1615
- }
1616
-
1617
- bool Next(string& _info) override
1618
- {
1619
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
1620
-
1621
- bool result{};
1622
-
1623
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1624
- if (hresult == Core::ERROR_NONE) {
1625
- hresult = [&]() -> Core::hresult {
1626
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1627
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1628
- result = reader.Boolean();
1629
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1630
- const uint16_t _infoPeekedLen__ = reader.PeekNumber<uint16_t>();
1631
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _infoPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1632
- _info = reader.Text();
1633
-
1634
- return (Core::ERROR_NONE);
1635
- } ();
1636
- } else {
1637
- ASSERT((hresult & COM_ERROR) != 0);
1638
- }
1639
-
1640
- if ((hresult & COM_ERROR) != 0) {
1641
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 0, hresult);
1642
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1643
- }
1644
-
1645
- return (result);
1646
- }
1647
-
1648
- bool Previous(string& _info) override
1649
- {
1650
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
1651
-
1652
- bool result{};
1653
-
1654
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1655
- if (hresult == Core::ERROR_NONE) {
1656
- hresult = [&]() -> Core::hresult {
1657
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1658
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1659
- result = reader.Boolean();
1660
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1661
- const uint16_t _infoPeekedLen__ = reader.PeekNumber<uint16_t>();
1662
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _infoPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1663
- _info = reader.Text();
1664
-
1665
- return (Core::ERROR_NONE);
1666
- } ();
1667
- } else {
1668
- ASSERT((hresult & COM_ERROR) != 0);
1669
- }
1670
-
1671
- if ((hresult & COM_ERROR) != 0) {
1672
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 1, hresult);
1673
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1674
- }
1675
-
1676
- return (result);
1677
- }
1678
-
1679
- void Reset(const uint32_t _position) override
1680
- {
1681
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
1682
-
1683
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
1684
- writer.Number<uint32_t>(_position);
1685
-
1686
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1687
- if (hresult == Core::ERROR_NONE) {
1688
- hresult = [&]() -> Core::hresult {
1689
-
1690
- return (Core::ERROR_NONE);
1691
- } ();
1692
- } else {
1693
- ASSERT((hresult & COM_ERROR) != 0);
1694
- }
1695
-
1696
- if ((hresult & COM_ERROR) != 0) {
1697
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 2, hresult);
1698
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1699
- }
1700
- }
1701
-
1702
- bool IsValid() const override
1703
- {
1704
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
1705
-
1706
- bool result{};
1707
-
1708
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1709
- if (hresult == Core::ERROR_NONE) {
1710
- hresult = [&]() -> Core::hresult {
1711
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1712
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1713
- result = reader.Boolean();
1714
-
1715
- return (Core::ERROR_NONE);
1716
- } ();
1717
- } else {
1718
- ASSERT((hresult & COM_ERROR) != 0);
1719
- }
1720
-
1721
- if ((hresult & COM_ERROR) != 0) {
1722
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 3, hresult);
1723
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1724
- }
1725
-
1726
- return (result);
1727
- }
1728
-
1729
- uint32_t Count() const override
1730
- {
1731
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
1732
-
1733
- uint32_t result{};
1734
-
1735
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1736
- if (hresult == Core::ERROR_NONE) {
1737
- hresult = [&]() -> Core::hresult {
1738
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1739
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1740
- result = reader.Number<uint32_t>();
1741
-
1742
- return (Core::ERROR_NONE);
1743
- } ();
1744
- } else {
1745
- ASSERT((hresult & COM_ERROR) != 0);
1746
- }
1747
-
1748
- if ((hresult & COM_ERROR) != 0) {
1749
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 4, hresult);
1750
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1751
- }
1752
-
1753
- return (result);
1754
- }
1755
-
1756
- string Current() const override
1757
- {
1758
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1759
-
1760
- string result{};
1761
-
1762
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1763
- if (hresult == Core::ERROR_NONE) {
1764
- hresult = [&]() -> Core::hresult {
1765
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1766
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1767
- const uint16_t resultPeekedLen__ = reader.PeekNumber<uint16_t>();
1768
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + resultPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1769
- result = reader.Text();
1770
-
1771
- return (Core::ERROR_NONE);
1772
- } ();
1773
- } else {
1774
- ASSERT((hresult & COM_ERROR) != 0);
1775
- }
1776
-
1777
- if ((hresult & COM_ERROR) != 0) {
1778
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 5, hresult);
1779
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1780
- }
1781
-
1782
- return (result);
1783
- }
1784
-
1785
- }; // class RPCIteratorTypeInstance_b3acff3685df4032Proxy
1786
-
1787
- //
1788
1408
  // RPC::IIteratorTypeInstance_12fceda1fceae24e interface proxy definitions
1789
1409
  //
1790
1410
  // Methods:
1791
1411
  // (0) virtual bool Next(Exchange::IPackageManager::KeyValue&) = 0
1792
1412
  // (1) virtual bool Previous(Exchange::IPackageManager::KeyValue&) = 0
@@ -3025,11 +2645,10 @@
3025
2645
  // -----------------------------------------------------------------
3026
2646
  // REGISTRATION
3027
2647
  // -----------------------------------------------------------------
3028
2648
  namespace {
3029
2649
 
3030
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_b3acff3685df4032StubMethods> RPCIteratorTypeInstance_b3acff3685df4032Stub;
3031
2650
  typedef ProxyStub::UnknownStubType<RPC::IIteratorType<Exchange::IPackageManager::KeyValue, Exchange::ID_PACKAGEMANAGER_KEY_VALUE_ITERATOR>, RPCIteratorTypeInstance_12fceda1fceae24eStubMethods> RPCIteratorTypeInstance_12fceda1fceae24eStub;
3032
2651
  typedef ProxyStub::UnknownStubType<RPC::IIteratorType<Exchange::IPackageManager::PackageKey, Exchange::ID_PACKAGEMANAGER_PACKAGE_KEY_ITERATOR>, RPCIteratorTypeInstance_c5055b79d41fb221StubMethods> RPCIteratorTypeInstance_c5055b79d41fb221Stub;
3033
2652
  typedef ProxyStub::UnknownStubType<Exchange::IPackageManager, ExchangePackageManagerStubMethods> ExchangePackageManagerStub;
3034
2653
  typedef ProxyStub::UnknownStubType<Exchange::IPackageManager::INotification, ExchangePackageManagerNotificationStubMethods> ExchangePackageManagerNotificationStub;
3035
2654
  typedef ProxyStub::UnknownStubType<Exchange::IPackageManagerBroker, ExchangePackageManagerBrokerStubMethods> ExchangePackageManagerBrokerStub;
@@ -3039,21 +2658,19 @@
3039
2658
  public:
3040
2659
  Instantiation()
3041
2660
  {
3042
2661
  const RPC::SecureProxyStubType security = static_cast<RPC::SecureProxyStubType>(static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_SECURE) | static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_COHERENT));
3043
2662
 
3044
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_b3acff3685df4032Proxy, RPCIteratorTypeInstance_b3acff3685df4032Stub>(security);
3045
2663
  RPC::Administrator::Instance().Announce<RPC::IIteratorType<Exchange::IPackageManager::KeyValue, Exchange::ID_PACKAGEMANAGER_KEY_VALUE_ITERATOR>, RPCIteratorTypeInstance_12fceda1fceae24eProxy, RPCIteratorTypeInstance_12fceda1fceae24eStub>(security);
3046
2664
  RPC::Administrator::Instance().Announce<RPC::IIteratorType<Exchange::IPackageManager::PackageKey, Exchange::ID_PACKAGEMANAGER_PACKAGE_KEY_ITERATOR>, RPCIteratorTypeInstance_c5055b79d41fb221Proxy, RPCIteratorTypeInstance_c5055b79d41fb221Stub>(security);
3047
2665
  RPC::Administrator::Instance().Announce<Exchange::IPackageManager, ExchangePackageManagerProxy, ExchangePackageManagerStub>(security);
3048
2666
  RPC::Administrator::Instance().Announce<Exchange::IPackageManager::INotification, ExchangePackageManagerNotificationProxy, ExchangePackageManagerNotificationStub>(security);
3049
2667
  RPC::Administrator::Instance().Announce<Exchange::IPackageManagerBroker, ExchangePackageManagerBrokerProxy, ExchangePackageManagerBrokerStub>(security);
3050
2668
  RPC::Administrator::Instance().Announce<Exchange::IPackageManagerCallback, ExchangePackageManagerCallbackProxy, ExchangePackageManagerCallbackStub>(security);
3051
2669
  }
3052
2670
  ~Instantiation()
3053
2671
  {
3054
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>>();
3055
2672
  RPC::Administrator::Instance().Recall<RPC::IIteratorType<Exchange::IPackageManager::KeyValue, Exchange::ID_PACKAGEMANAGER_KEY_VALUE_ITERATOR>>();
3056
2673
  RPC::Administrator::Instance().Recall<RPC::IIteratorType<Exchange::IPackageManager::PackageKey, Exchange::ID_PACKAGEMANAGER_PACKAGE_KEY_ITERATOR>>();
3057
2674
  RPC::Administrator::Instance().Recall<Exchange::IPackageManager>();
3058
2675
  RPC::Administrator::Instance().Recall<Exchange::IPackageManager::INotification>();
3059
2676
  RPC::Administrator::Instance().Recall<Exchange::IPackageManagerBroker>();
{baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_Provisioning.cpp RENAMED
@@ -1,12 +1,10 @@
1
1
  //
2
2
  // generated automatically from "IProvisioning.h"
3
3
  //
4
4
  // implements COM-RPC proxy stubs for:
5
5
  // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = RPC::ID_STRINGITERATOR] [[iterator]]
6
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = uint32_t, INTERFACE_ID = RPC::ID_VALUEITERATOR] [[iterator]]
7
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = RPC::Environment, INTERFACE_ID = RPC::ID_ENVIRONMENTITERATOR] [[iterator]]
8
6
  // - class Exchange::IProvisioning
9
7
  // - class Exchange::IProvisioning::INotification
10
8
  //
11
9
  // secure code enabled:
12
10
  // - instance verification enabled
@@ -219,396 +217,10 @@
219
217
  }
220
218
  , nullptr
221
219
  }; // RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods
222
220
 
223
221
  //
224
- // RPC::IIteratorTypeInstance_60eba5a793c685ea interface stub definitions
225
- //
226
- // Methods:
227
- // (0) virtual bool Next(uint32_t&) = 0
228
- // (1) virtual bool Previous(uint32_t&) = 0
229
- // (2) virtual void Reset(const uint32_t) = 0
230
- // (3) virtual bool IsValid() const = 0
231
- // (4) virtual uint32_t Count() const = 0
232
- // (5) virtual uint32_t Current() const = 0
233
- //
234
-
235
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_60eba5a793c685eaStubMethods[] = {
236
- // (0) virtual bool Next(uint32_t&) = 0
237
- //
238
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
239
- Core::hresult hresult = Core::ERROR_NONE;
240
-
241
- hresult = [&]() -> Core::hresult {
242
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
243
-
244
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
245
-
246
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
247
- ASSERT(implementation != nullptr);
248
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
249
-
250
- uint32_t _info{};
251
-
252
- bool result = implementation->Next(_info);
253
-
254
- RPC::Data::Frame::Writer writer(message->Response().Writer());
255
- writer.Boolean(result);
256
- writer.Number<uint32_t>(_info);
257
-
258
- return (Core::ERROR_NONE);
259
- } ();
260
-
261
- if (hresult != Core::ERROR_NONE) {
262
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 0, hresult);
263
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
264
- }
265
- },
266
-
267
- // (1) virtual bool Previous(uint32_t&) = 0
268
- //
269
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
270
- Core::hresult hresult = Core::ERROR_NONE;
271
-
272
- hresult = [&]() -> Core::hresult {
273
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
274
-
275
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
276
-
277
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
278
- ASSERT(implementation != nullptr);
279
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
280
-
281
- uint32_t _info{};
282
-
283
- bool result = implementation->Previous(_info);
284
-
285
- RPC::Data::Frame::Writer writer(message->Response().Writer());
286
- writer.Boolean(result);
287
- writer.Number<uint32_t>(_info);
288
-
289
- return (Core::ERROR_NONE);
290
- } ();
291
-
292
- if (hresult != Core::ERROR_NONE) {
293
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 1, hresult);
294
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
295
- }
296
- },
297
-
298
- // (2) virtual void Reset(const uint32_t) = 0
299
- //
300
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
301
- Core::hresult hresult = Core::ERROR_NONE;
302
-
303
- hresult = [&]() -> Core::hresult {
304
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
305
-
306
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
307
-
308
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
309
- ASSERT(implementation != nullptr);
310
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
311
-
312
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
313
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
314
- const uint32_t _position = reader.Number<uint32_t>();
315
-
316
- implementation->Reset(_position);
317
-
318
- return (Core::ERROR_NONE);
319
- } ();
320
-
321
- if (hresult != Core::ERROR_NONE) {
322
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 2, hresult);
323
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
324
- }
325
- },
326
-
327
- // (3) virtual bool IsValid() const = 0
328
- //
329
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
330
- Core::hresult hresult = Core::ERROR_NONE;
331
-
332
- hresult = [&]() -> Core::hresult {
333
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
334
-
335
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
336
-
337
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
338
- ASSERT(implementation != nullptr);
339
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
340
-
341
- bool result = implementation->IsValid();
342
-
343
- RPC::Data::Frame::Writer writer(message->Response().Writer());
344
- writer.Boolean(result);
345
-
346
- return (Core::ERROR_NONE);
347
- } ();
348
-
349
- if (hresult != Core::ERROR_NONE) {
350
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 3, hresult);
351
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
352
- }
353
- },
354
-
355
- // (4) virtual uint32_t Count() const = 0
356
- //
357
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
358
- Core::hresult hresult = Core::ERROR_NONE;
359
-
360
- hresult = [&]() -> Core::hresult {
361
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
362
-
363
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
364
-
365
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
366
- ASSERT(implementation != nullptr);
367
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
368
-
369
- uint32_t result = implementation->Count();
370
-
371
- RPC::Data::Frame::Writer writer(message->Response().Writer());
372
- writer.Number<uint32_t>(result);
373
-
374
- return (Core::ERROR_NONE);
375
- } ();
376
-
377
- if (hresult != Core::ERROR_NONE) {
378
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 4, hresult);
379
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
380
- }
381
- },
382
-
383
- // (5) virtual uint32_t Current() const = 0
384
- //
385
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
386
- Core::hresult hresult = Core::ERROR_NONE;
387
-
388
- hresult = [&]() -> Core::hresult {
389
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
390
-
391
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
392
-
393
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
394
- ASSERT(implementation != nullptr);
395
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
396
-
397
- uint32_t result = implementation->Current();
398
-
399
- RPC::Data::Frame::Writer writer(message->Response().Writer());
400
- writer.Number<uint32_t>(result);
401
-
402
- return (Core::ERROR_NONE);
403
- } ();
404
-
405
- if (hresult != Core::ERROR_NONE) {
406
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 5, hresult);
407
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
408
- }
409
- }
410
- , nullptr
411
- }; // RPCIteratorTypeInstance_60eba5a793c685eaStubMethods
412
-
413
- //
414
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface stub definitions
415
- //
416
- // Methods:
417
- // (0) virtual bool Next(RPC::Environment&) = 0
418
- // (1) virtual bool Previous(RPC::Environment&) = 0
419
- // (2) virtual void Reset(const uint32_t) = 0
420
- // (3) virtual bool IsValid() const = 0
421
- // (4) virtual uint32_t Count() const = 0
422
- // (5) virtual RPC::Environment Current() const = 0
423
- //
424
-
425
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods[] = {
426
- // (0) virtual bool Next(RPC::Environment&) = 0
427
- //
428
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
429
- Core::hresult hresult = Core::ERROR_NONE;
430
-
431
- hresult = [&]() -> Core::hresult {
432
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
433
-
434
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
435
-
436
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
437
- ASSERT(implementation != nullptr);
438
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
439
-
440
- RPC::Environment _info{};
441
-
442
- bool result = implementation->Next(_info);
443
-
444
- RPC::Data::Frame::Writer writer(message->Response().Writer());
445
- writer.Boolean(result);
446
- writer.Text(_info.Key);
447
- writer.Text(_info.Value);
448
- writer.Number<RPC::Environment::scope>(_info.Scope);
449
-
450
- return (Core::ERROR_NONE);
451
- } ();
452
-
453
- if (hresult != Core::ERROR_NONE) {
454
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 0, hresult);
455
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
456
- }
457
- },
458
-
459
- // (1) virtual bool Previous(RPC::Environment&) = 0
460
- //
461
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
462
- Core::hresult hresult = Core::ERROR_NONE;
463
-
464
- hresult = [&]() -> Core::hresult {
465
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
466
-
467
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
468
-
469
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
470
- ASSERT(implementation != nullptr);
471
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
472
-
473
- RPC::Environment _info{};
474
-
475
- bool result = implementation->Previous(_info);
476
-
477
- RPC::Data::Frame::Writer writer(message->Response().Writer());
478
- writer.Boolean(result);
479
- writer.Text(_info.Key);
480
- writer.Text(_info.Value);
481
- writer.Number<RPC::Environment::scope>(_info.Scope);
482
-
483
- return (Core::ERROR_NONE);
484
- } ();
485
-
486
- if (hresult != Core::ERROR_NONE) {
487
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 1, hresult);
488
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
489
- }
490
- },
491
-
492
- // (2) virtual void Reset(const uint32_t) = 0
493
- //
494
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
495
- Core::hresult hresult = Core::ERROR_NONE;
496
-
497
- hresult = [&]() -> Core::hresult {
498
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
499
-
500
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
501
-
502
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
503
- ASSERT(implementation != nullptr);
504
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
505
-
506
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
507
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
508
- const uint32_t _position = reader.Number<uint32_t>();
509
-
510
- implementation->Reset(_position);
511
-
512
- return (Core::ERROR_NONE);
513
- } ();
514
-
515
- if (hresult != Core::ERROR_NONE) {
516
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 2, hresult);
517
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
518
- }
519
- },
520
-
521
- // (3) virtual bool IsValid() const = 0
522
- //
523
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
524
- Core::hresult hresult = Core::ERROR_NONE;
525
-
526
- hresult = [&]() -> Core::hresult {
527
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
528
-
529
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
530
-
531
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
532
- ASSERT(implementation != nullptr);
533
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
534
-
535
- bool result = implementation->IsValid();
536
-
537
- RPC::Data::Frame::Writer writer(message->Response().Writer());
538
- writer.Boolean(result);
539
-
540
- return (Core::ERROR_NONE);
541
- } ();
542
-
543
- if (hresult != Core::ERROR_NONE) {
544
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 3, hresult);
545
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
546
- }
547
- },
548
-
549
- // (4) virtual uint32_t Count() const = 0
550
- //
551
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
552
- Core::hresult hresult = Core::ERROR_NONE;
553
-
554
- hresult = [&]() -> Core::hresult {
555
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
556
-
557
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
558
-
559
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
560
- ASSERT(implementation != nullptr);
561
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
562
-
563
- uint32_t result = implementation->Count();
564
-
565
- RPC::Data::Frame::Writer writer(message->Response().Writer());
566
- writer.Number<uint32_t>(result);
567
-
568
- return (Core::ERROR_NONE);
569
- } ();
570
-
571
- if (hresult != Core::ERROR_NONE) {
572
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 4, hresult);
573
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
574
- }
575
- },
576
-
577
- // (5) virtual RPC::Environment Current() const = 0
578
- //
579
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
580
- Core::hresult hresult = Core::ERROR_NONE;
581
-
582
- hresult = [&]() -> Core::hresult {
583
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
584
-
585
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
586
-
587
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
588
- ASSERT(implementation != nullptr);
589
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
590
-
591
- RPC::Environment result = implementation->Current();
592
-
593
- RPC::Data::Frame::Writer writer(message->Response().Writer());
594
- writer.Text(result.Key);
595
- writer.Text(result.Value);
596
- writer.Number<RPC::Environment::scope>(result.Scope);
597
-
598
- return (Core::ERROR_NONE);
599
- } ();
600
-
601
- if (hresult != Core::ERROR_NONE) {
602
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 5, hresult);
603
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
604
- }
605
- }
606
- , nullptr
607
- }; // RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods
608
-
609
- //
610
222
  // Exchange::IProvisioning interface stub definitions
611
223
  //
612
224
  // Methods:
613
225
  // (0) virtual void Register(Exchange::IProvisioning::INotification*) = 0
614
226
  // (1) virtual void Unregister(Exchange::IProvisioning::INotification*) = 0
@@ -1011,400 +623,10 @@
1011
623
  }
1012
624
 
1013
625
  }; // class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy
1014
626
 
1015
627
  //
1016
- // RPC::IIteratorTypeInstance_60eba5a793c685ea interface proxy definitions
1017
- //
1018
- // Methods:
1019
- // (0) virtual bool Next(uint32_t&) = 0
1020
- // (1) virtual bool Previous(uint32_t&) = 0
1021
- // (2) virtual void Reset(const uint32_t) = 0
1022
- // (3) virtual bool IsValid() const = 0
1023
- // (4) virtual uint32_t Count() const = 0
1024
- // (5) virtual uint32_t Current() const = 0
1025
- //
1026
-
1027
- class RPCIteratorTypeInstance_60eba5a793c685eaProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>> {
1028
- public:
1029
- RPCIteratorTypeInstance_60eba5a793c685eaProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
1030
- : BaseClass(channel, implementation, otherSideInformed)
1031
- {
1032
- }
1033
-
1034
- bool Next(uint32_t& _info) override
1035
- {
1036
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
1037
-
1038
- bool result{};
1039
-
1040
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1041
- if (hresult == Core::ERROR_NONE) {
1042
- hresult = [&]() -> Core::hresult {
1043
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1044
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1045
- result = reader.Boolean();
1046
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1047
- _info = reader.Number<uint32_t>();
1048
-
1049
- return (Core::ERROR_NONE);
1050
- } ();
1051
- } else {
1052
- ASSERT((hresult & COM_ERROR) != 0);
1053
- }
1054
-
1055
- if ((hresult & COM_ERROR) != 0) {
1056
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 0, hresult);
1057
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1058
- }
1059
-
1060
- return (result);
1061
- }
1062
-
1063
- bool Previous(uint32_t& _info) override
1064
- {
1065
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
1066
-
1067
- bool result{};
1068
-
1069
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1070
- if (hresult == Core::ERROR_NONE) {
1071
- hresult = [&]() -> Core::hresult {
1072
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1073
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1074
- result = reader.Boolean();
1075
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1076
- _info = reader.Number<uint32_t>();
1077
-
1078
- return (Core::ERROR_NONE);
1079
- } ();
1080
- } else {
1081
- ASSERT((hresult & COM_ERROR) != 0);
1082
- }
1083
-
1084
- if ((hresult & COM_ERROR) != 0) {
1085
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 1, hresult);
1086
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1087
- }
1088
-
1089
- return (result);
1090
- }
1091
-
1092
- void Reset(const uint32_t _position) override
1093
- {
1094
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
1095
-
1096
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
1097
- writer.Number<uint32_t>(_position);
1098
-
1099
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1100
- if (hresult == Core::ERROR_NONE) {
1101
- hresult = [&]() -> Core::hresult {
1102
-
1103
- return (Core::ERROR_NONE);
1104
- } ();
1105
- } else {
1106
- ASSERT((hresult & COM_ERROR) != 0);
1107
- }
1108
-
1109
- if ((hresult & COM_ERROR) != 0) {
1110
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 2, hresult);
1111
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1112
- }
1113
- }
1114
-
1115
- bool IsValid() const override
1116
- {
1117
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
1118
-
1119
- bool result{};
1120
-
1121
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1122
- if (hresult == Core::ERROR_NONE) {
1123
- hresult = [&]() -> Core::hresult {
1124
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1125
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1126
- result = reader.Boolean();
1127
-
1128
- return (Core::ERROR_NONE);
1129
- } ();
1130
- } else {
1131
- ASSERT((hresult & COM_ERROR) != 0);
1132
- }
1133
-
1134
- if ((hresult & COM_ERROR) != 0) {
1135
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 3, hresult);
1136
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1137
- }
1138
-
1139
- return (result);
1140
- }
1141
-
1142
- uint32_t Count() const override
1143
- {
1144
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
1145
-
1146
- uint32_t result{};
1147
-
1148
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1149
- if (hresult == Core::ERROR_NONE) {
1150
- hresult = [&]() -> Core::hresult {
1151
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1152
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1153
- result = reader.Number<uint32_t>();
1154
-
1155
- return (Core::ERROR_NONE);
1156
- } ();
1157
- } else {
1158
- ASSERT((hresult & COM_ERROR) != 0);
1159
- }
1160
-
1161
- if ((hresult & COM_ERROR) != 0) {
1162
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 4, hresult);
1163
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1164
- }
1165
-
1166
- return (result);
1167
- }
1168
-
1169
- uint32_t Current() const override
1170
- {
1171
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1172
-
1173
- uint32_t result{};
1174
-
1175
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1176
- if (hresult == Core::ERROR_NONE) {
1177
- hresult = [&]() -> Core::hresult {
1178
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1179
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1180
- result = reader.Number<uint32_t>();
1181
-
1182
- return (Core::ERROR_NONE);
1183
- } ();
1184
- } else {
1185
- ASSERT((hresult & COM_ERROR) != 0);
1186
- }
1187
-
1188
- if ((hresult & COM_ERROR) != 0) {
1189
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 5, hresult);
1190
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1191
- }
1192
-
1193
- return (result);
1194
- }
1195
-
1196
- }; // class RPCIteratorTypeInstance_60eba5a793c685eaProxy
1197
-
1198
- //
1199
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface proxy definitions
1200
- //
1201
- // Methods:
1202
- // (0) virtual bool Next(RPC::Environment&) = 0
1203
- // (1) virtual bool Previous(RPC::Environment&) = 0
1204
- // (2) virtual void Reset(const uint32_t) = 0
1205
- // (3) virtual bool IsValid() const = 0
1206
- // (4) virtual uint32_t Count() const = 0
1207
- // (5) virtual RPC::Environment Current() const = 0
1208
- //
1209
-
1210
- class RPCIteratorTypeInstance_195e88cf7f955a2eProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>> {
1211
- public:
1212
- RPCIteratorTypeInstance_195e88cf7f955a2eProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
1213
- : BaseClass(channel, implementation, otherSideInformed)
1214
- {
1215
- }
1216
-
1217
- bool Next(RPC::Environment& _info) override
1218
- {
1219
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
1220
-
1221
- bool result{};
1222
-
1223
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1224
- if (hresult == Core::ERROR_NONE) {
1225
- hresult = [&]() -> Core::hresult {
1226
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1227
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1228
- result = reader.Boolean();
1229
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1230
- const uint16_t _info_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
1231
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1232
- _info.Key = reader.Text();
1233
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1234
- const uint16_t _info_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
1235
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1236
- _info.Value = reader.Text();
1237
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1238
- _info.Scope = reader.Number<RPC::Environment::scope>();
1239
-
1240
- return (Core::ERROR_NONE);
1241
- } ();
1242
- } else {
1243
- ASSERT((hresult & COM_ERROR) != 0);
1244
- }
1245
-
1246
- if ((hresult & COM_ERROR) != 0) {
1247
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 0, hresult);
1248
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1249
- }
1250
-
1251
- return (result);
1252
- }
1253
-
1254
- bool Previous(RPC::Environment& _info) override
1255
- {
1256
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
1257
-
1258
- bool result{};
1259
-
1260
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1261
- if (hresult == Core::ERROR_NONE) {
1262
- hresult = [&]() -> Core::hresult {
1263
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1264
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1265
- result = reader.Boolean();
1266
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1267
- const uint16_t _info_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
1268
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1269
- _info.Key = reader.Text();
1270
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1271
- const uint16_t _info_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
1272
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1273
- _info.Value = reader.Text();
1274
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1275
- _info.Scope = reader.Number<RPC::Environment::scope>();
1276
-
1277
- return (Core::ERROR_NONE);
1278
- } ();
1279
- } else {
1280
- ASSERT((hresult & COM_ERROR) != 0);
1281
- }
1282
-
1283
- if ((hresult & COM_ERROR) != 0) {
1284
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 1, hresult);
1285
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1286
- }
1287
-
1288
- return (result);
1289
- }
1290
-
1291
- void Reset(const uint32_t _position) override
1292
- {
1293
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
1294
-
1295
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
1296
- writer.Number<uint32_t>(_position);
1297
-
1298
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1299
- if (hresult == Core::ERROR_NONE) {
1300
- hresult = [&]() -> Core::hresult {
1301
-
1302
- return (Core::ERROR_NONE);
1303
- } ();
1304
- } else {
1305
- ASSERT((hresult & COM_ERROR) != 0);
1306
- }
1307
-
1308
- if ((hresult & COM_ERROR) != 0) {
1309
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 2, hresult);
1310
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1311
- }
1312
- }
1313
-
1314
- bool IsValid() const override
1315
- {
1316
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
1317
-
1318
- bool result{};
1319
-
1320
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1321
- if (hresult == Core::ERROR_NONE) {
1322
- hresult = [&]() -> Core::hresult {
1323
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1324
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1325
- result = reader.Boolean();
1326
-
1327
- return (Core::ERROR_NONE);
1328
- } ();
1329
- } else {
1330
- ASSERT((hresult & COM_ERROR) != 0);
1331
- }
1332
-
1333
- if ((hresult & COM_ERROR) != 0) {
1334
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 3, hresult);
1335
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1336
- }
1337
-
1338
- return (result);
1339
- }
1340
-
1341
- uint32_t Count() const override
1342
- {
1343
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
1344
-
1345
- uint32_t result{};
1346
-
1347
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1348
- if (hresult == Core::ERROR_NONE) {
1349
- hresult = [&]() -> Core::hresult {
1350
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1351
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1352
- result = reader.Number<uint32_t>();
1353
-
1354
- return (Core::ERROR_NONE);
1355
- } ();
1356
- } else {
1357
- ASSERT((hresult & COM_ERROR) != 0);
1358
- }
1359
-
1360
- if ((hresult & COM_ERROR) != 0) {
1361
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 4, hresult);
1362
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1363
- }
1364
-
1365
- return (result);
1366
- }
1367
-
1368
- RPC::Environment Current() const override
1369
- {
1370
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1371
-
1372
- RPC::Environment result{};
1373
-
1374
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1375
- if (hresult == Core::ERROR_NONE) {
1376
- hresult = [&]() -> Core::hresult {
1377
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1378
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1379
- const uint16_t result_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
1380
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + result_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1381
- result.Key = reader.Text();
1382
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1383
- const uint16_t result_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
1384
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + result_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1385
- result.Value = reader.Text();
1386
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1387
- result.Scope = reader.Number<RPC::Environment::scope>();
1388
-
1389
- return (Core::ERROR_NONE);
1390
- } ();
1391
- } else {
1392
- ASSERT((hresult & COM_ERROR) != 0);
1393
- }
1394
-
1395
- if ((hresult & COM_ERROR) != 0) {
1396
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 5, hresult);
1397
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1398
- }
1399
-
1400
- return (result);
1401
- }
1402
-
1403
- }; // class RPCIteratorTypeInstance_195e88cf7f955a2eProxy
1404
-
1405
- //
1406
628
  // Exchange::IProvisioning interface proxy definitions
1407
629
  //
1408
630
  // Methods:
1409
631
  // (0) virtual void Register(Exchange::IProvisioning::INotification*) = 0
1410
632
  // (1) virtual void Unregister(Exchange::IProvisioning::INotification*) = 0
@@ -1656,32 +878,26 @@
1656
878
  // REGISTRATION
1657
879
  // -----------------------------------------------------------------
1658
880
  namespace {
1659
881
 
1660
882
  typedef ProxyStub::UnknownStubType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods> RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub;
1661
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaStubMethods> RPCIteratorTypeInstance_60eba5a793c685eaStub;
1662
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods> RPCIteratorTypeInstance_195e88cf7f955a2eStub;
1663
883
  typedef ProxyStub::UnknownStubType<Exchange::IProvisioning, ExchangeProvisioningStubMethods> ExchangeProvisioningStub;
1664
884
  typedef ProxyStub::UnknownStubType<Exchange::IProvisioning::INotification, ExchangeProvisioningNotificationStubMethods> ExchangeProvisioningNotificationStub;
1665
885
 
1666
886
  static class Instantiation {
1667
887
  public:
1668
888
  Instantiation()
1669
889
  {
1670
890
  const RPC::SecureProxyStubType security = static_cast<RPC::SecureProxyStubType>(static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_SECURE) | static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_COHERENT));
1671
891
 
1672
892
  RPC::Administrator::Instance().Announce<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy, RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub>(security);
1673
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaProxy, RPCIteratorTypeInstance_60eba5a793c685eaStub>(security);
1674
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eProxy, RPCIteratorTypeInstance_195e88cf7f955a2eStub>(security);
1675
893
  RPC::Administrator::Instance().Announce<Exchange::IProvisioning, ExchangeProvisioningProxy, ExchangeProvisioningStub>(security);
1676
894
  RPC::Administrator::Instance().Announce<Exchange::IProvisioning::INotification, ExchangeProvisioningNotificationProxy, ExchangeProvisioningNotificationStub>(security);
1677
895
  }
1678
896
  ~Instantiation()
1679
897
  {
1680
898
  RPC::Administrator::Instance().Recall<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>>();
1681
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>>();
1682
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>>();
1683
899
  RPC::Administrator::Instance().Recall<Exchange::IProvisioning>();
1684
900
  RPC::Administrator::Instance().Recall<Exchange::IProvisioning::INotification>();
1685
901
  }
1686
902
  } ProxyStubRegistration;
1687
903
 
{baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_SecureShellServer.cpp RENAMED
@@ -1,55 +0,0 @@
1
- //
2
- // generated automatically from "ISecureShellServer.h"
3
- //
4
- // implements COM-RPC proxy stubs for:
5
- //
6
- // secure code enabled:
7
- // - instance verification enabled
8
- // - range verification enabled
9
- // - frame coherency verification enabled
10
- //
11
-
12
- #include "Module.h"
13
- #include "ISecureShellServer.h"
14
-
15
- #include <com/com.h>
16
-
17
- namespace Thunder {
18
-
19
- namespace ProxyStubs {
20
-
21
- PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
22
- PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
23
-
24
- // -----------------------------------------------------------------
25
- // STUBS
26
- // -----------------------------------------------------------------
27
-
28
- // -----------------------------------------------------------------
29
- // PROXIES
30
- // -----------------------------------------------------------------
31
-
32
- POP_WARNING()
33
- POP_WARNING()
34
-
35
- // -----------------------------------------------------------------
36
- // REGISTRATION
37
- // -----------------------------------------------------------------
38
- namespace {
39
-
40
-
41
- static class Instantiation {
42
- public:
43
- Instantiation()
44
- {
45
- }
46
- ~Instantiation()
47
- {
48
- }
49
- } ProxyStubRegistration;
50
-
51
- } // namespace
52
-
53
- } // namespace ProxyStubs
54
-
55
- }
{baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_Stream.cpp RENAMED
@@ -1,12 +1,10 @@
1
1
  //
2
2
  // generated automatically from "IStream.h"
3
3
  //
4
4
  // implements COM-RPC proxy stubs for:
5
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = RPC::ID_STRINGITERATOR] [[iterator]]
6
5
  // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = uint32_t, INTERFACE_ID = RPC::ID_VALUEITERATOR] [[iterator]]
7
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = RPC::Environment, INTERFACE_ID = RPC::ID_ENVIRONMENTITERATOR] [[iterator]]
8
6
  // - class Exchange::IStream
9
7
  // - class Exchange::IStream::IElement
10
8
  // - class Exchange::IStream::IElement::IIterator
11
9
  // - class Exchange::IStream::IControl
12
10
  // - class Exchange::IStream::IControl::IGeometry
@@ -35,200 +33,10 @@
35
33
  // -----------------------------------------------------------------
36
34
  // STUBS
37
35
  // -----------------------------------------------------------------
38
36
 
39
37
  //
40
- // RPC::IIteratorTypeInstance_bd6e04b8d151c1f7 interface stub definitions
41
- //
42
- // Methods:
43
- // (0) virtual bool Next(string&) = 0
44
- // (1) virtual bool Previous(string&) = 0
45
- // (2) virtual void Reset(const uint32_t) = 0
46
- // (3) virtual bool IsValid() const = 0
47
- // (4) virtual uint32_t Count() const = 0
48
- // (5) virtual string Current() const = 0
49
- //
50
-
51
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods[] = {
52
- // (0) virtual bool Next(string&) = 0
53
- //
54
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
55
- Core::hresult hresult = Core::ERROR_NONE;
56
-
57
- hresult = [&]() -> Core::hresult {
58
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
59
-
60
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
61
-
62
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
63
- ASSERT(implementation != nullptr);
64
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
65
-
66
- string _info{};
67
-
68
- bool result = implementation->Next(_info);
69
-
70
- RPC::Data::Frame::Writer writer(message->Response().Writer());
71
- writer.Boolean(result);
72
- writer.Text(_info);
73
-
74
- return (Core::ERROR_NONE);
75
- } ();
76
-
77
- if (hresult != Core::ERROR_NONE) {
78
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 0, hresult);
79
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
80
- }
81
- },
82
-
83
- // (1) virtual bool Previous(string&) = 0
84
- //
85
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
86
- Core::hresult hresult = Core::ERROR_NONE;
87
-
88
- hresult = [&]() -> Core::hresult {
89
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
90
-
91
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
92
-
93
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
94
- ASSERT(implementation != nullptr);
95
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
96
-
97
- string _info{};
98
-
99
- bool result = implementation->Previous(_info);
100
-
101
- RPC::Data::Frame::Writer writer(message->Response().Writer());
102
- writer.Boolean(result);
103
- writer.Text(_info);
104
-
105
- return (Core::ERROR_NONE);
106
- } ();
107
-
108
- if (hresult != Core::ERROR_NONE) {
109
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 1, hresult);
110
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
111
- }
112
- },
113
-
114
- // (2) virtual void Reset(const uint32_t) = 0
115
- //
116
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
117
- Core::hresult hresult = Core::ERROR_NONE;
118
-
119
- hresult = [&]() -> Core::hresult {
120
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
121
-
122
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
123
-
124
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
125
- ASSERT(implementation != nullptr);
126
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
127
-
128
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
129
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
130
- const uint32_t _position = reader.Number<uint32_t>();
131
-
132
- implementation->Reset(_position);
133
-
134
- return (Core::ERROR_NONE);
135
- } ();
136
-
137
- if (hresult != Core::ERROR_NONE) {
138
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 2, hresult);
139
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
140
- }
141
- },
142
-
143
- // (3) virtual bool IsValid() const = 0
144
- //
145
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
146
- Core::hresult hresult = Core::ERROR_NONE;
147
-
148
- hresult = [&]() -> Core::hresult {
149
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
150
-
151
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
152
-
153
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
154
- ASSERT(implementation != nullptr);
155
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
156
-
157
- bool result = implementation->IsValid();
158
-
159
- RPC::Data::Frame::Writer writer(message->Response().Writer());
160
- writer.Boolean(result);
161
-
162
- return (Core::ERROR_NONE);
163
- } ();
164
-
165
- if (hresult != Core::ERROR_NONE) {
166
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 3, hresult);
167
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
168
- }
169
- },
170
-
171
- // (4) virtual uint32_t Count() const = 0
172
- //
173
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
174
- Core::hresult hresult = Core::ERROR_NONE;
175
-
176
- hresult = [&]() -> Core::hresult {
177
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
178
-
179
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
180
-
181
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
182
- ASSERT(implementation != nullptr);
183
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
184
-
185
- uint32_t result = implementation->Count();
186
-
187
- RPC::Data::Frame::Writer writer(message->Response().Writer());
188
- writer.Number<uint32_t>(result);
189
-
190
- return (Core::ERROR_NONE);
191
- } ();
192
-
193
- if (hresult != Core::ERROR_NONE) {
194
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 4, hresult);
195
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
196
- }
197
- },
198
-
199
- // (5) virtual string Current() const = 0
200
- //
201
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
202
- Core::hresult hresult = Core::ERROR_NONE;
203
-
204
- hresult = [&]() -> Core::hresult {
205
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
206
-
207
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
208
-
209
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
210
- ASSERT(implementation != nullptr);
211
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
212
-
213
- string result = implementation->Current();
214
-
215
- RPC::Data::Frame::Writer writer(message->Response().Writer());
216
- writer.Text(result);
217
-
218
- return (Core::ERROR_NONE);
219
- } ();
220
-
221
- if (hresult != Core::ERROR_NONE) {
222
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 5, hresult);
223
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
224
- }
225
- }
226
- , nullptr
227
- }; // RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods
228
-
229
- //
230
38
  // RPC::IIteratorTypeInstance_60eba5a793c685ea interface stub definitions
231
39
  //
232
40
  // Methods:
233
41
  // (0) virtual bool Next(uint32_t&) = 0
234
42
  // (1) virtual bool Previous(uint32_t&) = 0
@@ -415,206 +223,10 @@
415
223
  }
416
224
  , nullptr
417
225
  }; // RPCIteratorTypeInstance_60eba5a793c685eaStubMethods
418
226
 
419
227
  //
420
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface stub definitions
421
- //
422
- // Methods:
423
- // (0) virtual bool Next(RPC::Environment&) = 0
424
- // (1) virtual bool Previous(RPC::Environment&) = 0
425
- // (2) virtual void Reset(const uint32_t) = 0
426
- // (3) virtual bool IsValid() const = 0
427
- // (4) virtual uint32_t Count() const = 0
428
- // (5) virtual RPC::Environment Current() const = 0
429
- //
430
-
431
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods[] = {
432
- // (0) virtual bool Next(RPC::Environment&) = 0
433
- //
434
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
435
- Core::hresult hresult = Core::ERROR_NONE;
436
-
437
- hresult = [&]() -> Core::hresult {
438
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
439
-
440
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
441
-
442
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
443
- ASSERT(implementation != nullptr);
444
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
445
-
446
- RPC::Environment _info{};
447
-
448
- bool result = implementation->Next(_info);
449
-
450
- RPC::Data::Frame::Writer writer(message->Response().Writer());
451
- writer.Boolean(result);
452
- writer.Text(_info.Key);
453
- writer.Text(_info.Value);
454
- writer.Number<RPC::Environment::scope>(_info.Scope);
455
-
456
- return (Core::ERROR_NONE);
457
- } ();
458
-
459
- if (hresult != Core::ERROR_NONE) {
460
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 0, hresult);
461
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
462
- }
463
- },
464
-
465
- // (1) virtual bool Previous(RPC::Environment&) = 0
466
- //
467
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
468
- Core::hresult hresult = Core::ERROR_NONE;
469
-
470
- hresult = [&]() -> Core::hresult {
471
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
472
-
473
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
474
-
475
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
476
- ASSERT(implementation != nullptr);
477
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
478
-
479
- RPC::Environment _info{};
480
-
481
- bool result = implementation->Previous(_info);
482
-
483
- RPC::Data::Frame::Writer writer(message->Response().Writer());
484
- writer.Boolean(result);
485
- writer.Text(_info.Key);
486
- writer.Text(_info.Value);
487
- writer.Number<RPC::Environment::scope>(_info.Scope);
488
-
489
- return (Core::ERROR_NONE);
490
- } ();
491
-
492
- if (hresult != Core::ERROR_NONE) {
493
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 1, hresult);
494
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
495
- }
496
- },
497
-
498
- // (2) virtual void Reset(const uint32_t) = 0
499
- //
500
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
501
- Core::hresult hresult = Core::ERROR_NONE;
502
-
503
- hresult = [&]() -> Core::hresult {
504
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
505
-
506
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
507
-
508
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
509
- ASSERT(implementation != nullptr);
510
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
511
-
512
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
513
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
514
- const uint32_t _position = reader.Number<uint32_t>();
515
-
516
- implementation->Reset(_position);
517
-
518
- return (Core::ERROR_NONE);
519
- } ();
520
-
521
- if (hresult != Core::ERROR_NONE) {
522
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 2, hresult);
523
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
524
- }
525
- },
526
-
527
- // (3) virtual bool IsValid() const = 0
528
- //
529
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
530
- Core::hresult hresult = Core::ERROR_NONE;
531
-
532
- hresult = [&]() -> Core::hresult {
533
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
534
-
535
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
536
-
537
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
538
- ASSERT(implementation != nullptr);
539
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
540
-
541
- bool result = implementation->IsValid();
542
-
543
- RPC::Data::Frame::Writer writer(message->Response().Writer());
544
- writer.Boolean(result);
545
-
546
- return (Core::ERROR_NONE);
547
- } ();
548
-
549
- if (hresult != Core::ERROR_NONE) {
550
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 3, hresult);
551
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
552
- }
553
- },
554
-
555
- // (4) virtual uint32_t Count() const = 0
556
- //
557
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
558
- Core::hresult hresult = Core::ERROR_NONE;
559
-
560
- hresult = [&]() -> Core::hresult {
561
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
562
-
563
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
564
-
565
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
566
- ASSERT(implementation != nullptr);
567
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
568
-
569
- uint32_t result = implementation->Count();
570
-
571
- RPC::Data::Frame::Writer writer(message->Response().Writer());
572
- writer.Number<uint32_t>(result);
573
-
574
- return (Core::ERROR_NONE);
575
- } ();
576
-
577
- if (hresult != Core::ERROR_NONE) {
578
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 4, hresult);
579
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
580
- }
581
- },
582
-
583
- // (5) virtual RPC::Environment Current() const = 0
584
- //
585
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
586
- Core::hresult hresult = Core::ERROR_NONE;
587
-
588
- hresult = [&]() -> Core::hresult {
589
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
590
-
591
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
592
-
593
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
594
- ASSERT(implementation != nullptr);
595
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
596
-
597
- RPC::Environment result = implementation->Current();
598
-
599
- RPC::Data::Frame::Writer writer(message->Response().Writer());
600
- writer.Text(result.Key);
601
- writer.Text(result.Value);
602
- writer.Number<RPC::Environment::scope>(result.Scope);
603
-
604
- return (Core::ERROR_NONE);
605
- } ();
606
-
607
- if (hresult != Core::ERROR_NONE) {
608
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 5, hresult);
609
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
610
- }
611
- }
612
- , nullptr
613
- }; // RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods
614
-
615
- //
616
228
  // Exchange::IStream interface stub definitions
617
229
  //
618
230
  // Methods:
619
231
  // (0) virtual string Metadata() const = 0
620
232
  // (1) virtual Exchange::IStream::streamtype Type() const = 0
@@ -1800,199 +1412,10 @@
1800
1412
  // -----------------------------------------------------------------
1801
1413
  // PROXIES
1802
1414
  // -----------------------------------------------------------------
1803
1415
 
1804
1416
  //
1805
- // RPC::IIteratorTypeInstance_bd6e04b8d151c1f7 interface proxy definitions
1806
- //
1807
- // Methods:
1808
- // (0) virtual bool Next(string&) = 0
1809
- // (1) virtual bool Previous(string&) = 0
1810
- // (2) virtual void Reset(const uint32_t) = 0
1811
- // (3) virtual bool IsValid() const = 0
1812
- // (4) virtual uint32_t Count() const = 0
1813
- // (5) virtual string Current() const = 0
1814
- //
1815
-
1816
- class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>> {
1817
- public:
1818
- RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
1819
- : BaseClass(channel, implementation, otherSideInformed)
1820
- {
1821
- }
1822
-
1823
- bool Next(string& _info) override
1824
- {
1825
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
1826
-
1827
- bool result{};
1828
-
1829
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1830
- if (hresult == Core::ERROR_NONE) {
1831
- hresult = [&]() -> Core::hresult {
1832
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1833
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1834
- result = reader.Boolean();
1835
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1836
- const uint16_t _infoPeekedLen__ = reader.PeekNumber<uint16_t>();
1837
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _infoPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1838
- _info = reader.Text();
1839
-
1840
- return (Core::ERROR_NONE);
1841
- } ();
1842
- } else {
1843
- ASSERT((hresult & COM_ERROR) != 0);
1844
- }
1845
-
1846
- if ((hresult & COM_ERROR) != 0) {
1847
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 0, hresult);
1848
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1849
- }
1850
-
1851
- return (result);
1852
- }
1853
-
1854
- bool Previous(string& _info) override
1855
- {
1856
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
1857
-
1858
- bool result{};
1859
-
1860
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1861
- if (hresult == Core::ERROR_NONE) {
1862
- hresult = [&]() -> Core::hresult {
1863
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1864
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1865
- result = reader.Boolean();
1866
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1867
- const uint16_t _infoPeekedLen__ = reader.PeekNumber<uint16_t>();
1868
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _infoPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1869
- _info = reader.Text();
1870
-
1871
- return (Core::ERROR_NONE);
1872
- } ();
1873
- } else {
1874
- ASSERT((hresult & COM_ERROR) != 0);
1875
- }
1876
-
1877
- if ((hresult & COM_ERROR) != 0) {
1878
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 1, hresult);
1879
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1880
- }
1881
-
1882
- return (result);
1883
- }
1884
-
1885
- void Reset(const uint32_t _position) override
1886
- {
1887
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
1888
-
1889
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
1890
- writer.Number<uint32_t>(_position);
1891
-
1892
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1893
- if (hresult == Core::ERROR_NONE) {
1894
- hresult = [&]() -> Core::hresult {
1895
-
1896
- return (Core::ERROR_NONE);
1897
- } ();
1898
- } else {
1899
- ASSERT((hresult & COM_ERROR) != 0);
1900
- }
1901
-
1902
- if ((hresult & COM_ERROR) != 0) {
1903
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 2, hresult);
1904
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1905
- }
1906
- }
1907
-
1908
- bool IsValid() const override
1909
- {
1910
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
1911
-
1912
- bool result{};
1913
-
1914
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1915
- if (hresult == Core::ERROR_NONE) {
1916
- hresult = [&]() -> Core::hresult {
1917
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1918
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1919
- result = reader.Boolean();
1920
-
1921
- return (Core::ERROR_NONE);
1922
- } ();
1923
- } else {
1924
- ASSERT((hresult & COM_ERROR) != 0);
1925
- }
1926
-
1927
- if ((hresult & COM_ERROR) != 0) {
1928
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 3, hresult);
1929
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1930
- }
1931
-
1932
- return (result);
1933
- }
1934
-
1935
- uint32_t Count() const override
1936
- {
1937
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
1938
-
1939
- uint32_t result{};
1940
-
1941
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1942
- if (hresult == Core::ERROR_NONE) {
1943
- hresult = [&]() -> Core::hresult {
1944
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1945
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1946
- result = reader.Number<uint32_t>();
1947
-
1948
- return (Core::ERROR_NONE);
1949
- } ();
1950
- } else {
1951
- ASSERT((hresult & COM_ERROR) != 0);
1952
- }
1953
-
1954
- if ((hresult & COM_ERROR) != 0) {
1955
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 4, hresult);
1956
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1957
- }
1958
-
1959
- return (result);
1960
- }
1961
-
1962
- string Current() const override
1963
- {
1964
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1965
-
1966
- string result{};
1967
-
1968
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1969
- if (hresult == Core::ERROR_NONE) {
1970
- hresult = [&]() -> Core::hresult {
1971
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1972
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1973
- const uint16_t resultPeekedLen__ = reader.PeekNumber<uint16_t>();
1974
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + resultPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1975
- result = reader.Text();
1976
-
1977
- return (Core::ERROR_NONE);
1978
- } ();
1979
- } else {
1980
- ASSERT((hresult & COM_ERROR) != 0);
1981
- }
1982
-
1983
- if ((hresult & COM_ERROR) != 0) {
1984
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 5, hresult);
1985
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1986
- }
1987
-
1988
- return (result);
1989
- }
1990
-
1991
- }; // class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy
1992
-
1993
- //
1994
1417
  // RPC::IIteratorTypeInstance_60eba5a793c685ea interface proxy definitions
1995
1418
  //
1996
1419
  // Methods:
1997
1420
  // (0) virtual bool Next(uint32_t&) = 0
1998
1421
  // (1) virtual bool Previous(uint32_t&) = 0
@@ -2172,217 +1595,10 @@
2172
1595
  }
2173
1596
 
2174
1597
  }; // class RPCIteratorTypeInstance_60eba5a793c685eaProxy
2175
1598
 
2176
1599
  //
2177
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface proxy definitions
2178
- //
2179
- // Methods:
2180
- // (0) virtual bool Next(RPC::Environment&) = 0
2181
- // (1) virtual bool Previous(RPC::Environment&) = 0
2182
- // (2) virtual void Reset(const uint32_t) = 0
2183
- // (3) virtual bool IsValid() const = 0
2184
- // (4) virtual uint32_t Count() const = 0
2185
- // (5) virtual RPC::Environment Current() const = 0
2186
- //
2187
-
2188
- class RPCIteratorTypeInstance_195e88cf7f955a2eProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>> {
2189
- public:
2190
- RPCIteratorTypeInstance_195e88cf7f955a2eProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
2191
- : BaseClass(channel, implementation, otherSideInformed)
2192
- {
2193
- }
2194
-
2195
- bool Next(RPC::Environment& _info) override
2196
- {
2197
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
2198
-
2199
- bool result{};
2200
-
2201
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
2202
- if (hresult == Core::ERROR_NONE) {
2203
- hresult = [&]() -> Core::hresult {
2204
- RPC::Data::Frame::Reader reader(message->Response().Reader());
2205
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2206
- result = reader.Boolean();
2207
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2208
- const uint16_t _info_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
2209
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2210
- _info.Key = reader.Text();
2211
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2212
- const uint16_t _info_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
2213
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2214
- _info.Value = reader.Text();
2215
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2216
- _info.Scope = reader.Number<RPC::Environment::scope>();
2217
-
2218
- return (Core::ERROR_NONE);
2219
- } ();
2220
- } else {
2221
- ASSERT((hresult & COM_ERROR) != 0);
2222
- }
2223
-
2224
- if ((hresult & COM_ERROR) != 0) {
2225
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 0, hresult);
2226
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
2227
- }
2228
-
2229
- return (result);
2230
- }
2231
-
2232
- bool Previous(RPC::Environment& _info) override
2233
- {
2234
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
2235
-
2236
- bool result{};
2237
-
2238
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
2239
- if (hresult == Core::ERROR_NONE) {
2240
- hresult = [&]() -> Core::hresult {
2241
- RPC::Data::Frame::Reader reader(message->Response().Reader());
2242
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2243
- result = reader.Boolean();
2244
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2245
- const uint16_t _info_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
2246
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2247
- _info.Key = reader.Text();
2248
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2249
- const uint16_t _info_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
2250
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2251
- _info.Value = reader.Text();
2252
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2253
- _info.Scope = reader.Number<RPC::Environment::scope>();
2254
-
2255
- return (Core::ERROR_NONE);
2256
- } ();
2257
- } else {
2258
- ASSERT((hresult & COM_ERROR) != 0);
2259
- }
2260
-
2261
- if ((hresult & COM_ERROR) != 0) {
2262
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 1, hresult);
2263
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
2264
- }
2265
-
2266
- return (result);
2267
- }
2268
-
2269
- void Reset(const uint32_t _position) override
2270
- {
2271
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
2272
-
2273
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
2274
- writer.Number<uint32_t>(_position);
2275
-
2276
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
2277
- if (hresult == Core::ERROR_NONE) {
2278
- hresult = [&]() -> Core::hresult {
2279
-
2280
- return (Core::ERROR_NONE);
2281
- } ();
2282
- } else {
2283
- ASSERT((hresult & COM_ERROR) != 0);
2284
- }
2285
-
2286
- if ((hresult & COM_ERROR) != 0) {
2287
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 2, hresult);
2288
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
2289
- }
2290
- }
2291
-
2292
- bool IsValid() const override
2293
- {
2294
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
2295
-
2296
- bool result{};
2297
-
2298
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
2299
- if (hresult == Core::ERROR_NONE) {
2300
- hresult = [&]() -> Core::hresult {
2301
- RPC::Data::Frame::Reader reader(message->Response().Reader());
2302
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2303
- result = reader.Boolean();
2304
-
2305
- return (Core::ERROR_NONE);
2306
- } ();
2307
- } else {
2308
- ASSERT((hresult & COM_ERROR) != 0);
2309
- }
2310
-
2311
- if ((hresult & COM_ERROR) != 0) {
2312
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 3, hresult);
2313
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
2314
- }
2315
-
2316
- return (result);
2317
- }
2318
-
2319
- uint32_t Count() const override
2320
- {
2321
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
2322
-
2323
- uint32_t result{};
2324
-
2325
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
2326
- if (hresult == Core::ERROR_NONE) {
2327
- hresult = [&]() -> Core::hresult {
2328
- RPC::Data::Frame::Reader reader(message->Response().Reader());
2329
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2330
- result = reader.Number<uint32_t>();
2331
-
2332
- return (Core::ERROR_NONE);
2333
- } ();
2334
- } else {
2335
- ASSERT((hresult & COM_ERROR) != 0);
2336
- }
2337
-
2338
- if ((hresult & COM_ERROR) != 0) {
2339
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 4, hresult);
2340
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
2341
- }
2342
-
2343
- return (result);
2344
- }
2345
-
2346
- RPC::Environment Current() const override
2347
- {
2348
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
2349
-
2350
- RPC::Environment result{};
2351
-
2352
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
2353
- if (hresult == Core::ERROR_NONE) {
2354
- hresult = [&]() -> Core::hresult {
2355
- RPC::Data::Frame::Reader reader(message->Response().Reader());
2356
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2357
- const uint16_t result_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
2358
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + result_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2359
- result.Key = reader.Text();
2360
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2361
- const uint16_t result_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
2362
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + result_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2363
- result.Value = reader.Text();
2364
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2365
- result.Scope = reader.Number<RPC::Environment::scope>();
2366
-
2367
- return (Core::ERROR_NONE);
2368
- } ();
2369
- } else {
2370
- ASSERT((hresult & COM_ERROR) != 0);
2371
- }
2372
-
2373
- if ((hresult & COM_ERROR) != 0) {
2374
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 5, hresult);
2375
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
2376
- }
2377
-
2378
- return (result);
2379
- }
2380
-
2381
- }; // class RPCIteratorTypeInstance_195e88cf7f955a2eProxy
2382
-
2383
- //
2384
1600
  // Exchange::IStream interface proxy definitions
2385
1601
  //
2386
1602
  // Methods:
2387
1603
  // (0) virtual string Metadata() const = 0
2388
1604
  // (1) virtual Exchange::IStream::streamtype Type() const = 0
@@ -3621,13 +2837,11 @@
3621
2837
  // -----------------------------------------------------------------
3622
2838
  // REGISTRATION
3623
2839
  // -----------------------------------------------------------------
3624
2840
  namespace {
3625
2841
 
3626
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods> RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub;
3627
2842
  typedef ProxyStub::UnknownStubType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaStubMethods> RPCIteratorTypeInstance_60eba5a793c685eaStub;
3628
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods> RPCIteratorTypeInstance_195e88cf7f955a2eStub;
3629
2843
  typedef ProxyStub::UnknownStubType<Exchange::IStream, ExchangeStreamStubMethods> ExchangeStreamStub;
3630
2844
  typedef ProxyStub::UnknownStubType<Exchange::IStream::IElement, ExchangeStreamElementStubMethods> ExchangeStreamElementStub;
3631
2845
  typedef ProxyStub::UnknownStubType<Exchange::IStream::IElement::IIterator, ExchangeStreamElementIteratorStubMethods> ExchangeStreamElementIteratorStub;
3632
2846
  typedef ProxyStub::UnknownStubType<Exchange::IStream::IControl, ExchangeStreamControlStubMethods> ExchangeStreamControlStub;
3633
2847
  typedef ProxyStub::UnknownStubType<Exchange::IStream::IControl::IGeometry, ExchangeStreamControlGeometryStubMethods> ExchangeStreamControlGeometryStub;
@@ -3639,13 +2853,11 @@
3639
2853
  public:
3640
2854
  Instantiation()
3641
2855
  {
3642
2856
  const RPC::SecureProxyStubType security = static_cast<RPC::SecureProxyStubType>(static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_SECURE) | static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_COHERENT));
3643
2857
 
3644
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy, RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub>(security);
3645
2858
  RPC::Administrator::Instance().Announce<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaProxy, RPCIteratorTypeInstance_60eba5a793c685eaStub>(security);
3646
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eProxy, RPCIteratorTypeInstance_195e88cf7f955a2eStub>(security);
3647
2859
  RPC::Administrator::Instance().Announce<Exchange::IStream, ExchangeStreamProxy, ExchangeStreamStub>(security);
3648
2860
  RPC::Administrator::Instance().Announce<Exchange::IStream::IElement, ExchangeStreamElementProxy, ExchangeStreamElementStub>(security);
3649
2861
  RPC::Administrator::Instance().Announce<Exchange::IStream::IElement::IIterator, ExchangeStreamElementIteratorProxy, ExchangeStreamElementIteratorStub>(security);
3650
2862
  RPC::Administrator::Instance().Announce<Exchange::IStream::IControl, ExchangeStreamControlProxy, ExchangeStreamControlStub>(security);
3651
2863
  RPC::Administrator::Instance().Announce<Exchange::IStream::IControl::IGeometry, ExchangeStreamControlGeometryProxy, ExchangeStreamControlGeometryStub>(security);
@@ -3653,13 +2865,11 @@
3653
2865
  RPC::Administrator::Instance().Announce<Exchange::IStream::ICallback, ExchangeStreamCallbackProxy, ExchangeStreamCallbackStub>(security);
3654
2866
  RPC::Administrator::Instance().Announce<Exchange::IPlayer, ExchangePlayerProxy, ExchangePlayerStub>(security);
3655
2867
  }
3656
2868
  ~Instantiation()
3657
2869
  {
3658
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>>();
3659
2870
  RPC::Administrator::Instance().Recall<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>>();
3660
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>>();
3661
2871
  RPC::Administrator::Instance().Recall<Exchange::IStream>();
3662
2872
  RPC::Administrator::Instance().Recall<Exchange::IStream::IElement>();
3663
2873
  RPC::Administrator::Instance().Recall<Exchange::IStream::IElement::IIterator>();
3664
2874
  RPC::Administrator::Instance().Recall<Exchange::IStream::IControl>();
3665
2875
  RPC::Administrator::Instance().Recall<Exchange::IStream::IControl::IGeometry>();
{baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_SubsystemControl.cpp RENAMED
@@ -1,12 +1,10 @@
1
1
  //
2
2
  // generated automatically from "ISubsystemControl.h"
3
3
  //
4
4
  // implements COM-RPC proxy stubs for:
5
5
  // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = RPC::ID_STRINGITERATOR] [[iterator]]
6
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = uint32_t, INTERFACE_ID = RPC::ID_VALUEITERATOR] [[iterator]]
7
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = RPC::Environment, INTERFACE_ID = RPC::ID_ENVIRONMENTITERATOR] [[iterator]]
8
6
  // - class Exchange::ISubsystemControl
9
7
  //
10
8
  // secure code enabled:
11
9
  // - instance verification enabled
12
10
  // - range verification enabled
@@ -218,396 +216,10 @@
218
216
  }
219
217
  , nullptr
220
218
  }; // RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods
221
219
 
222
220
  //
223
- // RPC::IIteratorTypeInstance_60eba5a793c685ea interface stub definitions
224
- //
225
- // Methods:
226
- // (0) virtual bool Next(uint32_t&) = 0
227
- // (1) virtual bool Previous(uint32_t&) = 0
228
- // (2) virtual void Reset(const uint32_t) = 0
229
- // (3) virtual bool IsValid() const = 0
230
- // (4) virtual uint32_t Count() const = 0
231
- // (5) virtual uint32_t Current() const = 0
232
- //
233
-
234
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_60eba5a793c685eaStubMethods[] = {
235
- // (0) virtual bool Next(uint32_t&) = 0
236
- //
237
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
238
- Core::hresult hresult = Core::ERROR_NONE;
239
-
240
- hresult = [&]() -> Core::hresult {
241
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
242
-
243
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
244
-
245
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
246
- ASSERT(implementation != nullptr);
247
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
248
-
249
- uint32_t _info{};
250
-
251
- bool result = implementation->Next(_info);
252
-
253
- RPC::Data::Frame::Writer writer(message->Response().Writer());
254
- writer.Boolean(result);
255
- writer.Number<uint32_t>(_info);
256
-
257
- return (Core::ERROR_NONE);
258
- } ();
259
-
260
- if (hresult != Core::ERROR_NONE) {
261
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 0, hresult);
262
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
263
- }
264
- },
265
-
266
- // (1) virtual bool Previous(uint32_t&) = 0
267
- //
268
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
269
- Core::hresult hresult = Core::ERROR_NONE;
270
-
271
- hresult = [&]() -> Core::hresult {
272
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
273
-
274
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
275
-
276
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
277
- ASSERT(implementation != nullptr);
278
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
279
-
280
- uint32_t _info{};
281
-
282
- bool result = implementation->Previous(_info);
283
-
284
- RPC::Data::Frame::Writer writer(message->Response().Writer());
285
- writer.Boolean(result);
286
- writer.Number<uint32_t>(_info);
287
-
288
- return (Core::ERROR_NONE);
289
- } ();
290
-
291
- if (hresult != Core::ERROR_NONE) {
292
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 1, hresult);
293
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
294
- }
295
- },
296
-
297
- // (2) virtual void Reset(const uint32_t) = 0
298
- //
299
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
300
- Core::hresult hresult = Core::ERROR_NONE;
301
-
302
- hresult = [&]() -> Core::hresult {
303
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
304
-
305
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
306
-
307
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
308
- ASSERT(implementation != nullptr);
309
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
310
-
311
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
312
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
313
- const uint32_t _position = reader.Number<uint32_t>();
314
-
315
- implementation->Reset(_position);
316
-
317
- return (Core::ERROR_NONE);
318
- } ();
319
-
320
- if (hresult != Core::ERROR_NONE) {
321
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 2, hresult);
322
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
323
- }
324
- },
325
-
326
- // (3) virtual bool IsValid() const = 0
327
- //
328
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
329
- Core::hresult hresult = Core::ERROR_NONE;
330
-
331
- hresult = [&]() -> Core::hresult {
332
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
333
-
334
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
335
-
336
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
337
- ASSERT(implementation != nullptr);
338
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
339
-
340
- bool result = implementation->IsValid();
341
-
342
- RPC::Data::Frame::Writer writer(message->Response().Writer());
343
- writer.Boolean(result);
344
-
345
- return (Core::ERROR_NONE);
346
- } ();
347
-
348
- if (hresult != Core::ERROR_NONE) {
349
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 3, hresult);
350
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
351
- }
352
- },
353
-
354
- // (4) virtual uint32_t Count() const = 0
355
- //
356
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
357
- Core::hresult hresult = Core::ERROR_NONE;
358
-
359
- hresult = [&]() -> Core::hresult {
360
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
361
-
362
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
363
-
364
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
365
- ASSERT(implementation != nullptr);
366
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
367
-
368
- uint32_t result = implementation->Count();
369
-
370
- RPC::Data::Frame::Writer writer(message->Response().Writer());
371
- writer.Number<uint32_t>(result);
372
-
373
- return (Core::ERROR_NONE);
374
- } ();
375
-
376
- if (hresult != Core::ERROR_NONE) {
377
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 4, hresult);
378
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
379
- }
380
- },
381
-
382
- // (5) virtual uint32_t Current() const = 0
383
- //
384
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
385
- Core::hresult hresult = Core::ERROR_NONE;
386
-
387
- hresult = [&]() -> Core::hresult {
388
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
389
-
390
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
391
-
392
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
393
- ASSERT(implementation != nullptr);
394
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
395
-
396
- uint32_t result = implementation->Current();
397
-
398
- RPC::Data::Frame::Writer writer(message->Response().Writer());
399
- writer.Number<uint32_t>(result);
400
-
401
- return (Core::ERROR_NONE);
402
- } ();
403
-
404
- if (hresult != Core::ERROR_NONE) {
405
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 5, hresult);
406
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
407
- }
408
- }
409
- , nullptr
410
- }; // RPCIteratorTypeInstance_60eba5a793c685eaStubMethods
411
-
412
- //
413
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface stub definitions
414
- //
415
- // Methods:
416
- // (0) virtual bool Next(RPC::Environment&) = 0
417
- // (1) virtual bool Previous(RPC::Environment&) = 0
418
- // (2) virtual void Reset(const uint32_t) = 0
419
- // (3) virtual bool IsValid() const = 0
420
- // (4) virtual uint32_t Count() const = 0
421
- // (5) virtual RPC::Environment Current() const = 0
422
- //
423
-
424
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods[] = {
425
- // (0) virtual bool Next(RPC::Environment&) = 0
426
- //
427
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
428
- Core::hresult hresult = Core::ERROR_NONE;
429
-
430
- hresult = [&]() -> Core::hresult {
431
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
432
-
433
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
434
-
435
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
436
- ASSERT(implementation != nullptr);
437
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
438
-
439
- RPC::Environment _info{};
440
-
441
- bool result = implementation->Next(_info);
442
-
443
- RPC::Data::Frame::Writer writer(message->Response().Writer());
444
- writer.Boolean(result);
445
- writer.Text(_info.Key);
446
- writer.Text(_info.Value);
447
- writer.Number<RPC::Environment::scope>(_info.Scope);
448
-
449
- return (Core::ERROR_NONE);
450
- } ();
451
-
452
- if (hresult != Core::ERROR_NONE) {
453
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 0, hresult);
454
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
455
- }
456
- },
457
-
458
- // (1) virtual bool Previous(RPC::Environment&) = 0
459
- //
460
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
461
- Core::hresult hresult = Core::ERROR_NONE;
462
-
463
- hresult = [&]() -> Core::hresult {
464
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
465
-
466
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
467
-
468
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
469
- ASSERT(implementation != nullptr);
470
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
471
-
472
- RPC::Environment _info{};
473
-
474
- bool result = implementation->Previous(_info);
475
-
476
- RPC::Data::Frame::Writer writer(message->Response().Writer());
477
- writer.Boolean(result);
478
- writer.Text(_info.Key);
479
- writer.Text(_info.Value);
480
- writer.Number<RPC::Environment::scope>(_info.Scope);
481
-
482
- return (Core::ERROR_NONE);
483
- } ();
484
-
485
- if (hresult != Core::ERROR_NONE) {
486
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 1, hresult);
487
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
488
- }
489
- },
490
-
491
- // (2) virtual void Reset(const uint32_t) = 0
492
- //
493
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
494
- Core::hresult hresult = Core::ERROR_NONE;
495
-
496
- hresult = [&]() -> Core::hresult {
497
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
498
-
499
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
500
-
501
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
502
- ASSERT(implementation != nullptr);
503
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
504
-
505
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
506
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
507
- const uint32_t _position = reader.Number<uint32_t>();
508
-
509
- implementation->Reset(_position);
510
-
511
- return (Core::ERROR_NONE);
512
- } ();
513
-
514
- if (hresult != Core::ERROR_NONE) {
515
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 2, hresult);
516
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
517
- }
518
- },
519
-
520
- // (3) virtual bool IsValid() const = 0
521
- //
522
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
523
- Core::hresult hresult = Core::ERROR_NONE;
524
-
525
- hresult = [&]() -> Core::hresult {
526
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
527
-
528
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
529
-
530
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
531
- ASSERT(implementation != nullptr);
532
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
533
-
534
- bool result = implementation->IsValid();
535
-
536
- RPC::Data::Frame::Writer writer(message->Response().Writer());
537
- writer.Boolean(result);
538
-
539
- return (Core::ERROR_NONE);
540
- } ();
541
-
542
- if (hresult != Core::ERROR_NONE) {
543
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 3, hresult);
544
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
545
- }
546
- },
547
-
548
- // (4) virtual uint32_t Count() const = 0
549
- //
550
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
551
- Core::hresult hresult = Core::ERROR_NONE;
552
-
553
- hresult = [&]() -> Core::hresult {
554
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
555
-
556
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
557
-
558
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
559
- ASSERT(implementation != nullptr);
560
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
561
-
562
- uint32_t result = implementation->Count();
563
-
564
- RPC::Data::Frame::Writer writer(message->Response().Writer());
565
- writer.Number<uint32_t>(result);
566
-
567
- return (Core::ERROR_NONE);
568
- } ();
569
-
570
- if (hresult != Core::ERROR_NONE) {
571
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 4, hresult);
572
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
573
- }
574
- },
575
-
576
- // (5) virtual RPC::Environment Current() const = 0
577
- //
578
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
579
- Core::hresult hresult = Core::ERROR_NONE;
580
-
581
- hresult = [&]() -> Core::hresult {
582
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
583
-
584
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
585
-
586
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
587
- ASSERT(implementation != nullptr);
588
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
589
-
590
- RPC::Environment result = implementation->Current();
591
-
592
- RPC::Data::Frame::Writer writer(message->Response().Writer());
593
- writer.Text(result.Key);
594
- writer.Text(result.Value);
595
- writer.Number<RPC::Environment::scope>(result.Scope);
596
-
597
- return (Core::ERROR_NONE);
598
- } ();
599
-
600
- if (hresult != Core::ERROR_NONE) {
601
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 5, hresult);
602
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
603
- }
604
- }
605
- , nullptr
606
- }; // RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods
607
-
608
- //
609
221
  // Exchange::ISubsystemControl interface stub definitions
610
222
  //
611
223
  // Methods:
612
224
  // (0) virtual Core::hresult Activate(const PluginHost::ISubSystem::subsystem, const Core::OptionalType<string>&) = 0
613
225
  //
@@ -846,400 +458,10 @@
846
458
  }
847
459
 
848
460
  }; // class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy
849
461
 
850
462
  //
851
- // RPC::IIteratorTypeInstance_60eba5a793c685ea interface proxy definitions
852
- //
853
- // Methods:
854
- // (0) virtual bool Next(uint32_t&) = 0
855
- // (1) virtual bool Previous(uint32_t&) = 0
856
- // (2) virtual void Reset(const uint32_t) = 0
857
- // (3) virtual bool IsValid() const = 0
858
- // (4) virtual uint32_t Count() const = 0
859
- // (5) virtual uint32_t Current() const = 0
860
- //
861
-
862
- class RPCIteratorTypeInstance_60eba5a793c685eaProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>> {
863
- public:
864
- RPCIteratorTypeInstance_60eba5a793c685eaProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
865
- : BaseClass(channel, implementation, otherSideInformed)
866
- {
867
- }
868
-
869
- bool Next(uint32_t& _info) override
870
- {
871
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
872
-
873
- bool result{};
874
-
875
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
876
- if (hresult == Core::ERROR_NONE) {
877
- hresult = [&]() -> Core::hresult {
878
- RPC::Data::Frame::Reader reader(message->Response().Reader());
879
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
880
- result = reader.Boolean();
881
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
882
- _info = reader.Number<uint32_t>();
883
-
884
- return (Core::ERROR_NONE);
885
- } ();
886
- } else {
887
- ASSERT((hresult & COM_ERROR) != 0);
888
- }
889
-
890
- if ((hresult & COM_ERROR) != 0) {
891
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 0, hresult);
892
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
893
- }
894
-
895
- return (result);
896
- }
897
-
898
- bool Previous(uint32_t& _info) override
899
- {
900
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
901
-
902
- bool result{};
903
-
904
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
905
- if (hresult == Core::ERROR_NONE) {
906
- hresult = [&]() -> Core::hresult {
907
- RPC::Data::Frame::Reader reader(message->Response().Reader());
908
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
909
- result = reader.Boolean();
910
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
911
- _info = reader.Number<uint32_t>();
912
-
913
- return (Core::ERROR_NONE);
914
- } ();
915
- } else {
916
- ASSERT((hresult & COM_ERROR) != 0);
917
- }
918
-
919
- if ((hresult & COM_ERROR) != 0) {
920
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 1, hresult);
921
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
922
- }
923
-
924
- return (result);
925
- }
926
-
927
- void Reset(const uint32_t _position) override
928
- {
929
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
930
-
931
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
932
- writer.Number<uint32_t>(_position);
933
-
934
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
935
- if (hresult == Core::ERROR_NONE) {
936
- hresult = [&]() -> Core::hresult {
937
-
938
- return (Core::ERROR_NONE);
939
- } ();
940
- } else {
941
- ASSERT((hresult & COM_ERROR) != 0);
942
- }
943
-
944
- if ((hresult & COM_ERROR) != 0) {
945
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 2, hresult);
946
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
947
- }
948
- }
949
-
950
- bool IsValid() const override
951
- {
952
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
953
-
954
- bool result{};
955
-
956
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
957
- if (hresult == Core::ERROR_NONE) {
958
- hresult = [&]() -> Core::hresult {
959
- RPC::Data::Frame::Reader reader(message->Response().Reader());
960
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
961
- result = reader.Boolean();
962
-
963
- return (Core::ERROR_NONE);
964
- } ();
965
- } else {
966
- ASSERT((hresult & COM_ERROR) != 0);
967
- }
968
-
969
- if ((hresult & COM_ERROR) != 0) {
970
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 3, hresult);
971
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
972
- }
973
-
974
- return (result);
975
- }
976
-
977
- uint32_t Count() const override
978
- {
979
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
980
-
981
- uint32_t result{};
982
-
983
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
984
- if (hresult == Core::ERROR_NONE) {
985
- hresult = [&]() -> Core::hresult {
986
- RPC::Data::Frame::Reader reader(message->Response().Reader());
987
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
988
- result = reader.Number<uint32_t>();
989
-
990
- return (Core::ERROR_NONE);
991
- } ();
992
- } else {
993
- ASSERT((hresult & COM_ERROR) != 0);
994
- }
995
-
996
- if ((hresult & COM_ERROR) != 0) {
997
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 4, hresult);
998
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
999
- }
1000
-
1001
- return (result);
1002
- }
1003
-
1004
- uint32_t Current() const override
1005
- {
1006
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1007
-
1008
- uint32_t result{};
1009
-
1010
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1011
- if (hresult == Core::ERROR_NONE) {
1012
- hresult = [&]() -> Core::hresult {
1013
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1014
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1015
- result = reader.Number<uint32_t>();
1016
-
1017
- return (Core::ERROR_NONE);
1018
- } ();
1019
- } else {
1020
- ASSERT((hresult & COM_ERROR) != 0);
1021
- }
1022
-
1023
- if ((hresult & COM_ERROR) != 0) {
1024
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 5, hresult);
1025
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1026
- }
1027
-
1028
- return (result);
1029
- }
1030
-
1031
- }; // class RPCIteratorTypeInstance_60eba5a793c685eaProxy
1032
-
1033
- //
1034
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface proxy definitions
1035
- //
1036
- // Methods:
1037
- // (0) virtual bool Next(RPC::Environment&) = 0
1038
- // (1) virtual bool Previous(RPC::Environment&) = 0
1039
- // (2) virtual void Reset(const uint32_t) = 0
1040
- // (3) virtual bool IsValid() const = 0
1041
- // (4) virtual uint32_t Count() const = 0
1042
- // (5) virtual RPC::Environment Current() const = 0
1043
- //
1044
-
1045
- class RPCIteratorTypeInstance_195e88cf7f955a2eProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>> {
1046
- public:
1047
- RPCIteratorTypeInstance_195e88cf7f955a2eProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
1048
- : BaseClass(channel, implementation, otherSideInformed)
1049
- {
1050
- }
1051
-
1052
- bool Next(RPC::Environment& _info) override
1053
- {
1054
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
1055
-
1056
- bool result{};
1057
-
1058
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1059
- if (hresult == Core::ERROR_NONE) {
1060
- hresult = [&]() -> Core::hresult {
1061
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1062
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1063
- result = reader.Boolean();
1064
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1065
- const uint16_t _info_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
1066
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1067
- _info.Key = reader.Text();
1068
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1069
- const uint16_t _info_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
1070
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1071
- _info.Value = reader.Text();
1072
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1073
- _info.Scope = reader.Number<RPC::Environment::scope>();
1074
-
1075
- return (Core::ERROR_NONE);
1076
- } ();
1077
- } else {
1078
- ASSERT((hresult & COM_ERROR) != 0);
1079
- }
1080
-
1081
- if ((hresult & COM_ERROR) != 0) {
1082
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 0, hresult);
1083
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1084
- }
1085
-
1086
- return (result);
1087
- }
1088
-
1089
- bool Previous(RPC::Environment& _info) override
1090
- {
1091
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
1092
-
1093
- bool result{};
1094
-
1095
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1096
- if (hresult == Core::ERROR_NONE) {
1097
- hresult = [&]() -> Core::hresult {
1098
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1099
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1100
- result = reader.Boolean();
1101
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1102
- const uint16_t _info_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
1103
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1104
- _info.Key = reader.Text();
1105
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1106
- const uint16_t _info_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
1107
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1108
- _info.Value = reader.Text();
1109
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1110
- _info.Scope = reader.Number<RPC::Environment::scope>();
1111
-
1112
- return (Core::ERROR_NONE);
1113
- } ();
1114
- } else {
1115
- ASSERT((hresult & COM_ERROR) != 0);
1116
- }
1117
-
1118
- if ((hresult & COM_ERROR) != 0) {
1119
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 1, hresult);
1120
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1121
- }
1122
-
1123
- return (result);
1124
- }
1125
-
1126
- void Reset(const uint32_t _position) override
1127
- {
1128
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
1129
-
1130
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
1131
- writer.Number<uint32_t>(_position);
1132
-
1133
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1134
- if (hresult == Core::ERROR_NONE) {
1135
- hresult = [&]() -> Core::hresult {
1136
-
1137
- return (Core::ERROR_NONE);
1138
- } ();
1139
- } else {
1140
- ASSERT((hresult & COM_ERROR) != 0);
1141
- }
1142
-
1143
- if ((hresult & COM_ERROR) != 0) {
1144
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 2, hresult);
1145
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1146
- }
1147
- }
1148
-
1149
- bool IsValid() const override
1150
- {
1151
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
1152
-
1153
- bool result{};
1154
-
1155
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1156
- if (hresult == Core::ERROR_NONE) {
1157
- hresult = [&]() -> Core::hresult {
1158
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1159
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1160
- result = reader.Boolean();
1161
-
1162
- return (Core::ERROR_NONE);
1163
- } ();
1164
- } else {
1165
- ASSERT((hresult & COM_ERROR) != 0);
1166
- }
1167
-
1168
- if ((hresult & COM_ERROR) != 0) {
1169
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 3, hresult);
1170
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1171
- }
1172
-
1173
- return (result);
1174
- }
1175
-
1176
- uint32_t Count() const override
1177
- {
1178
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
1179
-
1180
- uint32_t result{};
1181
-
1182
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1183
- if (hresult == Core::ERROR_NONE) {
1184
- hresult = [&]() -> Core::hresult {
1185
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1186
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1187
- result = reader.Number<uint32_t>();
1188
-
1189
- return (Core::ERROR_NONE);
1190
- } ();
1191
- } else {
1192
- ASSERT((hresult & COM_ERROR) != 0);
1193
- }
1194
-
1195
- if ((hresult & COM_ERROR) != 0) {
1196
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 4, hresult);
1197
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1198
- }
1199
-
1200
- return (result);
1201
- }
1202
-
1203
- RPC::Environment Current() const override
1204
- {
1205
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1206
-
1207
- RPC::Environment result{};
1208
-
1209
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1210
- if (hresult == Core::ERROR_NONE) {
1211
- hresult = [&]() -> Core::hresult {
1212
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1213
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1214
- const uint16_t result_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
1215
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + result_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1216
- result.Key = reader.Text();
1217
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1218
- const uint16_t result_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
1219
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + result_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1220
- result.Value = reader.Text();
1221
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1222
- result.Scope = reader.Number<RPC::Environment::scope>();
1223
-
1224
- return (Core::ERROR_NONE);
1225
- } ();
1226
- } else {
1227
- ASSERT((hresult & COM_ERROR) != 0);
1228
- }
1229
-
1230
- if ((hresult & COM_ERROR) != 0) {
1231
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 5, hresult);
1232
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1233
- }
1234
-
1235
- return (result);
1236
- }
1237
-
1238
- }; // class RPCIteratorTypeInstance_195e88cf7f955a2eProxy
1239
-
1240
- //
1241
463
  // Exchange::ISubsystemControl interface proxy definitions
1242
464
  //
1243
465
  // Methods:
1244
466
  // (0) virtual Core::hresult Activate(const PluginHost::ISubSystem::subsystem, const Core::OptionalType<string>&) = 0
1245
467
  //
@@ -1291,30 +513,24 @@
1291
513
  // REGISTRATION
1292
514
  // -----------------------------------------------------------------
1293
515
  namespace {
1294
516
 
1295
517
  typedef ProxyStub::UnknownStubType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods> RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub;
1296
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaStubMethods> RPCIteratorTypeInstance_60eba5a793c685eaStub;
1297
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods> RPCIteratorTypeInstance_195e88cf7f955a2eStub;
1298
518
  typedef ProxyStub::UnknownStubType<Exchange::ISubsystemControl, ExchangeSubsystemControlStubMethods> ExchangeSubsystemControlStub;
1299
519
 
1300
520
  static class Instantiation {
1301
521
  public:
1302
522
  Instantiation()
1303
523
  {
1304
524
  const RPC::SecureProxyStubType security = static_cast<RPC::SecureProxyStubType>(static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_SECURE) | static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_COHERENT));
1305
525
 
1306
526
  RPC::Administrator::Instance().Announce<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy, RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub>(security);
1307
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaProxy, RPCIteratorTypeInstance_60eba5a793c685eaStub>(security);
1308
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eProxy, RPCIteratorTypeInstance_195e88cf7f955a2eStub>(security);
1309
527
  RPC::Administrator::Instance().Announce<Exchange::ISubsystemControl, ExchangeSubsystemControlProxy, ExchangeSubsystemControlStub>(security);
1310
528
  }
1311
529
  ~Instantiation()
1312
530
  {
1313
531
  RPC::Administrator::Instance().Recall<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>>();
1314
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>>();
1315
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>>();
1316
532
  RPC::Administrator::Instance().Recall<Exchange::ISubsystemControl>();
1317
533
  }
1318
534
  } ProxyStubRegistration;
1319
535
 
1320
536
  } // namespace
{baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_SwitchBoard.cpp RENAMED
@@ -1,55 +0,0 @@
1
- //
2
- // generated automatically from "ISwitchBoard.h"
3
- //
4
- // implements COM-RPC proxy stubs for:
5
- //
6
- // secure code enabled:
7
- // - instance verification enabled
8
- // - range verification enabled
9
- // - frame coherency verification enabled
10
- //
11
-
12
- #include "Module.h"
13
- #include "ISwitchBoard.h"
14
-
15
- #include <com/com.h>
16
-
17
- namespace Thunder {
18
-
19
- namespace ProxyStubs {
20
-
21
- PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
22
- PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
23
-
24
- // -----------------------------------------------------------------
25
- // STUBS
26
- // -----------------------------------------------------------------
27
-
28
- // -----------------------------------------------------------------
29
- // PROXIES
30
- // -----------------------------------------------------------------
31
-
32
- POP_WARNING()
33
- POP_WARNING()
34
-
35
- // -----------------------------------------------------------------
36
- // REGISTRATION
37
- // -----------------------------------------------------------------
38
- namespace {
39
-
40
-
41
- static class Instantiation {
42
- public:
43
- Instantiation()
44
- {
45
- }
46
- ~Instantiation()
47
- {
48
- }
49
- } ProxyStubRegistration;
50
-
51
- } // namespace
52
-
53
- } // namespace ProxyStubs
54
-
55
- }
{baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_TextToSpeech.cpp RENAMED
@@ -1,12 +1,10 @@
1
1
  //
2
2
  // generated automatically from "ITextToSpeech.h"
3
3
  //
4
4
  // implements COM-RPC proxy stubs for:
5
5
  // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = RPC::ID_STRINGITERATOR] [[iterator]]
6
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = uint32_t, INTERFACE_ID = RPC::ID_VALUEITERATOR] [[iterator]]
7
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = RPC::Environment, INTERFACE_ID = RPC::ID_ENVIRONMENTITERATOR] [[iterator]]
8
6
  // - class Exchange::ITextToSpeech
9
7
  // - class Exchange::ITextToSpeech::INotification
10
8
  //
11
9
  // secure code enabled:
12
10
  // - instance verification enabled
@@ -219,396 +217,10 @@
219
217
  }
220
218
  , nullptr
221
219
  }; // RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods
222
220
 
223
221
  //
224
- // RPC::IIteratorTypeInstance_60eba5a793c685ea interface stub definitions
225
- //
226
- // Methods:
227
- // (0) virtual bool Next(uint32_t&) = 0
228
- // (1) virtual bool Previous(uint32_t&) = 0
229
- // (2) virtual void Reset(const uint32_t) = 0
230
- // (3) virtual bool IsValid() const = 0
231
- // (4) virtual uint32_t Count() const = 0
232
- // (5) virtual uint32_t Current() const = 0
233
- //
234
-
235
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_60eba5a793c685eaStubMethods[] = {
236
- // (0) virtual bool Next(uint32_t&) = 0
237
- //
238
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
239
- Core::hresult hresult = Core::ERROR_NONE;
240
-
241
- hresult = [&]() -> Core::hresult {
242
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
243
-
244
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
245
-
246
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
247
- ASSERT(implementation != nullptr);
248
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
249
-
250
- uint32_t _info{};
251
-
252
- bool result = implementation->Next(_info);
253
-
254
- RPC::Data::Frame::Writer writer(message->Response().Writer());
255
- writer.Boolean(result);
256
- writer.Number<uint32_t>(_info);
257
-
258
- return (Core::ERROR_NONE);
259
- } ();
260
-
261
- if (hresult != Core::ERROR_NONE) {
262
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 0, hresult);
263
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
264
- }
265
- },
266
-
267
- // (1) virtual bool Previous(uint32_t&) = 0
268
- //
269
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
270
- Core::hresult hresult = Core::ERROR_NONE;
271
-
272
- hresult = [&]() -> Core::hresult {
273
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
274
-
275
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
276
-
277
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
278
- ASSERT(implementation != nullptr);
279
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
280
-
281
- uint32_t _info{};
282
-
283
- bool result = implementation->Previous(_info);
284
-
285
- RPC::Data::Frame::Writer writer(message->Response().Writer());
286
- writer.Boolean(result);
287
- writer.Number<uint32_t>(_info);
288
-
289
- return (Core::ERROR_NONE);
290
- } ();
291
-
292
- if (hresult != Core::ERROR_NONE) {
293
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 1, hresult);
294
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
295
- }
296
- },
297
-
298
- // (2) virtual void Reset(const uint32_t) = 0
299
- //
300
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
301
- Core::hresult hresult = Core::ERROR_NONE;
302
-
303
- hresult = [&]() -> Core::hresult {
304
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
305
-
306
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
307
-
308
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
309
- ASSERT(implementation != nullptr);
310
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
311
-
312
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
313
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
314
- const uint32_t _position = reader.Number<uint32_t>();
315
-
316
- implementation->Reset(_position);
317
-
318
- return (Core::ERROR_NONE);
319
- } ();
320
-
321
- if (hresult != Core::ERROR_NONE) {
322
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 2, hresult);
323
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
324
- }
325
- },
326
-
327
- // (3) virtual bool IsValid() const = 0
328
- //
329
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
330
- Core::hresult hresult = Core::ERROR_NONE;
331
-
332
- hresult = [&]() -> Core::hresult {
333
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
334
-
335
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
336
-
337
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
338
- ASSERT(implementation != nullptr);
339
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
340
-
341
- bool result = implementation->IsValid();
342
-
343
- RPC::Data::Frame::Writer writer(message->Response().Writer());
344
- writer.Boolean(result);
345
-
346
- return (Core::ERROR_NONE);
347
- } ();
348
-
349
- if (hresult != Core::ERROR_NONE) {
350
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 3, hresult);
351
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
352
- }
353
- },
354
-
355
- // (4) virtual uint32_t Count() const = 0
356
- //
357
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
358
- Core::hresult hresult = Core::ERROR_NONE;
359
-
360
- hresult = [&]() -> Core::hresult {
361
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
362
-
363
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
364
-
365
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
366
- ASSERT(implementation != nullptr);
367
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
368
-
369
- uint32_t result = implementation->Count();
370
-
371
- RPC::Data::Frame::Writer writer(message->Response().Writer());
372
- writer.Number<uint32_t>(result);
373
-
374
- return (Core::ERROR_NONE);
375
- } ();
376
-
377
- if (hresult != Core::ERROR_NONE) {
378
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 4, hresult);
379
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
380
- }
381
- },
382
-
383
- // (5) virtual uint32_t Current() const = 0
384
- //
385
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
386
- Core::hresult hresult = Core::ERROR_NONE;
387
-
388
- hresult = [&]() -> Core::hresult {
389
- using interface = RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>;
390
-
391
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
392
-
393
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
394
- ASSERT(implementation != nullptr);
395
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
396
-
397
- uint32_t result = implementation->Current();
398
-
399
- RPC::Data::Frame::Writer writer(message->Response().Writer());
400
- writer.Number<uint32_t>(result);
401
-
402
- return (Core::ERROR_NONE);
403
- } ();
404
-
405
- if (hresult != Core::ERROR_NONE) {
406
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 5, hresult);
407
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
408
- }
409
- }
410
- , nullptr
411
- }; // RPCIteratorTypeInstance_60eba5a793c685eaStubMethods
412
-
413
- //
414
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface stub definitions
415
- //
416
- // Methods:
417
- // (0) virtual bool Next(RPC::Environment&) = 0
418
- // (1) virtual bool Previous(RPC::Environment&) = 0
419
- // (2) virtual void Reset(const uint32_t) = 0
420
- // (3) virtual bool IsValid() const = 0
421
- // (4) virtual uint32_t Count() const = 0
422
- // (5) virtual RPC::Environment Current() const = 0
423
- //
424
-
425
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods[] = {
426
- // (0) virtual bool Next(RPC::Environment&) = 0
427
- //
428
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
429
- Core::hresult hresult = Core::ERROR_NONE;
430
-
431
- hresult = [&]() -> Core::hresult {
432
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
433
-
434
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
435
-
436
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
437
- ASSERT(implementation != nullptr);
438
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
439
-
440
- RPC::Environment _info{};
441
-
442
- bool result = implementation->Next(_info);
443
-
444
- RPC::Data::Frame::Writer writer(message->Response().Writer());
445
- writer.Boolean(result);
446
- writer.Text(_info.Key);
447
- writer.Text(_info.Value);
448
- writer.Number<RPC::Environment::scope>(_info.Scope);
449
-
450
- return (Core::ERROR_NONE);
451
- } ();
452
-
453
- if (hresult != Core::ERROR_NONE) {
454
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 0, hresult);
455
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
456
- }
457
- },
458
-
459
- // (1) virtual bool Previous(RPC::Environment&) = 0
460
- //
461
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
462
- Core::hresult hresult = Core::ERROR_NONE;
463
-
464
- hresult = [&]() -> Core::hresult {
465
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
466
-
467
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
468
-
469
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
470
- ASSERT(implementation != nullptr);
471
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
472
-
473
- RPC::Environment _info{};
474
-
475
- bool result = implementation->Previous(_info);
476
-
477
- RPC::Data::Frame::Writer writer(message->Response().Writer());
478
- writer.Boolean(result);
479
- writer.Text(_info.Key);
480
- writer.Text(_info.Value);
481
- writer.Number<RPC::Environment::scope>(_info.Scope);
482
-
483
- return (Core::ERROR_NONE);
484
- } ();
485
-
486
- if (hresult != Core::ERROR_NONE) {
487
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 1, hresult);
488
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
489
- }
490
- },
491
-
492
- // (2) virtual void Reset(const uint32_t) = 0
493
- //
494
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
495
- Core::hresult hresult = Core::ERROR_NONE;
496
-
497
- hresult = [&]() -> Core::hresult {
498
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
499
-
500
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
501
-
502
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
503
- ASSERT(implementation != nullptr);
504
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
505
-
506
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
507
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
508
- const uint32_t _position = reader.Number<uint32_t>();
509
-
510
- implementation->Reset(_position);
511
-
512
- return (Core::ERROR_NONE);
513
- } ();
514
-
515
- if (hresult != Core::ERROR_NONE) {
516
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 2, hresult);
517
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
518
- }
519
- },
520
-
521
- // (3) virtual bool IsValid() const = 0
522
- //
523
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
524
- Core::hresult hresult = Core::ERROR_NONE;
525
-
526
- hresult = [&]() -> Core::hresult {
527
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
528
-
529
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
530
-
531
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
532
- ASSERT(implementation != nullptr);
533
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
534
-
535
- bool result = implementation->IsValid();
536
-
537
- RPC::Data::Frame::Writer writer(message->Response().Writer());
538
- writer.Boolean(result);
539
-
540
- return (Core::ERROR_NONE);
541
- } ();
542
-
543
- if (hresult != Core::ERROR_NONE) {
544
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 3, hresult);
545
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
546
- }
547
- },
548
-
549
- // (4) virtual uint32_t Count() const = 0
550
- //
551
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
552
- Core::hresult hresult = Core::ERROR_NONE;
553
-
554
- hresult = [&]() -> Core::hresult {
555
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
556
-
557
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
558
-
559
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
560
- ASSERT(implementation != nullptr);
561
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
562
-
563
- uint32_t result = implementation->Count();
564
-
565
- RPC::Data::Frame::Writer writer(message->Response().Writer());
566
- writer.Number<uint32_t>(result);
567
-
568
- return (Core::ERROR_NONE);
569
- } ();
570
-
571
- if (hresult != Core::ERROR_NONE) {
572
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 4, hresult);
573
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
574
- }
575
- },
576
-
577
- // (5) virtual RPC::Environment Current() const = 0
578
- //
579
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
580
- Core::hresult hresult = Core::ERROR_NONE;
581
-
582
- hresult = [&]() -> Core::hresult {
583
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
584
-
585
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
586
-
587
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
588
- ASSERT(implementation != nullptr);
589
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
590
-
591
- RPC::Environment result = implementation->Current();
592
-
593
- RPC::Data::Frame::Writer writer(message->Response().Writer());
594
- writer.Text(result.Key);
595
- writer.Text(result.Value);
596
- writer.Number<RPC::Environment::scope>(result.Scope);
597
-
598
- return (Core::ERROR_NONE);
599
- } ();
600
-
601
- if (hresult != Core::ERROR_NONE) {
602
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 5, hresult);
603
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
604
- }
605
- }
606
- , nullptr
607
- }; // RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods
608
-
609
- //
610
222
  // Exchange::ITextToSpeech interface stub definitions
611
223
  //
612
224
  // Methods:
613
225
  // (0) virtual void Register(Exchange::ITextToSpeech::INotification*) = 0
614
226
  // (1) virtual void Unregister(Exchange::ITextToSpeech::INotification*) = 0
@@ -1683,400 +1295,10 @@
1683
1295
  }
1684
1296
 
1685
1297
  }; // class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy
1686
1298
 
1687
1299
  //
1688
- // RPC::IIteratorTypeInstance_60eba5a793c685ea interface proxy definitions
1689
- //
1690
- // Methods:
1691
- // (0) virtual bool Next(uint32_t&) = 0
1692
- // (1) virtual bool Previous(uint32_t&) = 0
1693
- // (2) virtual void Reset(const uint32_t) = 0
1694
- // (3) virtual bool IsValid() const = 0
1695
- // (4) virtual uint32_t Count() const = 0
1696
- // (5) virtual uint32_t Current() const = 0
1697
- //
1698
-
1699
- class RPCIteratorTypeInstance_60eba5a793c685eaProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>> {
1700
- public:
1701
- RPCIteratorTypeInstance_60eba5a793c685eaProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
1702
- : BaseClass(channel, implementation, otherSideInformed)
1703
- {
1704
- }
1705
-
1706
- bool Next(uint32_t& _info) override
1707
- {
1708
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
1709
-
1710
- bool result{};
1711
-
1712
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1713
- if (hresult == Core::ERROR_NONE) {
1714
- hresult = [&]() -> Core::hresult {
1715
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1716
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1717
- result = reader.Boolean();
1718
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1719
- _info = reader.Number<uint32_t>();
1720
-
1721
- return (Core::ERROR_NONE);
1722
- } ();
1723
- } else {
1724
- ASSERT((hresult & COM_ERROR) != 0);
1725
- }
1726
-
1727
- if ((hresult & COM_ERROR) != 0) {
1728
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 0, hresult);
1729
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1730
- }
1731
-
1732
- return (result);
1733
- }
1734
-
1735
- bool Previous(uint32_t& _info) override
1736
- {
1737
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
1738
-
1739
- bool result{};
1740
-
1741
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1742
- if (hresult == Core::ERROR_NONE) {
1743
- hresult = [&]() -> Core::hresult {
1744
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1745
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1746
- result = reader.Boolean();
1747
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1748
- _info = reader.Number<uint32_t>();
1749
-
1750
- return (Core::ERROR_NONE);
1751
- } ();
1752
- } else {
1753
- ASSERT((hresult & COM_ERROR) != 0);
1754
- }
1755
-
1756
- if ((hresult & COM_ERROR) != 0) {
1757
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 1, hresult);
1758
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1759
- }
1760
-
1761
- return (result);
1762
- }
1763
-
1764
- void Reset(const uint32_t _position) override
1765
- {
1766
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
1767
-
1768
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
1769
- writer.Number<uint32_t>(_position);
1770
-
1771
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1772
- if (hresult == Core::ERROR_NONE) {
1773
- hresult = [&]() -> Core::hresult {
1774
-
1775
- return (Core::ERROR_NONE);
1776
- } ();
1777
- } else {
1778
- ASSERT((hresult & COM_ERROR) != 0);
1779
- }
1780
-
1781
- if ((hresult & COM_ERROR) != 0) {
1782
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 2, hresult);
1783
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1784
- }
1785
- }
1786
-
1787
- bool IsValid() const override
1788
- {
1789
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
1790
-
1791
- bool result{};
1792
-
1793
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1794
- if (hresult == Core::ERROR_NONE) {
1795
- hresult = [&]() -> Core::hresult {
1796
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1797
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1798
- result = reader.Boolean();
1799
-
1800
- return (Core::ERROR_NONE);
1801
- } ();
1802
- } else {
1803
- ASSERT((hresult & COM_ERROR) != 0);
1804
- }
1805
-
1806
- if ((hresult & COM_ERROR) != 0) {
1807
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 3, hresult);
1808
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1809
- }
1810
-
1811
- return (result);
1812
- }
1813
-
1814
- uint32_t Count() const override
1815
- {
1816
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
1817
-
1818
- uint32_t result{};
1819
-
1820
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1821
- if (hresult == Core::ERROR_NONE) {
1822
- hresult = [&]() -> Core::hresult {
1823
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1824
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1825
- result = reader.Number<uint32_t>();
1826
-
1827
- return (Core::ERROR_NONE);
1828
- } ();
1829
- } else {
1830
- ASSERT((hresult & COM_ERROR) != 0);
1831
- }
1832
-
1833
- if ((hresult & COM_ERROR) != 0) {
1834
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 4, hresult);
1835
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1836
- }
1837
-
1838
- return (result);
1839
- }
1840
-
1841
- uint32_t Current() const override
1842
- {
1843
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1844
-
1845
- uint32_t result{};
1846
-
1847
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1848
- if (hresult == Core::ERROR_NONE) {
1849
- hresult = [&]() -> Core::hresult {
1850
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1851
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1852
- result = reader.Number<uint32_t>();
1853
-
1854
- return (Core::ERROR_NONE);
1855
- } ();
1856
- } else {
1857
- ASSERT((hresult & COM_ERROR) != 0);
1858
- }
1859
-
1860
- if ((hresult & COM_ERROR) != 0) {
1861
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>::ID, 5, hresult);
1862
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1863
- }
1864
-
1865
- return (result);
1866
- }
1867
-
1868
- }; // class RPCIteratorTypeInstance_60eba5a793c685eaProxy
1869
-
1870
- //
1871
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface proxy definitions
1872
- //
1873
- // Methods:
1874
- // (0) virtual bool Next(RPC::Environment&) = 0
1875
- // (1) virtual bool Previous(RPC::Environment&) = 0
1876
- // (2) virtual void Reset(const uint32_t) = 0
1877
- // (3) virtual bool IsValid() const = 0
1878
- // (4) virtual uint32_t Count() const = 0
1879
- // (5) virtual RPC::Environment Current() const = 0
1880
- //
1881
-
1882
- class RPCIteratorTypeInstance_195e88cf7f955a2eProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>> {
1883
- public:
1884
- RPCIteratorTypeInstance_195e88cf7f955a2eProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
1885
- : BaseClass(channel, implementation, otherSideInformed)
1886
- {
1887
- }
1888
-
1889
- bool Next(RPC::Environment& _info) override
1890
- {
1891
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
1892
-
1893
- bool result{};
1894
-
1895
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1896
- if (hresult == Core::ERROR_NONE) {
1897
- hresult = [&]() -> Core::hresult {
1898
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1899
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1900
- result = reader.Boolean();
1901
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1902
- const uint16_t _info_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
1903
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1904
- _info.Key = reader.Text();
1905
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1906
- const uint16_t _info_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
1907
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1908
- _info.Value = reader.Text();
1909
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1910
- _info.Scope = reader.Number<RPC::Environment::scope>();
1911
-
1912
- return (Core::ERROR_NONE);
1913
- } ();
1914
- } else {
1915
- ASSERT((hresult & COM_ERROR) != 0);
1916
- }
1917
-
1918
- if ((hresult & COM_ERROR) != 0) {
1919
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 0, hresult);
1920
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1921
- }
1922
-
1923
- return (result);
1924
- }
1925
-
1926
- bool Previous(RPC::Environment& _info) override
1927
- {
1928
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
1929
-
1930
- bool result{};
1931
-
1932
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1933
- if (hresult == Core::ERROR_NONE) {
1934
- hresult = [&]() -> Core::hresult {
1935
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1936
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1937
- result = reader.Boolean();
1938
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1939
- const uint16_t _info_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
1940
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1941
- _info.Key = reader.Text();
1942
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1943
- const uint16_t _info_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
1944
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1945
- _info.Value = reader.Text();
1946
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1947
- _info.Scope = reader.Number<RPC::Environment::scope>();
1948
-
1949
- return (Core::ERROR_NONE);
1950
- } ();
1951
- } else {
1952
- ASSERT((hresult & COM_ERROR) != 0);
1953
- }
1954
-
1955
- if ((hresult & COM_ERROR) != 0) {
1956
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 1, hresult);
1957
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1958
- }
1959
-
1960
- return (result);
1961
- }
1962
-
1963
- void Reset(const uint32_t _position) override
1964
- {
1965
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
1966
-
1967
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
1968
- writer.Number<uint32_t>(_position);
1969
-
1970
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1971
- if (hresult == Core::ERROR_NONE) {
1972
- hresult = [&]() -> Core::hresult {
1973
-
1974
- return (Core::ERROR_NONE);
1975
- } ();
1976
- } else {
1977
- ASSERT((hresult & COM_ERROR) != 0);
1978
- }
1979
-
1980
- if ((hresult & COM_ERROR) != 0) {
1981
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 2, hresult);
1982
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1983
- }
1984
- }
1985
-
1986
- bool IsValid() const override
1987
- {
1988
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
1989
-
1990
- bool result{};
1991
-
1992
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1993
- if (hresult == Core::ERROR_NONE) {
1994
- hresult = [&]() -> Core::hresult {
1995
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1996
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1997
- result = reader.Boolean();
1998
-
1999
- return (Core::ERROR_NONE);
2000
- } ();
2001
- } else {
2002
- ASSERT((hresult & COM_ERROR) != 0);
2003
- }
2004
-
2005
- if ((hresult & COM_ERROR) != 0) {
2006
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 3, hresult);
2007
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
2008
- }
2009
-
2010
- return (result);
2011
- }
2012
-
2013
- uint32_t Count() const override
2014
- {
2015
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
2016
-
2017
- uint32_t result{};
2018
-
2019
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
2020
- if (hresult == Core::ERROR_NONE) {
2021
- hresult = [&]() -> Core::hresult {
2022
- RPC::Data::Frame::Reader reader(message->Response().Reader());
2023
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2024
- result = reader.Number<uint32_t>();
2025
-
2026
- return (Core::ERROR_NONE);
2027
- } ();
2028
- } else {
2029
- ASSERT((hresult & COM_ERROR) != 0);
2030
- }
2031
-
2032
- if ((hresult & COM_ERROR) != 0) {
2033
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 4, hresult);
2034
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
2035
- }
2036
-
2037
- return (result);
2038
- }
2039
-
2040
- RPC::Environment Current() const override
2041
- {
2042
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
2043
-
2044
- RPC::Environment result{};
2045
-
2046
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
2047
- if (hresult == Core::ERROR_NONE) {
2048
- hresult = [&]() -> Core::hresult {
2049
- RPC::Data::Frame::Reader reader(message->Response().Reader());
2050
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2051
- const uint16_t result_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
2052
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + result_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2053
- result.Key = reader.Text();
2054
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2055
- const uint16_t result_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
2056
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + result_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2057
- result.Value = reader.Text();
2058
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
2059
- result.Scope = reader.Number<RPC::Environment::scope>();
2060
-
2061
- return (Core::ERROR_NONE);
2062
- } ();
2063
- } else {
2064
- ASSERT((hresult & COM_ERROR) != 0);
2065
- }
2066
-
2067
- if ((hresult & COM_ERROR) != 0) {
2068
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 5, hresult);
2069
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
2070
- }
2071
-
2072
- return (result);
2073
- }
2074
-
2075
- }; // class RPCIteratorTypeInstance_195e88cf7f955a2eProxy
2076
-
2077
- //
2078
1300
  // Exchange::ITextToSpeech interface proxy definitions
2079
1301
  //
2080
1302
  // Methods:
2081
1303
  // (0) virtual void Register(Exchange::ITextToSpeech::INotification*) = 0
2082
1304
  // (1) virtual void Unregister(Exchange::ITextToSpeech::INotification*) = 0
@@ -2917,32 +2139,26 @@
2917
2139
  // REGISTRATION
2918
2140
  // -----------------------------------------------------------------
2919
2141
  namespace {
2920
2142
 
2921
2143
  typedef ProxyStub::UnknownStubType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods> RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub;
2922
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaStubMethods> RPCIteratorTypeInstance_60eba5a793c685eaStub;
2923
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods> RPCIteratorTypeInstance_195e88cf7f955a2eStub;
2924
2144
  typedef ProxyStub::UnknownStubType<Exchange::ITextToSpeech, ExchangeTextToSpeechStubMethods> ExchangeTextToSpeechStub;
2925
2145
  typedef ProxyStub::UnknownStubType<Exchange::ITextToSpeech::INotification, ExchangeTextToSpeechNotificationStubMethods> ExchangeTextToSpeechNotificationStub;
2926
2146
 
2927
2147
  static class Instantiation {
2928
2148
  public:
2929
2149
  Instantiation()
2930
2150
  {
2931
2151
  const RPC::SecureProxyStubType security = static_cast<RPC::SecureProxyStubType>(static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_SECURE) | static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_COHERENT));
2932
2152
 
2933
2153
  RPC::Administrator::Instance().Announce<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy, RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub>(security);
2934
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaProxy, RPCIteratorTypeInstance_60eba5a793c685eaStub>(security);
2935
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eProxy, RPCIteratorTypeInstance_195e88cf7f955a2eStub>(security);
2936
2154
  RPC::Administrator::Instance().Announce<Exchange::ITextToSpeech, ExchangeTextToSpeechProxy, ExchangeTextToSpeechStub>(security);
2937
2155
  RPC::Administrator::Instance().Announce<Exchange::ITextToSpeech::INotification, ExchangeTextToSpeechNotificationProxy, ExchangeTextToSpeechNotificationStub>(security);
2938
2156
  }
2939
2157
  ~Instantiation()
2940
2158
  {
2941
2159
  RPC::Administrator::Instance().Recall<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>>();
2942
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>>();
2943
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>>();
2944
2160
  RPC::Administrator::Instance().Recall<Exchange::ITextToSpeech>();
2945
2161
  RPC::Administrator::Instance().Recall<Exchange::ITextToSpeech::INotification>();
2946
2162
  }
2947
2163
  } ProxyStubRegistration;
2948
2164
 
{baseline → generated}/Release/ThunderInterfaces/interfaces/generated/ProxyStubs_ValuePoint.cpp RENAMED
@@ -1,12 +1,10 @@
1
1
  //
2
2
  // generated automatically from "IValuePoint.h"
3
3
  //
4
4
  // implements COM-RPC proxy stubs for:
5
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = string, INTERFACE_ID = RPC::ID_STRINGITERATOR] [[iterator]]
6
5
  // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = uint32_t, INTERFACE_ID = RPC::ID_VALUEITERATOR] [[iterator]]
7
- // - class RPC::IIteratorType<typename ELEMENT, const uint32_t INTERFACE_ID> [with ELEMENT = RPC::Environment, INTERFACE_ID = RPC::ID_ENVIRONMENTITERATOR] [[iterator]]
8
6
  // - class Exchange::IValuePoint
9
7
  // - class Exchange::IValuePoint::ICatalog
10
8
  // - class Exchange::IValuePoint::ICatalog::INotification
11
9
  // - class Exchange::IValuePoint::INotification
12
10
  //
@@ -31,200 +29,10 @@
31
29
  // -----------------------------------------------------------------
32
30
  // STUBS
33
31
  // -----------------------------------------------------------------
34
32
 
35
33
  //
36
- // RPC::IIteratorTypeInstance_bd6e04b8d151c1f7 interface stub definitions
37
- //
38
- // Methods:
39
- // (0) virtual bool Next(string&) = 0
40
- // (1) virtual bool Previous(string&) = 0
41
- // (2) virtual void Reset(const uint32_t) = 0
42
- // (3) virtual bool IsValid() const = 0
43
- // (4) virtual uint32_t Count() const = 0
44
- // (5) virtual string Current() const = 0
45
- //
46
-
47
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods[] = {
48
- // (0) virtual bool Next(string&) = 0
49
- //
50
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
51
- Core::hresult hresult = Core::ERROR_NONE;
52
-
53
- hresult = [&]() -> Core::hresult {
54
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
55
-
56
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
57
-
58
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
59
- ASSERT(implementation != nullptr);
60
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
61
-
62
- string _info{};
63
-
64
- bool result = implementation->Next(_info);
65
-
66
- RPC::Data::Frame::Writer writer(message->Response().Writer());
67
- writer.Boolean(result);
68
- writer.Text(_info);
69
-
70
- return (Core::ERROR_NONE);
71
- } ();
72
-
73
- if (hresult != Core::ERROR_NONE) {
74
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 0, hresult);
75
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
76
- }
77
- },
78
-
79
- // (1) virtual bool Previous(string&) = 0
80
- //
81
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
82
- Core::hresult hresult = Core::ERROR_NONE;
83
-
84
- hresult = [&]() -> Core::hresult {
85
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
86
-
87
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
88
-
89
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
90
- ASSERT(implementation != nullptr);
91
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
92
-
93
- string _info{};
94
-
95
- bool result = implementation->Previous(_info);
96
-
97
- RPC::Data::Frame::Writer writer(message->Response().Writer());
98
- writer.Boolean(result);
99
- writer.Text(_info);
100
-
101
- return (Core::ERROR_NONE);
102
- } ();
103
-
104
- if (hresult != Core::ERROR_NONE) {
105
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 1, hresult);
106
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
107
- }
108
- },
109
-
110
- // (2) virtual void Reset(const uint32_t) = 0
111
- //
112
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
113
- Core::hresult hresult = Core::ERROR_NONE;
114
-
115
- hresult = [&]() -> Core::hresult {
116
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
117
-
118
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
119
-
120
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
121
- ASSERT(implementation != nullptr);
122
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
123
-
124
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
125
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
126
- const uint32_t _position = reader.Number<uint32_t>();
127
-
128
- implementation->Reset(_position);
129
-
130
- return (Core::ERROR_NONE);
131
- } ();
132
-
133
- if (hresult != Core::ERROR_NONE) {
134
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 2, hresult);
135
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
136
- }
137
- },
138
-
139
- // (3) virtual bool IsValid() const = 0
140
- //
141
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
142
- Core::hresult hresult = Core::ERROR_NONE;
143
-
144
- hresult = [&]() -> Core::hresult {
145
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
146
-
147
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
148
-
149
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
150
- ASSERT(implementation != nullptr);
151
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
152
-
153
- bool result = implementation->IsValid();
154
-
155
- RPC::Data::Frame::Writer writer(message->Response().Writer());
156
- writer.Boolean(result);
157
-
158
- return (Core::ERROR_NONE);
159
- } ();
160
-
161
- if (hresult != Core::ERROR_NONE) {
162
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 3, hresult);
163
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
164
- }
165
- },
166
-
167
- // (4) virtual uint32_t Count() const = 0
168
- //
169
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
170
- Core::hresult hresult = Core::ERROR_NONE;
171
-
172
- hresult = [&]() -> Core::hresult {
173
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
174
-
175
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
176
-
177
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
178
- ASSERT(implementation != nullptr);
179
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
180
-
181
- uint32_t result = implementation->Count();
182
-
183
- RPC::Data::Frame::Writer writer(message->Response().Writer());
184
- writer.Number<uint32_t>(result);
185
-
186
- return (Core::ERROR_NONE);
187
- } ();
188
-
189
- if (hresult != Core::ERROR_NONE) {
190
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 4, hresult);
191
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
192
- }
193
- },
194
-
195
- // (5) virtual string Current() const = 0
196
- //
197
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
198
- Core::hresult hresult = Core::ERROR_NONE;
199
-
200
- hresult = [&]() -> Core::hresult {
201
- using interface = RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>;
202
-
203
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
204
-
205
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
206
- ASSERT(implementation != nullptr);
207
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
208
-
209
- string result = implementation->Current();
210
-
211
- RPC::Data::Frame::Writer writer(message->Response().Writer());
212
- writer.Text(result);
213
-
214
- return (Core::ERROR_NONE);
215
- } ();
216
-
217
- if (hresult != Core::ERROR_NONE) {
218
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 5, hresult);
219
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
220
- }
221
- }
222
- , nullptr
223
- }; // RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods
224
-
225
- //
226
34
  // RPC::IIteratorTypeInstance_60eba5a793c685ea interface stub definitions
227
35
  //
228
36
  // Methods:
229
37
  // (0) virtual bool Next(uint32_t&) = 0
230
38
  // (1) virtual bool Previous(uint32_t&) = 0
@@ -411,206 +219,10 @@
411
219
  }
412
220
  , nullptr
413
221
  }; // RPCIteratorTypeInstance_60eba5a793c685eaStubMethods
414
222
 
415
223
  //
416
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface stub definitions
417
- //
418
- // Methods:
419
- // (0) virtual bool Next(RPC::Environment&) = 0
420
- // (1) virtual bool Previous(RPC::Environment&) = 0
421
- // (2) virtual void Reset(const uint32_t) = 0
422
- // (3) virtual bool IsValid() const = 0
423
- // (4) virtual uint32_t Count() const = 0
424
- // (5) virtual RPC::Environment Current() const = 0
425
- //
426
-
427
- static ProxyStub::MethodHandler RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods[] = {
428
- // (0) virtual bool Next(RPC::Environment&) = 0
429
- //
430
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
431
- Core::hresult hresult = Core::ERROR_NONE;
432
-
433
- hresult = [&]() -> Core::hresult {
434
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
435
-
436
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
437
-
438
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
439
- ASSERT(implementation != nullptr);
440
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
441
-
442
- RPC::Environment _info{};
443
-
444
- bool result = implementation->Next(_info);
445
-
446
- RPC::Data::Frame::Writer writer(message->Response().Writer());
447
- writer.Boolean(result);
448
- writer.Text(_info.Key);
449
- writer.Text(_info.Value);
450
- writer.Number<RPC::Environment::scope>(_info.Scope);
451
-
452
- return (Core::ERROR_NONE);
453
- } ();
454
-
455
- if (hresult != Core::ERROR_NONE) {
456
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 0, hresult);
457
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
458
- }
459
- },
460
-
461
- // (1) virtual bool Previous(RPC::Environment&) = 0
462
- //
463
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
464
- Core::hresult hresult = Core::ERROR_NONE;
465
-
466
- hresult = [&]() -> Core::hresult {
467
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
468
-
469
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
470
-
471
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
472
- ASSERT(implementation != nullptr);
473
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
474
-
475
- RPC::Environment _info{};
476
-
477
- bool result = implementation->Previous(_info);
478
-
479
- RPC::Data::Frame::Writer writer(message->Response().Writer());
480
- writer.Boolean(result);
481
- writer.Text(_info.Key);
482
- writer.Text(_info.Value);
483
- writer.Number<RPC::Environment::scope>(_info.Scope);
484
-
485
- return (Core::ERROR_NONE);
486
- } ();
487
-
488
- if (hresult != Core::ERROR_NONE) {
489
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 1, hresult);
490
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
491
- }
492
- },
493
-
494
- // (2) virtual void Reset(const uint32_t) = 0
495
- //
496
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
497
- Core::hresult hresult = Core::ERROR_NONE;
498
-
499
- hresult = [&]() -> Core::hresult {
500
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
501
-
502
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
503
-
504
- interface* implementation = reinterpret_cast<interface*>(message->Parameters().Implementation());
505
- ASSERT(implementation != nullptr);
506
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
507
-
508
- RPC::Data::Frame::Reader reader(message->Parameters().Reader());
509
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
510
- const uint32_t _position = reader.Number<uint32_t>();
511
-
512
- implementation->Reset(_position);
513
-
514
- return (Core::ERROR_NONE);
515
- } ();
516
-
517
- if (hresult != Core::ERROR_NONE) {
518
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 2, hresult);
519
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
520
- }
521
- },
522
-
523
- // (3) virtual bool IsValid() const = 0
524
- //
525
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
526
- Core::hresult hresult = Core::ERROR_NONE;
527
-
528
- hresult = [&]() -> Core::hresult {
529
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
530
-
531
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
532
-
533
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
534
- ASSERT(implementation != nullptr);
535
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
536
-
537
- bool result = implementation->IsValid();
538
-
539
- RPC::Data::Frame::Writer writer(message->Response().Writer());
540
- writer.Boolean(result);
541
-
542
- return (Core::ERROR_NONE);
543
- } ();
544
-
545
- if (hresult != Core::ERROR_NONE) {
546
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 3, hresult);
547
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
548
- }
549
- },
550
-
551
- // (4) virtual uint32_t Count() const = 0
552
- //
553
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
554
- Core::hresult hresult = Core::ERROR_NONE;
555
-
556
- hresult = [&]() -> Core::hresult {
557
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
558
-
559
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
560
-
561
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
562
- ASSERT(implementation != nullptr);
563
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
564
-
565
- uint32_t result = implementation->Count();
566
-
567
- RPC::Data::Frame::Writer writer(message->Response().Writer());
568
- writer.Number<uint32_t>(result);
569
-
570
- return (Core::ERROR_NONE);
571
- } ();
572
-
573
- if (hresult != Core::ERROR_NONE) {
574
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 4, hresult);
575
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
576
- }
577
- },
578
-
579
- // (5) virtual RPC::Environment Current() const = 0
580
- //
581
- [](Core::ProxyType<Core::IPCChannel>& channel, Core::ProxyType<RPC::InvokeMessage>& message) {
582
- Core::hresult hresult = Core::ERROR_NONE;
583
-
584
- hresult = [&]() -> Core::hresult {
585
- using interface = RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>;
586
-
587
- if (message->Parameters().IsValid() == false) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
588
-
589
- const interface* implementation = reinterpret_cast<const interface*>(message->Parameters().Implementation());
590
- ASSERT(implementation != nullptr);
591
- if (RPC::Administrator::Instance().IsValid(channel, RPC::instance_cast(implementation), interface::ID) == false) { return (COM_ERROR | Core::ERROR_NOT_EXIST); }
592
-
593
- RPC::Environment result = implementation->Current();
594
-
595
- RPC::Data::Frame::Writer writer(message->Response().Writer());
596
- writer.Text(result.Key);
597
- writer.Text(result.Value);
598
- writer.Number<RPC::Environment::scope>(result.Scope);
599
-
600
- return (Core::ERROR_NONE);
601
- } ();
602
-
603
- if (hresult != Core::ERROR_NONE) {
604
- fprintf(stderr, "COM-RPC stub 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 5, hresult);
605
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
606
- }
607
- }
608
- , nullptr
609
- }; // RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods
610
-
611
- //
612
224
  // Exchange::IValuePoint interface stub definitions
613
225
  //
614
226
  // Methods:
615
227
  // (0) virtual Core::hresult Register(Exchange::IValuePoint::INotification* const) = 0
616
228
  // (1) virtual Core::hresult Unregister(const Exchange::IValuePoint::INotification*) = 0
@@ -1346,199 +958,10 @@
1346
958
  // -----------------------------------------------------------------
1347
959
  // PROXIES
1348
960
  // -----------------------------------------------------------------
1349
961
 
1350
962
  //
1351
- // RPC::IIteratorTypeInstance_bd6e04b8d151c1f7 interface proxy definitions
1352
- //
1353
- // Methods:
1354
- // (0) virtual bool Next(string&) = 0
1355
- // (1) virtual bool Previous(string&) = 0
1356
- // (2) virtual void Reset(const uint32_t) = 0
1357
- // (3) virtual bool IsValid() const = 0
1358
- // (4) virtual uint32_t Count() const = 0
1359
- // (5) virtual string Current() const = 0
1360
- //
1361
-
1362
- class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>> {
1363
- public:
1364
- RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
1365
- : BaseClass(channel, implementation, otherSideInformed)
1366
- {
1367
- }
1368
-
1369
- bool Next(string& _info) override
1370
- {
1371
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
1372
-
1373
- bool result{};
1374
-
1375
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1376
- if (hresult == Core::ERROR_NONE) {
1377
- hresult = [&]() -> Core::hresult {
1378
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1379
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1380
- result = reader.Boolean();
1381
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1382
- const uint16_t _infoPeekedLen__ = reader.PeekNumber<uint16_t>();
1383
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _infoPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1384
- _info = reader.Text();
1385
-
1386
- return (Core::ERROR_NONE);
1387
- } ();
1388
- } else {
1389
- ASSERT((hresult & COM_ERROR) != 0);
1390
- }
1391
-
1392
- if ((hresult & COM_ERROR) != 0) {
1393
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 0, hresult);
1394
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1395
- }
1396
-
1397
- return (result);
1398
- }
1399
-
1400
- bool Previous(string& _info) override
1401
- {
1402
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
1403
-
1404
- bool result{};
1405
-
1406
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1407
- if (hresult == Core::ERROR_NONE) {
1408
- hresult = [&]() -> Core::hresult {
1409
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1410
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1411
- result = reader.Boolean();
1412
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1413
- const uint16_t _infoPeekedLen__ = reader.PeekNumber<uint16_t>();
1414
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _infoPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1415
- _info = reader.Text();
1416
-
1417
- return (Core::ERROR_NONE);
1418
- } ();
1419
- } else {
1420
- ASSERT((hresult & COM_ERROR) != 0);
1421
- }
1422
-
1423
- if ((hresult & COM_ERROR) != 0) {
1424
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 1, hresult);
1425
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1426
- }
1427
-
1428
- return (result);
1429
- }
1430
-
1431
- void Reset(const uint32_t _position) override
1432
- {
1433
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
1434
-
1435
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
1436
- writer.Number<uint32_t>(_position);
1437
-
1438
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1439
- if (hresult == Core::ERROR_NONE) {
1440
- hresult = [&]() -> Core::hresult {
1441
-
1442
- return (Core::ERROR_NONE);
1443
- } ();
1444
- } else {
1445
- ASSERT((hresult & COM_ERROR) != 0);
1446
- }
1447
-
1448
- if ((hresult & COM_ERROR) != 0) {
1449
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 2, hresult);
1450
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1451
- }
1452
- }
1453
-
1454
- bool IsValid() const override
1455
- {
1456
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
1457
-
1458
- bool result{};
1459
-
1460
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1461
- if (hresult == Core::ERROR_NONE) {
1462
- hresult = [&]() -> Core::hresult {
1463
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1464
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1465
- result = reader.Boolean();
1466
-
1467
- return (Core::ERROR_NONE);
1468
- } ();
1469
- } else {
1470
- ASSERT((hresult & COM_ERROR) != 0);
1471
- }
1472
-
1473
- if ((hresult & COM_ERROR) != 0) {
1474
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 3, hresult);
1475
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1476
- }
1477
-
1478
- return (result);
1479
- }
1480
-
1481
- uint32_t Count() const override
1482
- {
1483
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
1484
-
1485
- uint32_t result{};
1486
-
1487
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1488
- if (hresult == Core::ERROR_NONE) {
1489
- hresult = [&]() -> Core::hresult {
1490
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1491
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1492
- result = reader.Number<uint32_t>();
1493
-
1494
- return (Core::ERROR_NONE);
1495
- } ();
1496
- } else {
1497
- ASSERT((hresult & COM_ERROR) != 0);
1498
- }
1499
-
1500
- if ((hresult & COM_ERROR) != 0) {
1501
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 4, hresult);
1502
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1503
- }
1504
-
1505
- return (result);
1506
- }
1507
-
1508
- string Current() const override
1509
- {
1510
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1511
-
1512
- string result{};
1513
-
1514
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1515
- if (hresult == Core::ERROR_NONE) {
1516
- hresult = [&]() -> Core::hresult {
1517
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1518
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1519
- const uint16_t resultPeekedLen__ = reader.PeekNumber<uint16_t>();
1520
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + resultPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1521
- result = reader.Text();
1522
-
1523
- return (Core::ERROR_NONE);
1524
- } ();
1525
- } else {
1526
- ASSERT((hresult & COM_ERROR) != 0);
1527
- }
1528
-
1529
- if ((hresult & COM_ERROR) != 0) {
1530
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>::ID, 5, hresult);
1531
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1532
- }
1533
-
1534
- return (result);
1535
- }
1536
-
1537
- }; // class RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy
1538
-
1539
- //
1540
963
  // RPC::IIteratorTypeInstance_60eba5a793c685ea interface proxy definitions
1541
964
  //
1542
965
  // Methods:
1543
966
  // (0) virtual bool Next(uint32_t&) = 0
1544
967
  // (1) virtual bool Previous(uint32_t&) = 0
@@ -1718,217 +1141,10 @@
1718
1141
  }
1719
1142
 
1720
1143
  }; // class RPCIteratorTypeInstance_60eba5a793c685eaProxy
1721
1144
 
1722
1145
  //
1723
- // RPC::IIteratorTypeInstance_195e88cf7f955a2e interface proxy definitions
1724
- //
1725
- // Methods:
1726
- // (0) virtual bool Next(RPC::Environment&) = 0
1727
- // (1) virtual bool Previous(RPC::Environment&) = 0
1728
- // (2) virtual void Reset(const uint32_t) = 0
1729
- // (3) virtual bool IsValid() const = 0
1730
- // (4) virtual uint32_t Count() const = 0
1731
- // (5) virtual RPC::Environment Current() const = 0
1732
- //
1733
-
1734
- class RPCIteratorTypeInstance_195e88cf7f955a2eProxy final : public ProxyStub::UnknownProxyType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>> {
1735
- public:
1736
- RPCIteratorTypeInstance_195e88cf7f955a2eProxy(const Core::ProxyType<Core::IPCChannel>& channel, const Core::instance_id implementation, const bool otherSideInformed)
1737
- : BaseClass(channel, implementation, otherSideInformed)
1738
- {
1739
- }
1740
-
1741
- bool Next(RPC::Environment& _info) override
1742
- {
1743
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(0));
1744
-
1745
- bool result{};
1746
-
1747
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1748
- if (hresult == Core::ERROR_NONE) {
1749
- hresult = [&]() -> Core::hresult {
1750
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1751
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1752
- result = reader.Boolean();
1753
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1754
- const uint16_t _info_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
1755
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1756
- _info.Key = reader.Text();
1757
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1758
- const uint16_t _info_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
1759
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1760
- _info.Value = reader.Text();
1761
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1762
- _info.Scope = reader.Number<RPC::Environment::scope>();
1763
-
1764
- return (Core::ERROR_NONE);
1765
- } ();
1766
- } else {
1767
- ASSERT((hresult & COM_ERROR) != 0);
1768
- }
1769
-
1770
- if ((hresult & COM_ERROR) != 0) {
1771
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 0, hresult);
1772
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1773
- }
1774
-
1775
- return (result);
1776
- }
1777
-
1778
- bool Previous(RPC::Environment& _info) override
1779
- {
1780
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(1));
1781
-
1782
- bool result{};
1783
-
1784
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1785
- if (hresult == Core::ERROR_NONE) {
1786
- hresult = [&]() -> Core::hresult {
1787
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1788
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1789
- result = reader.Boolean();
1790
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1791
- const uint16_t _info_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
1792
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1793
- _info.Key = reader.Text();
1794
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1795
- const uint16_t _info_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
1796
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + _info_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1797
- _info.Value = reader.Text();
1798
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1799
- _info.Scope = reader.Number<RPC::Environment::scope>();
1800
-
1801
- return (Core::ERROR_NONE);
1802
- } ();
1803
- } else {
1804
- ASSERT((hresult & COM_ERROR) != 0);
1805
- }
1806
-
1807
- if ((hresult & COM_ERROR) != 0) {
1808
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 1, hresult);
1809
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1810
- }
1811
-
1812
- return (result);
1813
- }
1814
-
1815
- void Reset(const uint32_t _position) override
1816
- {
1817
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(2));
1818
-
1819
- RPC::Data::Frame::Writer writer(message->Parameters().Writer());
1820
- writer.Number<uint32_t>(_position);
1821
-
1822
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1823
- if (hresult == Core::ERROR_NONE) {
1824
- hresult = [&]() -> Core::hresult {
1825
-
1826
- return (Core::ERROR_NONE);
1827
- } ();
1828
- } else {
1829
- ASSERT((hresult & COM_ERROR) != 0);
1830
- }
1831
-
1832
- if ((hresult & COM_ERROR) != 0) {
1833
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 2, hresult);
1834
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1835
- }
1836
- }
1837
-
1838
- bool IsValid() const override
1839
- {
1840
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(3));
1841
-
1842
- bool result{};
1843
-
1844
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1845
- if (hresult == Core::ERROR_NONE) {
1846
- hresult = [&]() -> Core::hresult {
1847
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1848
- if (reader.Length() < (1)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1849
- result = reader.Boolean();
1850
-
1851
- return (Core::ERROR_NONE);
1852
- } ();
1853
- } else {
1854
- ASSERT((hresult & COM_ERROR) != 0);
1855
- }
1856
-
1857
- if ((hresult & COM_ERROR) != 0) {
1858
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 3, hresult);
1859
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1860
- }
1861
-
1862
- return (result);
1863
- }
1864
-
1865
- uint32_t Count() const override
1866
- {
1867
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(4));
1868
-
1869
- uint32_t result{};
1870
-
1871
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1872
- if (hresult == Core::ERROR_NONE) {
1873
- hresult = [&]() -> Core::hresult {
1874
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1875
- if (reader.Length() < (Core::RealSize<uint32_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1876
- result = reader.Number<uint32_t>();
1877
-
1878
- return (Core::ERROR_NONE);
1879
- } ();
1880
- } else {
1881
- ASSERT((hresult & COM_ERROR) != 0);
1882
- }
1883
-
1884
- if ((hresult & COM_ERROR) != 0) {
1885
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 4, hresult);
1886
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1887
- }
1888
-
1889
- return (result);
1890
- }
1891
-
1892
- RPC::Environment Current() const override
1893
- {
1894
- IPCMessage message(static_cast<const ProxyStub::UnknownProxy&>(*this).Message(5));
1895
-
1896
- RPC::Environment result{};
1897
-
1898
- Core::hresult hresult = static_cast<const ProxyStub::UnknownProxy&>(*this).Invoke(message);
1899
- if (hresult == Core::ERROR_NONE) {
1900
- hresult = [&]() -> Core::hresult {
1901
- RPC::Data::Frame::Reader reader(message->Response().Reader());
1902
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1903
- const uint16_t result_KeyPeekedLen__ = reader.PeekNumber<uint16_t>();
1904
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + result_KeyPeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1905
- result.Key = reader.Text();
1906
- if (reader.Length() < (Core::RealSize<uint16_t>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1907
- const uint16_t result_ValuePeekedLen__ = reader.PeekNumber<uint16_t>();
1908
- if (reader.Length() < (static_cast<uint32_t>(Core::RealSize<uint16_t>()) + result_ValuePeekedLen__)) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1909
- result.Value = reader.Text();
1910
- if (reader.Length() < (Core::RealSize<RPC::Environment::scope>())) { return (COM_ERROR | Core::ERROR_READ_ERROR); }
1911
- result.Scope = reader.Number<RPC::Environment::scope>();
1912
-
1913
- return (Core::ERROR_NONE);
1914
- } ();
1915
- } else {
1916
- ASSERT((hresult & COM_ERROR) != 0);
1917
- }
1918
-
1919
- if ((hresult & COM_ERROR) != 0) {
1920
- fprintf(stderr, "COM-RPC call 0x%08x(%u) failed: 0x%08x\n", RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>::ID, 5, hresult);
1921
- TRACE_L1("Warning: This COM-RPC failure will not propagate!");
1922
- }
1923
-
1924
- return (result);
1925
- }
1926
-
1927
- }; // class RPCIteratorTypeInstance_195e88cf7f955a2eProxy
1928
-
1929
- //
1930
1146
  // Exchange::IValuePoint interface proxy definitions
1931
1147
  //
1932
1148
  // Methods:
1933
1149
  // (0) virtual Core::hresult Register(Exchange::IValuePoint::INotification* const) = 0
1934
1150
  // (1) virtual Core::hresult Unregister(const Exchange::IValuePoint::INotification*) = 0
@@ -2692,13 +1908,11 @@
2692
1908
  // -----------------------------------------------------------------
2693
1909
  // REGISTRATION
2694
1910
  // -----------------------------------------------------------------
2695
1911
  namespace {
2696
1912
 
2697
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7StubMethods> RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub;
2698
1913
  typedef ProxyStub::UnknownStubType<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaStubMethods> RPCIteratorTypeInstance_60eba5a793c685eaStub;
2699
- typedef ProxyStub::UnknownStubType<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eStubMethods> RPCIteratorTypeInstance_195e88cf7f955a2eStub;
2700
1914
  typedef ProxyStub::UnknownStubType<Exchange::IValuePoint, ExchangeValuePointStubMethods> ExchangeValuePointStub;
2701
1915
  typedef ProxyStub::UnknownStubType<Exchange::IValuePoint::ICatalog, ExchangeValuePointCatalogStubMethods> ExchangeValuePointCatalogStub;
2702
1916
  typedef ProxyStub::UnknownStubType<Exchange::IValuePoint::ICatalog::INotification, ExchangeValuePointCatalogNotificationStubMethods> ExchangeValuePointCatalogNotificationStub;
2703
1917
  typedef ProxyStub::UnknownStubType<Exchange::IValuePoint::INotification, ExchangeValuePointNotificationStubMethods> ExchangeValuePointNotificationStub;
2704
1918
 
@@ -2706,23 +1920,19 @@
2706
1920
  public:
2707
1921
  Instantiation()
2708
1922
  {
2709
1923
  const RPC::SecureProxyStubType security = static_cast<RPC::SecureProxyStubType>(static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_SECURE) | static_cast<std::underlying_type<RPC::SecureProxyStubType>::type>(RPC::SecureProxyStubType::PROXYSTUBS_SECURITY_COHERENT));
2710
1924
 
2711
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>, RPCIteratorTypeInstance_bd6e04b8d151c1f7Proxy, RPCIteratorTypeInstance_bd6e04b8d151c1f7Stub>(security);
2712
1925
  RPC::Administrator::Instance().Announce<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>, RPCIteratorTypeInstance_60eba5a793c685eaProxy, RPCIteratorTypeInstance_60eba5a793c685eaStub>(security);
2713
- RPC::Administrator::Instance().Announce<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>, RPCIteratorTypeInstance_195e88cf7f955a2eProxy, RPCIteratorTypeInstance_195e88cf7f955a2eStub>(security);
2714
1926
  RPC::Administrator::Instance().Announce<Exchange::IValuePoint, ExchangeValuePointProxy, ExchangeValuePointStub>(security);
2715
1927
  RPC::Administrator::Instance().Announce<Exchange::IValuePoint::ICatalog, ExchangeValuePointCatalogProxy, ExchangeValuePointCatalogStub>(security);
2716
1928
  RPC::Administrator::Instance().Announce<Exchange::IValuePoint::ICatalog::INotification, ExchangeValuePointCatalogNotificationProxy, ExchangeValuePointCatalogNotificationStub>(security);
2717
1929
  RPC::Administrator::Instance().Announce<Exchange::IValuePoint::INotification, ExchangeValuePointNotificationProxy, ExchangeValuePointNotificationStub>(security);
2718
1930
  }
2719
1931
  ~Instantiation()
2720
1932
  {
2721
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>>();
2722
1933
  RPC::Administrator::Instance().Recall<RPC::IIteratorType<uint32_t, RPC::ID_VALUEITERATOR>>();
2723
- RPC::Administrator::Instance().Recall<RPC::IIteratorType<RPC::Environment, RPC::ID_ENVIRONMENTITERATOR>>();
2724
1934
  RPC::Administrator::Instance().Recall<Exchange::IValuePoint>();
2725
1935
  RPC::Administrator::Instance().Recall<Exchange::IValuePoint::ICatalog>();
2726
1936
  RPC::Administrator::Instance().Recall<Exchange::IValuePoint::ICatalog::INotification>();
2727
1937
  RPC::Administrator::Instance().Recall<Exchange::IValuePoint::INotification>();
2728
1938
  }