RTI Connext DDS Micro
Version 2.4.8
|
DDS_DomainParticipantFactory entity and associated elements More...
Data Structures | |
struct | DDS_DomainParticipantFactoryQos |
<<cert>> QoS policies supported by a DDS_DomainParticipantFactory. More... |
Macros | |
#define | DDS_DomainParticipantFactoryQos_INITIALIZER |
<<cert>> Initializer for new QoS instances. | |
#define | DDS_TheParticipantFactory DDS_DomainParticipantFactory_get_instance() |
<<cert>> Alias for singleton participant factory. |
Typedefs | |
typedef struct DDS_DomainParticipantFactoryImpl | DDS_DomainParticipantFactory |
<<singleton>> <<interface>> <<cert>> Allows creation and destruction of DDS_DomainParticipant objects. |
Variables | |
struct DDS_DomainParticipantFactoryQos | DDS_PARTICIPANT_FACTORY_QOS_DEFAULT |
<<cert>> Special value for creating domain participant with default QoS. | |
struct DDS_DomainParticipantQos | DDS_PARTICIPANT_QOS_DEFAULT |
<<cert>> Special value for creating domain participant with default QoS. |
DDS_DomainParticipantFactory entity and associated elements
#define DDS_DomainParticipantFactoryQos_INITIALIZER |
<<cert>> Initializer for new QoS instances.
DDS_DomainParticipantFactoryQos instances stored on the stack should be initialized with this value before they are passed to any function . This step ensures that those contained QoS policies that use dynamic memory are properly initialized. This does not allocate memory. The simplest way to create a new QoS structure is to initialize it on the stack at the time of its creation.
#define DDS_TheParticipantFactory DDS_DomainParticipantFactory_get_instance() |
<<cert>> Alias for singleton participant factory.
typedef struct DDS_DomainParticipantFactoryImpl DDS_DomainParticipantFactory |
<<singleton>> <<interface>> <<cert>> Allows creation and destruction of DDS_DomainParticipant objects.
The sole purpose of this class is to allow the creation and destruction of DDS_DomainParticipant objects. This class itself is a <<singleton>>, and accessed via the get_instance() function , and destroyed with finalize_instance() function . A single application can participate in multiple domains by instantiating multiple DDS_DomainParticipant objects. An application may even instantiate multiple participants in the same domain. Participants in the same domain exchange data in the same way regardless of whether they are in the same application or different applications or on the same node or different nodes; their location is transparent. There are two important caveats:
DDS_DomainParticipantFactory* DDS_DomainParticipantFactory_get_instance | ( | void | ) |
<<cert>> Gets the singleton instance of this class.
DDS_ReturnCode_t DDS_DomainParticipantFactory_finalize_instance | ( | void | ) |
<<eXtension>> Destroys the singleton instance of this class.
Only necessary to explicitly reclaim resources used by the participant factory singleton. Note that on many OSes, these resources are automatically reclaimed by the OS when the program terminates. Some memory checker tools still flag these as unreclaimed however. So this function provides a way to clean up memory used by the participant factory.
DDS_ReturnCode_t DDS_DomainParticipantFactory_set_default_participant_qos | ( | DDS_DomainParticipantFactory * | self, |
const struct DDS_DomainParticipantQos * | qos | ||
) |
Sets the default DDS_DomainParticipantQos values for this domain participant factory.
This function may potentially allocate memory depending on the sequences contained in some QoS policies.
self | <<in>> Cannot be NULL. |
qos | <<inout>> Qos to be used by the DDS_DomainParticipant. The special value DDS_PARTICIPANT_QOS_DEFAULT may be passed as qos to indicate that the default QoS should be reset back to the initial values the factory would used if DDS_DomainParticipantFactory_set_default_participant_qos had never been called. Cannot be NULL. |
DDS_ReturnCode_t DDS_DomainParticipantFactory_get_default_participant_qos | ( | DDS_DomainParticipantFactory * | self, |
struct DDS_DomainParticipantQos * | qos | ||
) |
Initializes the DDS_DomainParticipantQos instance with default values.
The retrieved qos
will match the set of values specified on the last successful call to DDS_DomainParticipantFactory_set_default_participant_qos, or else, if the call was never made, the default values listed in DDS_DomainParticipantQos. This function may potentially allocate memory depending on the sequences contained in some QoS policies.
DDS_DomainParticipant* DDS_DomainParticipantFactory_create_participant | ( | DDS_DomainParticipantFactory * | self, |
DDS_DomainId_t | domainId, | ||
const struct DDS_DomainParticipantQos * | qos, | ||
const struct DDS_DomainParticipantListener * | listener, | ||
DDS_StatusMask | mask | ||
) |
<<cert>> Creates a new DDS_DomainParticipant object.
listener
is specified, none of the listener callback functions can be NULL. self | <<in>> Cannot be NULL. |
domainId | <<in>> ID of the domain that the application intends to join. [range] [>=0], and does not violate guidelines stated in DDS_RtpsWellKnownPorts_t. |
qos | <<in>> the domain participant's QoS. The special value DDS_PARTICIPANT_QOS_DEFAULT can be used to indicate that the DDS_DomainParticipant should be created with the default DDS_DomainParticipantQos set in the DDS_DomainParticipantFactory. Cannot be NULL. |
listener | <<in>> the domain participant's listener. |
mask | <<in>> Changes of communication status to be invoked on the listener. |
DDS_ReturnCode_t DDS_DomainParticipantFactory_delete_participant | ( | DDS_DomainParticipantFactory * | self, |
DDS_DomainParticipant * | a_participant | ||
) |
Deletes an existing DDS_DomainParticipant.
self | <<in>> Cannot be NULL. |
a_participant | <<in>> DDS_DomainParticipant to be deleted. |
DDS_DomainParticipant* DDS_DomainParticipantFactory_lookup_participant | ( | DDS_DomainParticipantFactory * | self, |
DDS_DomainId_t | domainId | ||
) |
<<cert>> Locates an existing DDS_DomainParticipant.
If no such DDS_DomainParticipant exists, the operation will return NULL value. If multiple DDS_DomainParticipant entities belonging to that domainId exist, then the operation will return one of them. It is not specified which one.
DDS_ReturnCode_t DDS_DomainParticipantFactory_get_qos | ( | DDS_DomainParticipantFactory * | self, |
struct DDS_DomainParticipantFactoryQos * | qos | ||
) |
<<cert>> Gets the value for participant factory QoS.
DDS_ReturnCode_t DDS_DomainParticipantFactory_set_qos | ( | DDS_DomainParticipantFactory * | self, |
const struct DDS_DomainParticipantFactoryQos * | qos | ||
) |
<<cert>> Sets the value for a participant factory QoS.
The DDS_DomainParticipantFactoryQos::entity_factory can be changed. The other policies are immutable. Note that despite having QoS, the DDS_DomainParticipantFactory is not an DDS_Entity. Note that this function may cause RTI Connext Micro to free and reallocate memory, depending on the QoS policies that are changed.
self | <<in>> Cannot be NULL. |
qos | <<in>> Set of policies to be applied to DDS_DomainParticipantFactory. Policies must be consistent. Immutable policies can only be changed before calling any other RTI Connext Micro functions except for DDS_DomainParticipantFactory_get_qos Cannot be NULL. |
RT_Registry_T* DDS_DomainParticipantFactory_get_registry | ( | DDS_DomainParticipantFactory * | self | ) |
struct DDS_DomainParticipantFactoryQos DDS_PARTICIPANT_FACTORY_QOS_DEFAULT |
<<cert>> Special value for creating domain participant with default QoS.
When used in DDS_DomainParticipantFactory_create_participant, this special value is used to indicate that the DDS_DomainParticipant should be created with the default DDS_DomainParticipant QoS.
struct DDS_DomainParticipantQos DDS_PARTICIPANT_QOS_DEFAULT |
<<cert>> Special value for creating domain participant with default QoS.
When used in DDS_DomainParticipantFactory_create_participant, this special value is used to indicate that the DDS_DomainParticipant should be created with the default DDS_DomainParticipant QoS.