OpenDDS
Snapshot(2023/04/07-19:43)
|
Implements the OpenDDS::DCPS::DomainParticipantFactory interfaces. More...
#include <DomainParticipantFactoryImpl.h>
Private Attributes | |
DDS::DomainParticipantFactoryQos | qos_ |
DDS::DomainParticipantQos | default_participant_qos_ |
The default qos value of DomainParticipant. More... | |
DPMap | participants_ |
The collection of domain participants. More... | |
ACE_Recursive_Thread_Mutex | participants_protector_ |
Protect the participant collection. More... | |
InstanceHandleGenerator | participant_handles_ |
Implements the OpenDDS::DCPS::DomainParticipantFactory interfaces.
This class acts as factory of the DomainParticipant.
See the DDS specification, OMG formal/2015-04-10, for a description of the interface this class is implementing.
Definition at line 41 of file DomainParticipantFactoryImpl.h.
OpenDDS::DCPS::DomainParticipantFactoryImpl::DomainParticipantFactoryImpl | ( | ) |
Definition at line 26 of file DomainParticipantFactoryImpl.cpp.
|
virtual |
Definition at line 32 of file DomainParticipantFactoryImpl.cpp.
References ACE_DEBUG, OpenDDS::DCPS::DCPS_debug_level, and LM_DEBUG.
|
virtual |
Definition at line 42 of file DomainParticipantFactoryImpl.cpp.
References OpenDDS::DCPS::RcHandle< T >::_retn(), ACE_ERROR, ACE_GUARD_RETURN, ACE_TEXT(), ACE_TEXT_ALWAYS_CHAR, DDS::EntityFactoryQosPolicy::autoenable_created_entities, ACE_String_Base< char >::c_str(), OpenDDS::DCPS::Qos_Helper::consistent(), OpenDDS::DCPS::DCPS_debug_level, DDS::DomainParticipantFactoryQos::entity_factory, get_default_participant_qos(), OpenDDS::DCPS::RcHandle< T >::in(), LM_ERROR, OPENDDS_STRING, participant_handles_, PARTICIPANT_QOS_DEFAULT, participants_, participants_protector_, qos_, OpenDDS::DCPS::ref(), DDS::RETCODE_OK, TheServiceParticipant, TheTransportRegistry, and OpenDDS::DCPS::Qos_Helper::valid().
DDS::ReturnCode_t OpenDDS::DCPS::DomainParticipantFactoryImpl::delete_all_participants | ( | ) |
Definition at line 326 of file DomainParticipantFactoryImpl.cpp.
References ACE_ERROR, ACE_GUARD_RETURN, copy(), OpenDDS::DCPS::DomainParticipantImpl::delete_contained_entities(), delete_participant(), LM_NOTICE, OpenDDS::DCPS::log_level, OpenDDS::DCPS::LogLevel::Notice, participants(), participants_, participants_protector_, DDS::RETCODE_ERROR, DDS::RETCODE_OK, DDS::RETCODE_OUT_OF_RESOURCES, and OpenDDS::DCPS::retcode_to_string().
|
virtual |
Definition at line 125 of file DomainParticipantFactoryImpl.cpp.
References ACE_ERROR, ACE_GUARD_RETURN, ACE_TEXT(), OpenDDS::DCPS::LogGuid::c_str(), OpenDDS::DCPS::DCPS_debug_level, OpenDDS::DCPS::DomainParticipantImpl::delete_contained_entities(), OpenDDS::DCPS::DomainParticipantImpl::get_domain_id(), OpenDDS::DCPS::DomainParticipantImpl::get_id(), OpenDDS::DCPS::DomainParticipantImpl::is_clean(), CORBA::is_nil(), LM_ERROR, LM_NOTICE, OpenDDS::DCPS::log_level, OpenDDS::DCPS::TransportConfig::name(), OpenDDS::DCPS::LogLevel::Notice, participants_, participants_protector_, OpenDDS::DCPS::rchandle_from(), DDS::RETCODE_BAD_PARAMETER, DDS::RETCODE_ERROR, DDS::RETCODE_OK, DDS::RETCODE_PRECONDITION_NOT_MET, TheServiceParticipant, and TheTransportRegistry.
Referenced by delete_all_participants().
|
virtual |
Definition at line 282 of file DomainParticipantFactoryImpl.cpp.
References default_participant_qos_, and DDS::RETCODE_OK.
Referenced by create_participant().
|
virtual |
Implements DDS::DomainParticipantFactory.
Definition at line 290 of file DomainParticipantFactoryImpl.cpp.
References TheParticipantFactory.
|
virtual |
Definition at line 311 of file DomainParticipantFactoryImpl.cpp.
References qos_, and DDS::RETCODE_OK.
|
virtual |
Definition at line 238 of file DomainParticipantFactoryImpl.cpp.
References ACE_DEBUG, ACE_GUARD_RETURN, ACE_TEXT(), OpenDDS::DCPS::DCPS_debug_level, OpenDDS::DCPS::find(), LM_DEBUG, participants_, and participants_protector_.
typedef OpenDDS::DCPS::DomainParticipantFactoryImpl::OPENDDS_MAP | ( | DDS::DomainId_t | , |
DPSet | |||
) |
typedef OpenDDS::DCPS::DomainParticipantFactoryImpl::OPENDDS_SET | ( | RcHandle< DomainParticipantImpl > | ) |
size_t OpenDDS::DCPS::DomainParticipantFactoryImpl::participant_count | ( | ) | const |
Definition at line 375 of file DomainParticipantFactoryImpl.cpp.
References ACE_GUARD_RETURN, OPENDDS_END_VERSIONED_NAMESPACE_DECL, participants_, and participants_protector_.
DomainParticipantFactoryImpl::DPMap OpenDDS::DCPS::DomainParticipantFactoryImpl::participants | ( | ) | const |
Make a copy of the participants map for reading.
Definition at line 319 of file DomainParticipantFactoryImpl.cpp.
References ACE_GUARD_RETURN, participants_, and participants_protector_.
Referenced by delete_all_participants(), and OpenDDS::DCPS::SPMonitorImpl::report().
|
virtual |
Definition at line 268 of file DomainParticipantFactoryImpl.cpp.
References OpenDDS::DCPS::Qos_Helper::consistent(), default_participant_qos_, DDS::RETCODE_INCONSISTENT_POLICY, DDS::RETCODE_OK, and OpenDDS::DCPS::Qos_Helper::valid().
|
virtual |
Definition at line 296 of file DomainParticipantFactoryImpl.cpp.
References OpenDDS::DCPS::Qos_Helper::changeable(), OpenDDS::DCPS::Qos_Helper::consistent(), qos_, DDS::RETCODE_INCONSISTENT_POLICY, DDS::RETCODE_OK, and OpenDDS::DCPS::Qos_Helper::valid().
|
private |
The default qos value of DomainParticipant.
Definition at line 89 of file DomainParticipantFactoryImpl.h.
Referenced by get_default_participant_qos(), and set_default_participant_qos().
|
private |
Instance handle generators for non-repo backed entities (i.e. subscribers and publishers).
Definition at line 99 of file DomainParticipantFactoryImpl.h.
Referenced by create_participant().
|
private |
The collection of domain participants.
Definition at line 92 of file DomainParticipantFactoryImpl.h.
Referenced by create_participant(), delete_all_participants(), delete_participant(), lookup_participant(), participant_count(), and participants().
|
mutableprivate |
Protect the participant collection.
Definition at line 95 of file DomainParticipantFactoryImpl.h.
Referenced by create_participant(), delete_all_participants(), delete_participant(), lookup_participant(), participant_count(), and participants().
|
private |
Definition at line 86 of file DomainParticipantFactoryImpl.h.
Referenced by create_participant(), get_qos(), and set_qos().