MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / createParticipant

Method createParticipant

tools/modeling/codegen/model/Delegate.cpp:21–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21DDS::DomainParticipant*
22OpenDDS::Model::Delegate::createParticipant(
23 unsigned long domain,
24 const DDS::DomainParticipantQos& participantQos,
25 DDS::StatusMask mask,
26 const OPENDDS_STRING& transportConfig)
27{
28 DDS::DomainParticipantFactory_var pfact = TheParticipantFactory;
29 DDS::DomainParticipant_var participant
30 = pfact->create_participant(
31 domain,
32 participantQos,
33 DDS::DomainParticipantListener::_nil(),
34 mask
35 );
36 // If the modeler specified a transport config, bind to it
37 if (!transportConfig.empty()) {
38 try {
39 TheTransportRegistry->bind_config(transportConfig, participant);
40 } catch (OpenDDS::DCPS::Transport::Exception&) {
41 pfact->delete_participant(participant);
42 return 0;
43 }
44 }
45 return participant;
46}
47
48DDS::Topic*
49OpenDDS::Model::Delegate::createTopic(

Callers 1

participantMethod · 0.45

Calls 4

delete_participantMethod · 0.80
create_participantMethod · 0.45
emptyMethod · 0.45
bind_configMethod · 0.45

Tested by

no test coverage detected