This repository was archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmultitopic.cpp
More file actions
621 lines (516 loc) · 22 KB
/
multitopic.cpp
File metadata and controls
621 lines (516 loc) · 22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
/*
* OpenSplice DDS
*
* This software and documentation are Copyright 2006 to 2009 PrismTech
* Limited and its licensees. All rights reserved. See file:
*
* $OSPL_HOME/LICENSE
*
* for full copyright notice and license terms.
*
*/
/************************************************************************
* LOGICAL_NAME: multitopic.cpp
* FUNCTION: OpenSplice Tutorial example code.
* MODULE: Tutorial for the C++ programming language.
* DATE june 2007.
************************************************************************
*
* This file contains the headers for all operations required to simulate
* the MultiTopic behavior.
*
***/
#include "multitopic.h"
#include "CheckStatus.h"
#include <sstream>
DDS::DataReaderListenerImpl::DataReaderListenerImpl() : previous(0x80000000) {
nameFinderParams.length(1);
}
void DDS::DataReaderListenerImpl::on_requested_deadline_missed (
DDS::DataReader_ptr reader,
const DDS::RequestedDeadlineMissedStatus & status
) THROW_ORB_EXCEPTIONS { }
void DDS::DataReaderListenerImpl::on_requested_incompatible_qos (
DDS::DataReader_ptr reader,
const DDS::RequestedIncompatibleQosStatus & status
) THROW_ORB_EXCEPTIONS { }
void DDS::DataReaderListenerImpl::on_sample_rejected (
DDS::DataReader_ptr reader,
const DDS::SampleRejectedStatus & status
) THROW_ORB_EXCEPTIONS { }
void DDS::DataReaderListenerImpl::on_liveliness_changed (
DDS::DataReader_ptr reader,
const DDS::LivelinessChangedStatus & status
) THROW_ORB_EXCEPTIONS { }
void DDS::DataReaderListenerImpl::on_subscription_matched (
DDS::DataReader_ptr reader,
const DDS::SubscriptionMatchedStatus & status
) THROW_ORB_EXCEPTIONS { }
void DDS::DataReaderListenerImpl::on_sample_lost (
DDS::DataReader_ptr reader,
const DDS::SampleLostStatus & status
) THROW_ORB_EXCEPTIONS { }
void DDS::DataReaderListenerImpl::on_data_available (
DDS::DataReader_ptr reader
) THROW_ORB_EXCEPTIONS {
Chat::ChatMessageSeq msgSeq;
Chat::NameServiceSeq nameSeq;
DDS::SampleInfoSeq infoSeq1;
DDS::SampleInfoSeq infoSeq2;
DDS::ReturnCode_t status;
previous = 0x80000000;
/* Take all messages. */
status = chatMessageDR->take(
msgSeq,
infoSeq1,
DDS::LENGTH_UNLIMITED,
DDS::ANY_SAMPLE_STATE,
DDS::ANY_VIEW_STATE,
DDS::ANY_INSTANCE_STATE);
checkStatus(status, "Chat::ChatMessageDataReader::take");
/* For each message, extract the key-field and find the corresponding name. */
for (ULong i = 0; i < msgSeq.length(); i++)
{
if (infoSeq1[i].valid_data)
{
Chat::NamedMessage joinedSample;
/* Find the corresponding named message. */
if (msgSeq[i].userID != previous)
{
ostringstream numberStr;
previous = msgSeq[i].userID;
numberStr << previous;
nameFinderParams[0UL] = numberStr.str().c_str();
status = nameFinder->set_query_parameters(nameFinderParams);
checkStatus(status, "DDS::QueryCondition::set_query_parameters");
status = nameServiceDR->read_w_condition(
nameSeq,
infoSeq2,
DDS::LENGTH_UNLIMITED,
nameFinder.in());
checkStatus(status, "Chat::NameServiceDataReader::read_w_condition");
/* Extract Name (there should only be one result). */
if (status == DDS::RETCODE_NO_DATA)
{
ostringstream msg;
msg << "Name not found!! id = " << previous;
userName = msg.str();
}
else
{
userName = nameSeq[0].name;
}
/* Release the name sample again. */
status = nameServiceDR->return_loan(nameSeq, infoSeq2);
checkStatus(status, "Chat::NameServiceDataReader::return_loan");
}
/* Write merged Topic with userName instead of userID. */
joinedSample.userName = userName.c_str();
joinedSample.userID = msgSeq[i].userID;
joinedSample.index = msgSeq[i].index;
joinedSample.content = msgSeq[i].content;
status = namedMessageDW->write(joinedSample, DDS::HANDLE_NIL);
checkStatus(status, "Chat::NamedMessageDataWriter::write");
}
}
status = chatMessageDR->return_loan(msgSeq, infoSeq1);
checkStatus(status, "Chat::ChatMessageDataReader::return_loan");
}
DDS::ExtDomainParticipant_ptr DDS::ExtDomainParticipantImpl::_narrow(DDS::DomainParticipant_ptr obj) {
return new DDS::ExtDomainParticipantImpl(obj);
}
DDS::DomainParticipant_ptr DDS::ExtDomainParticipantImpl::in() {
return realParticipant.in();
}
DDS::ExtDomainParticipantImpl::ExtDomainParticipantImpl(DDS::DomainParticipant_ptr participant) {
realParticipant = DDS::DomainParticipant::_duplicate(participant);
}
DDS::Topic_ptr
DDS::ExtDomainParticipantImpl::create_simulated_multitopic (
const char * name,
const char * type_name,
const char * subscription_expression,
const DDS::StringSeq & expression_parameters)
{
/* Type-specific DDS entities */
Chat::ChatMessageDataReader_ptr chatMessageDR;
Chat::NameServiceDataReader_ptr nameServiceDR;
Chat::NamedMessageDataWriter_ptr namedMessageDW;
/* Query related stuff */
DDS::QueryCondition_ptr nameFinder;
/* QosPolicy holders */
DDS::TopicQos namedMessageQos;
DDS::SubscriberQos sub_qos;
DDS::PublisherQos pub_qos;
/* Others */
DDS::DataReader_ptr parentReader;
DDS::DataWriter_ptr parentWriter;
char *nameFinderExpr;
const char *partitionName = "ChatRoom";
DDS::ReturnCode_t status;
/* Lookup both components that constitute the multi-topic. */
chatMessageTopic = realParticipant->find_topic("Chat_ChatMessage", DDS::DURATION_INFINITE);
checkHandle(chatMessageTopic.in(), "DDS::DomainParticipant::find_topic (Chat_ChatMessage)");
nameServiceTopic = realParticipant->find_topic("Chat_NameService", DDS::DURATION_INFINITE);
checkHandle(nameServiceTopic.in(), "DDS::DomainParticipant::find_topic (Chat_NameService)");
/* Create a ContentFilteredTopic to filter out our own ChatMessages. */
filteredMessageTopic = realParticipant->create_contentfilteredtopic(
"Chat_FilteredMessage",
chatMessageTopic.in(),
"userID <> %0",
expression_parameters);
checkHandle(filteredMessageTopic.in(), "DDS::DomainParticipant::create_contentfilteredtopic");
/* Adapt the default SubscriberQos to read from the "ChatRoom" Partition. */
status = realParticipant->get_default_subscriber_qos (sub_qos);
checkStatus(status, "DDS::DomainParticipant::get_default_subscriber_qos");
sub_qos.partition.name.length(1);
sub_qos.partition.name[0] = partitionName;
/* Create a private Subscriber for the multitopic simulator. */
multiSub = realParticipant->create_subscriber(sub_qos, NULL, DDS::STATUS_MASK_NONE);
checkHandle(multiSub.in(), "DDS::DomainParticipant::create_subscriber (for multitopic)");
/* Create a DataReader for the FilteredMessage Topic (using the appropriate QoS). */
parentReader = multiSub->create_datareader(
filteredMessageTopic.in(),
DATAREADER_QOS_USE_TOPIC_QOS,
NULL,
DDS::STATUS_MASK_NONE);
checkHandle(parentReader, "DDS::Subscriber::create_datareader (ChatMessage)");
/* Narrow the abstract parent into its typed representative. */
chatMessageDR = Chat::ChatMessageDataReader::_narrow(parentReader);
checkHandle(chatMessageDR, "Chat::ChatMessageDataReader::_narrow");
/* Allocate the DataReaderListener Implementation. */
msgListener = new DDS::DataReaderListenerImpl();
checkHandle(msgListener, "new DDS::DataReaderListenerImpl");
/* Attach the DataReaderListener to the DataReader, only enabling the data_available event. */
status = chatMessageDR->set_listener(msgListener, DDS::DATA_AVAILABLE_STATUS);
checkStatus(status, "DDS::DataReader_set_listener");
/* Create a DataReader for the nameService Topic (using the appropriate QoS). */
parentReader = multiSub->create_datareader(
nameServiceTopic.in(),
DATAREADER_QOS_USE_TOPIC_QOS,
NULL,
DDS::STATUS_MASK_NONE);
checkHandle(parentReader, "DDS::Subscriber::create_datareader (NameService)");
/* Narrow the abstract parent into its typed representative. */
nameServiceDR = Chat::NameServiceDataReader::_narrow(parentReader);
checkHandle(nameServiceDR, "Chat::NameServiceDataReader::_narrow");
/* Define the SQL expression (using a parameterized value). */
nameFinderExpr = "userID = %0";
/* Create a QueryCondition to only read corresponding nameService information by key-value. */
nameFinder = nameServiceDR->create_querycondition(
DDS::ANY_SAMPLE_STATE,
DDS::ANY_VIEW_STATE,
DDS::ANY_INSTANCE_STATE,
nameFinderExpr,
expression_parameters);
checkHandle(nameFinder, "DDS::DataReader::create_querycondition (nameFinder)");
/* Create the Topic that simulates the multi-topic (use Qos from chatMessage).*/
status = chatMessageTopic->get_qos(namedMessageQos);
checkStatus(status, "DDS::Topic::get_qos");
/* Create the NamedMessage Topic whose samples simulate the MultiTopic */
namedMessageTopic = realParticipant->create_topic(
"Chat_NamedMessage",
type_name,
namedMessageQos,
NULL,
DDS::STATUS_MASK_NONE);
checkHandle(namedMessageTopic.in(), "DDS::DomainParticipant::create_topic (NamedMessage)");
/* Adapt the default PublisherQos to write into the "ChatRoom" Partition. */
status = realParticipant->get_default_publisher_qos(pub_qos);
checkStatus(status, "DDS::DomainParticipant::get_default_publisher_qos");
pub_qos.partition.name.length(1);
pub_qos.partition.name[0] = partitionName;
/* Create a private Publisher for the multitopic simulator. */
multiPub = realParticipant->create_publisher(pub_qos, NULL, DDS::STATUS_MASK_NONE);
checkHandle(multiPub.in(), "DDS::DomainParticipant::create_publisher (for multitopic)");
/* Create a DataWriter for the multitopic. */
parentWriter = multiPub->create_datawriter(
namedMessageTopic.in(),
DATAWRITER_QOS_USE_TOPIC_QOS,
NULL,
DDS::STATUS_MASK_NONE);
checkHandle(parentWriter, "DDS::Publisher::create_datawriter (NamedMessage)");
/* Narrow the abstract parent into its typed representative. */
namedMessageDW = Chat::NamedMessageDataWriter::_narrow(parentWriter);
checkHandle(namedMessageDW, "Chat::NamedMessageDataWriter::_narrow");
/* Store the relevant Entities in our Listener. */
msgListener->chatMessageDR = chatMessageDR;
msgListener->nameServiceDR = nameServiceDR;
msgListener->namedMessageDW = namedMessageDW;
msgListener->nameFinder = nameFinder;
/* Return the simulated Multitopic. */
return DDS::Topic::_duplicate( namedMessageTopic.in() );
}
DDS::ReturnCode_t
DDS::ExtDomainParticipantImpl::delete_simulated_multitopic(
DDS::TopicDescription_ptr smt
)
{
DDS::ReturnCode_t status;
/* Remove the DataWriter */
status = multiPub->delete_datawriter(msgListener->namedMessageDW.in());
checkStatus(status, "DDS::Publisher::delete_datawriter");
/* Remove the Publisher. */
status = realParticipant->delete_publisher(multiPub.in());
checkStatus(status, "DDS::DomainParticipant::delete_publisher");
/* Remove the QueryCondition. */
status = msgListener->nameServiceDR->delete_readcondition(
msgListener->nameFinder.in());
checkStatus(status, "DDS::DataReader::delete_readcondition");
/* Remove the DataReaders. */
status = multiSub->delete_datareader(msgListener->nameServiceDR.in());
checkStatus(status, "DDS::Subscriber::delete_datareader");
status = multiSub->delete_datareader(msgListener->chatMessageDR.in());
checkStatus(status, "DDS::Subscriber::delete_datareader");
/* Remove the DataReaderListener. */
DDS::release(msgListener);
/* Remove the Subscriber. */
status = realParticipant->delete_subscriber(multiSub.in());
checkStatus(status, "DDS::DomainParticipant::delete_subscriber");
/* Remove the ContentFilteredTopic. */
status = realParticipant->delete_contentfilteredtopic(filteredMessageTopic.in());
checkStatus(status, "DDS::DomainParticipant::delete_contentfilteredtopic");
/* Remove all other topics. */
status = realParticipant->delete_topic(namedMessageTopic.in());
checkStatus(status, "DDS::DomainParticipant::delete_topic (namedMessageTopic)");
status = realParticipant->delete_topic(nameServiceTopic.in());
checkStatus(status, "DDS::DomainParticipant::delete_topic (nameServiceTopic)");
status = realParticipant->delete_topic(chatMessageTopic.in());
checkStatus(status, "DDS::DomainParticipant::delete_topic (chatMessageTopic)");
return status;
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::enable (
) THROW_ORB_EXCEPTIONS {
return realParticipant->enable();
}
DDS::StatusCondition_ptr DDS::ExtDomainParticipantImpl::get_statuscondition (
) THROW_ORB_EXCEPTIONS {
return realParticipant->get_statuscondition();
}
DDS::StatusMask DDS::ExtDomainParticipantImpl::get_status_changes (
) THROW_ORB_EXCEPTIONS {
return realParticipant->get_status_changes();
}
DDS::InstanceHandle_t DDS::ExtDomainParticipantImpl::get_instance_handle (
) THROW_ORB_EXCEPTIONS {
return realParticipant->get_instance_handle();
}
DDS::Publisher_ptr DDS::ExtDomainParticipantImpl::create_publisher (
const DDS::PublisherQos & qos,
DDS::PublisherListener_ptr a_listener,
DDS::StatusMask mask
) THROW_ORB_EXCEPTIONS {
return realParticipant->create_publisher(qos, a_listener, mask);
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::delete_publisher (
DDS::Publisher_ptr p
) THROW_ORB_EXCEPTIONS {
return realParticipant->delete_publisher(p);
}
DDS::Subscriber_ptr DDS::ExtDomainParticipantImpl::create_subscriber (
const DDS::SubscriberQos & qos,
DDS::SubscriberListener_ptr a_listener,
DDS::StatusMask mask
) THROW_ORB_EXCEPTIONS {
return realParticipant->create_subscriber(qos, a_listener, mask);
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::delete_subscriber (
DDS::Subscriber_ptr s
) THROW_ORB_EXCEPTIONS {
return realParticipant->delete_subscriber(s);
}
DDS::Subscriber_ptr DDS::ExtDomainParticipantImpl::get_builtin_subscriber (
) THROW_ORB_EXCEPTIONS {
return realParticipant->get_builtin_subscriber();
}
DDS::Topic_ptr DDS::ExtDomainParticipantImpl::create_topic (
const char * topic_name,
const char * type_name,
const DDS::TopicQos & qos,
DDS::TopicListener_ptr a_listener,
DDS::StatusMask mask
) THROW_ORB_EXCEPTIONS {
return realParticipant->create_topic(topic_name, type_name, qos, a_listener, mask);
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::delete_topic (
DDS::Topic_ptr a_topic
) THROW_ORB_EXCEPTIONS {
return realParticipant->delete_topic(a_topic);
}
DDS::Topic_ptr DDS::ExtDomainParticipantImpl::find_topic (
const char * topic_name,
const DDS::Duration_t & timeout
) THROW_ORB_EXCEPTIONS {
return realParticipant->find_topic(topic_name, timeout);
}
DDS::TopicDescription_ptr DDS::ExtDomainParticipantImpl::lookup_topicdescription (
const char * name
) THROW_ORB_EXCEPTIONS {
return realParticipant->lookup_topicdescription(name);
}
DDS::ContentFilteredTopic_ptr DDS::ExtDomainParticipantImpl::create_contentfilteredtopic (
const char * name,
DDS::Topic_ptr related_topic,
const char * filter_expression,
const DDS::StringSeq & filter_parameters
) THROW_ORB_EXCEPTIONS {
return realParticipant->create_contentfilteredtopic(
name,
related_topic,
filter_expression,
filter_parameters);
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::delete_contentfilteredtopic (
DDS::ContentFilteredTopic_ptr a_contentfilteredtopic
) THROW_ORB_EXCEPTIONS {
return realParticipant->delete_contentfilteredtopic(a_contentfilteredtopic);
}
DDS::MultiTopic_ptr DDS::ExtDomainParticipantImpl::create_multitopic (
const char * name,
const char * type_name,
const char * subscription_expression,
const DDS::StringSeq & expression_parameters
) THROW_ORB_EXCEPTIONS {
return realParticipant->create_multitopic(
name,
type_name,
subscription_expression,
expression_parameters);
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::delete_multitopic (
DDS::MultiTopic_ptr a_multitopic
) THROW_ORB_EXCEPTIONS {
return realParticipant->delete_multitopic(a_multitopic);
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::delete_contained_entities (
) THROW_ORB_EXCEPTIONS {
return realParticipant->delete_contained_entities();
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::set_qos (
const DDS::DomainParticipantQos & qos
) THROW_ORB_EXCEPTIONS {
return realParticipant->set_qos(qos);
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::get_qos (
DDS::DomainParticipantQos & qos
) THROW_ORB_EXCEPTIONS {
return realParticipant->get_qos(qos);
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::set_listener (
DDS::DomainParticipantListener_ptr a_listener,
DDS::StatusMask mask
) THROW_ORB_EXCEPTIONS {
return realParticipant->set_listener(a_listener, mask);
}
DDS::DomainParticipantListener_ptr DDS::ExtDomainParticipantImpl::get_listener (
) THROW_ORB_EXCEPTIONS {
return realParticipant->get_listener();
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::ignore_participant (
DDS::InstanceHandle_t handle
) THROW_ORB_EXCEPTIONS {
return realParticipant->ignore_participant(handle);
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::ignore_topic (
DDS::InstanceHandle_t handle
) THROW_ORB_EXCEPTIONS {
return realParticipant->ignore_topic(handle);
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::ignore_publication (
DDS::InstanceHandle_t handle
) THROW_ORB_EXCEPTIONS {
return realParticipant->ignore_publication(handle);
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::ignore_subscription (
DDS::InstanceHandle_t handle
) THROW_ORB_EXCEPTIONS {
return realParticipant->ignore_subscription(handle);
}
char * DDS::ExtDomainParticipantImpl::get_domain_id (
) THROW_ORB_EXCEPTIONS {
return realParticipant->get_domain_id();
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::assert_liveliness (
) THROW_ORB_EXCEPTIONS {
return realParticipant->assert_liveliness();
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::set_default_publisher_qos (
const DDS::PublisherQos & qos
) THROW_ORB_EXCEPTIONS {
return realParticipant->set_default_publisher_qos(qos);
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::get_default_publisher_qos (
DDS::PublisherQos & qos
) THROW_ORB_EXCEPTIONS {
return realParticipant->get_default_publisher_qos(qos);
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::set_default_subscriber_qos (
const DDS::SubscriberQos & qos
) THROW_ORB_EXCEPTIONS {
return realParticipant->set_default_subscriber_qos(qos);
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::get_default_subscriber_qos (
DDS::SubscriberQos & qos
) THROW_ORB_EXCEPTIONS {
return realParticipant->get_default_subscriber_qos(qos);
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::set_default_topic_qos (
const DDS::TopicQos & qos
) THROW_ORB_EXCEPTIONS {
return realParticipant->set_default_topic_qos(qos);
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::get_default_topic_qos (
DDS::TopicQos & qos
) THROW_ORB_EXCEPTIONS {
return realParticipant->get_default_topic_qos(qos);
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::get_discovered_participants (
DDS::InstanceHandleSeq & participant_handles
) THROW_ORB_EXCEPTIONS {
return realParticipant->get_discovered_participants(participant_handles);
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::get_discovered_participant_data (
DDS::ParticipantBuiltinTopicData & participant_data,
DDS::InstanceHandle_t participant_handle
) THROW_ORB_EXCEPTIONS {
return realParticipant->get_discovered_participant_data(participant_data, participant_handle);
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::get_discovered_topics (
DDS::InstanceHandleSeq & topic_handles
) THROW_ORB_EXCEPTIONS {
return realParticipant->get_discovered_topics(topic_handles);
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::get_discovered_topic_data (
DDS::TopicBuiltinTopicData & topic_data,
DDS::InstanceHandle_t topic_handle
) THROW_ORB_EXCEPTIONS {
return realParticipant->get_discovered_topic_data(topic_data, topic_handle);
}
DDS::Boolean DDS::ExtDomainParticipantImpl::contains_entity (
DDS::InstanceHandle_t a_handle
) THROW_ORB_EXCEPTIONS {
return realParticipant->contains_entity(a_handle);
}
DDS::ReturnCode_t DDS::ExtDomainParticipantImpl::get_current_time (
DDS::Time_t & current_time
) THROW_ORB_EXCEPTIONS {
return realParticipant->get_current_time(current_time);
}
DDS::ExtDomainParticipant_var::~ExtDomainParticipant_var() {
DDS::release(ptr_);
}
DDS::ExtDomainParticipant_var & DDS::ExtDomainParticipant_var::operator=(
const DDS::ExtDomainParticipant_ptr ep
) {
ptr_ = ep;
return *this;
}
DDS::ExtDomainParticipant_ptr DDS::ExtDomainParticipant_var::operator->() const {
return ptr_;
}
DDS::ExtDomainParticipant_var::operator const DDS::DomainParticipant_ptr() const {
return ptr_->in();
}
DDS::DomainParticipant_ptr DDS::ExtDomainParticipant_var::in() const {
return ptr_->in();
}