ENTITY_FACTORY
-
The ENTITY_FACTORY policy controls whether entities are automatically enabled when they are created. Below is the IDL related to the Entity Factory QoS policy:
struct EntityFactoryQosPolicy {
boolean autoenable_created_entities;
};
-
This policy can be applied to entities that serve as factories for other entities and controls whether or not entities created by those factories are automatically enabled upon creation. This policy can be applied to the domain participant factory (as a factory for domain participants), domain participant (as a factory for publishers, subscribers, and topics), publisher (as a factory for data writers), or subscriber (as a factory for data readers). The default value for the
autoenable_created_entities
member is
true
, indicating that entities are automatically enabled when they are created. Applications that wish to explicitly enable entities some time after they are created should set the value of the
autoenable_created_entities
member of this policy to
false
and apply the policy to the appropriate factory entities. The application must then manually enable the entity by calling the entity’s
enable()
operation.
-
The value of this policy may be changed at any time. Changes to this policy affect only entities created after the change.