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

Function createParticipant

tests/DCPS/Reliability/Boilerplate.cpp:15–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace examples { namespace boilerplate {
14
15DDS::DomainParticipant_var
16createParticipant(DDS::DomainParticipantFactory_var dpf)
17{
18 // Create DomainParticipant
19 DDS::DomainParticipant_var participant =
20 dpf->create_participant(42, // made-up domain ID
21 PARTICIPANT_QOS_DEFAULT,
22 0, // no listener
23 OpenDDS::DCPS::DEFAULT_STATUS_MASK);
24
25 // Check for failure
26 if (!participant) {
27 throw std::string("failed to create domain participant");
28 }
29 return participant;
30}
31
32DDS::Topic_var
33createTopic(DDS::DomainParticipant_var participant)

Callers 2

ACE_TMAINFunction · 0.50
ACE_TMAINFunction · 0.50

Calls 1

create_participantMethod · 0.45

Tested by

no test coverage detected