OpenDDS  Snapshot(2023/04/28-20:55)
Marked_Default_Qos.h
Go to the documentation of this file.
1 /*
2  *
3  *
4  * Distributed under the OpenDDS License.
5  * See: http://www.opendds.org/license.html
6  */
7 
8 #ifndef OPENDDS_DCPS_MARKED_DEFAULT_QOS_H
9 #define OPENDDS_DCPS_MARKED_DEFAULT_QOS_H
10 
11 #include "dds/DdsDcpsInfrastructureC.h"
12 
13 #if !defined (ACE_LACKS_PRAGMA_ONCE)
14 #pragma once
15 #endif /* ACE_LACKS_PRAGMA_ONCE */
16 
18 
19 namespace OpenDDS {
20 namespace DCPS {
21 
22 /**
23 * This class defines the marked default qos values and provides accessors
24 * for them. The marked default qos contains a special value that indicates
25 * the default qos obtained via get_default_XXX_qos() call with the entity
26 * factory should be used. These values are used when the user wants to use
27 * the default qos provided by the entity factory.
28 */
30 public:
31  static DDS::DomainParticipantQos marked_default_DomainParticipantQos();
32  static DDS::TopicQos marked_default_TopicQos();
33  static DDS::DataWriterQos marked_default_DataWriterQos();
34  static DDS::PublisherQos marked_default_PublisherQos();
35  static DDS::DataReaderQos marked_default_DataReaderQos();
36  static DDS::SubscriberQos marked_default_SubscriberQos();
37  static DDS::DataWriterQos marked_default_DataWriter_Use_TopicQos();
38  static DDS::DataReaderQos marked_default_DataReader_Use_TopicQos();
39 };
40 
41 // These values ARE NOT the default value but is an indicator to use the default
42 // qos via get_default_XXX_qos() call.
43 #define PARTICIPANT_QOS_DEFAULT \
44  OpenDDS::DCPS::Marked_Default_Qos::marked_default_DomainParticipantQos ()
45 #define TOPIC_QOS_DEFAULT \
46  OpenDDS::DCPS::Marked_Default_Qos::marked_default_TopicQos ()
47 #define PUBLISHER_QOS_DEFAULT \
48  OpenDDS::DCPS::Marked_Default_Qos::marked_default_PublisherQos ()
49 #define SUBSCRIBER_QOS_DEFAULT \
50  OpenDDS::DCPS::Marked_Default_Qos::marked_default_SubscriberQos ()
51 #define DATAWRITER_QOS_DEFAULT \
52  OpenDDS::DCPS::Marked_Default_Qos::marked_default_DataWriterQos ()
53 #define DATAREADER_QOS_DEFAULT \
54  OpenDDS::DCPS::Marked_Default_Qos::marked_default_DataReaderQos ()
55 #define DATAWRITER_QOS_USE_TOPIC_QOS \
56  OpenDDS::DCPS::Marked_Default_Qos::marked_default_DataWriter_Use_TopicQos ()
57 #define DATAREADER_QOS_USE_TOPIC_QOS \
58  OpenDDS::DCPS::Marked_Default_Qos::marked_default_DataReader_Use_TopicQos ()
59 
60 } // namespace DCPS
61 } // namespace OpenDDS
62 
64 
65 #endif /* OPENDDS_DCPS_MARKED_DEFAULT_QOS_H */
#define OpenDDS_Dcps_Export
Definition: dcps_export.h:24
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28