Marked_Default_Qos.h

Go to the documentation of this file.
00001 /*
00002  *
00003  *
00004  * Distributed under the OpenDDS License.
00005  * See: http://www.opendds.org/license.html
00006  */
00007 
00008 #ifndef OPENDDS_DCPS_MARKED_DEFAULT_QOS_H
00009 #define OPENDDS_DCPS_MARKED_DEFAULT_QOS_H
00010 
00011 #include "dds/DdsDcpsInfrastructureC.h"
00012 
00013 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00014 #pragma once
00015 #endif /* ACE_LACKS_PRAGMA_ONCE */
00016 
00017 namespace OpenDDS {
00018 namespace DCPS {
00019 
00020 /**
00021 * This class defines the marked default qos values and provides accessors
00022 * for them. The marked default qos contains a special value that indicates
00023 * the default qos obtained via get_default_XXX_qos() call with the entity
00024 * factory should be used. These values are used when the user wants to use
00025 * the default qos provided by the entity factory.
00026 */
00027 class OpenDDS_Dcps_Export Marked_Default_Qos {
00028 public:
00029   static DDS::DomainParticipantQos  marked_default_DomainParticipantQos();
00030   static DDS::TopicQos              marked_default_TopicQos();
00031   static DDS::DataWriterQos         marked_default_DataWriterQos();
00032   static DDS::PublisherQos          marked_default_PublisherQos();
00033   static DDS::DataReaderQos         marked_default_DataReaderQos();
00034   static DDS::SubscriberQos         marked_default_SubscriberQos();
00035   static DDS::DataWriterQos         marked_default_DataWriter_Use_TopicQos();
00036   static DDS::DataReaderQos         marked_default_DataReader_Use_TopicQos();
00037 };
00038 
00039 // These values ARE NOT the default value but is an indicator to use the default
00040 // qos via get_default_XXX_qos() call.
00041 #define PARTICIPANT_QOS_DEFAULT     \
00042   OpenDDS::DCPS::Marked_Default_Qos::marked_default_DomainParticipantQos ()
00043 #define TOPIC_QOS_DEFAULT           \
00044   OpenDDS::DCPS::Marked_Default_Qos::marked_default_TopicQos ()
00045 #define PUBLISHER_QOS_DEFAULT       \
00046   OpenDDS::DCPS::Marked_Default_Qos::marked_default_PublisherQos ()
00047 #define SUBSCRIBER_QOS_DEFAULT      \
00048   OpenDDS::DCPS::Marked_Default_Qos::marked_default_SubscriberQos ()
00049 #define DATAWRITER_QOS_DEFAULT      \
00050   OpenDDS::DCPS::Marked_Default_Qos::marked_default_DataWriterQos ()
00051 #define DATAREADER_QOS_DEFAULT      \
00052   OpenDDS::DCPS::Marked_Default_Qos::marked_default_DataReaderQos ()
00053 #define DATAWRITER_QOS_USE_TOPIC_QOS    \
00054   OpenDDS::DCPS::Marked_Default_Qos::marked_default_DataWriter_Use_TopicQos ()
00055 #define DATAREADER_QOS_USE_TOPIC_QOS    \
00056   OpenDDS::DCPS::Marked_Default_Qos::marked_default_DataReader_Use_TopicQos ()
00057 
00058 } // namespace DCPS
00059 } // namespace OpenDDS
00060 
00061 #endif /* OPENDDS_DCPS_MARKED_DEFAULT_QOS_H */

Generated on Fri Feb 12 20:05:23 2016 for OpenDDS by  doxygen 1.4.7