Skip to main content

Module factory

Module factory 

Source
Expand description

DomainParticipantFactory — Singleton fuer das Anlegen von Participants (Spec OMG DDS 1.4 §2.2.2.2.1).

Die Spec verlangt: “The DomainParticipantFactory is a singleton. The get_instance() method returns a reference to the only instance of the factory.”

Singleton via OnceLock. create_participant(domain_id, qos) legt einen neuen DomainParticipant an, startet eine Live- Runtime und gibt einen clone-baren Handle zurueck. Daneben gibt es create_participant_offline(domain_id, qos) fuer Skeleton- Tests ohne Netzwerk und create_participant_with_config fuer Tests mit angepasster RuntimeConfig.

Structs§

DomainParticipantFactory
Factory-Singleton.
DomainParticipantFactoryQos
QoS-Policy fuer den DomainParticipantFactory selbst (Spec §2.2.2.2.2.6 DomainParticipantFactoryQos). Aktuell ein einziges Feld autoenable_created_entities (Default true); spaetere Spec-Erweiterungen werden hier addiert.