.. _dds_layers_subscription_subscriber: Subscriber ========== The ``Subscriber`` acts on behalf of one or several :ref:`dds_layers_subscription_datareader` objects. It serves as a container that allows grouping different DataReader objects to manage the unprocessed callbacks through an optional :ref:`dds_layers_subscription_subscriberqos`. DataReader objects that belong to the same Subscriber do not have any other relation among each and act independently. Specifically, a Subscriber can host DataReader objects for different :ref:`dds_layers_topic` and data types. .. _dds_layers_subscription_subscriberqos: SubscriberQos ------------- ``SubscriberQos`` controls the behavior of the :ref:`dds_layers_subscription_subscriber`. Internally it contains the following :ref:`dds_layers_infrastructure_policies` objects: * ``entity_factory_qos`` as :ref:`entityfactoryqospolicy` Defines if the Publisher will automatically enable created subentities or not. Example ^^^^^^^ .. literalinclude:: ../../../code/policies_examples/main.cpp :language: c++ :dedent: 8 :start-after: // DDS_SUBSCRIBER_QOS :end-before: //! DDS_SUBSCRIBER_QOS