Marked_Default_Qos.cpp

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 #include "DCPS/DdsDcps_pch.h" //Only the _pch include should start with DCPS/
00009 #include "Marked_Default_Qos.h"
00010 #include "Service_Participant.h"
00011 
00012 OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
00013 
00014 namespace OpenDDS {
00015 namespace DCPS {
00016 
00017 int const INVALID_ENUM_VALUE = 999;
00018 
00019 DDS::DomainParticipantQos
00020 Marked_Default_Qos::marked_default_DomainParticipantQos()
00021 {
00022   DDS::DomainParticipantQos qos =
00023     TheServiceParticipant->initial_DomainParticipantQos();
00024   void* const mem = &qos.entity_factory.autoenable_created_entities;
00025   *static_cast<char*>(mem) = 3;
00026   return qos;
00027 }
00028 
00029 DDS::TopicQos
00030 Marked_Default_Qos::marked_default_TopicQos()
00031 {
00032   DDS::TopicQos qos = TheServiceParticipant->initial_TopicQos();
00033   qos.liveliness.kind
00034   = static_cast<DDS::LivelinessQosPolicyKind>(
00035       INVALID_ENUM_VALUE);
00036   return qos;
00037 }
00038 
00039 DDS::DataWriterQos
00040 Marked_Default_Qos::marked_default_DataWriterQos()
00041 {
00042   DDS::DataWriterQos qos = TheServiceParticipant->initial_DataWriterQos();
00043   qos.liveliness.kind
00044   = static_cast<DDS::LivelinessQosPolicyKind>(
00045       INVALID_ENUM_VALUE);
00046   return qos;
00047 }
00048 
00049 DDS::PublisherQos
00050 Marked_Default_Qos::marked_default_PublisherQos()
00051 {
00052   DDS::PublisherQos qos = TheServiceParticipant->initial_PublisherQos();
00053   qos.presentation.access_scope
00054   = static_cast<DDS::PresentationQosPolicyAccessScopeKind>(
00055       INVALID_ENUM_VALUE);
00056   return qos;
00057 }
00058 
00059 DDS::DataReaderQos
00060 Marked_Default_Qos::marked_default_DataReaderQos()
00061 {
00062   DDS::DataReaderQos qos = TheServiceParticipant->initial_DataReaderQos();
00063   qos.liveliness.kind
00064   = static_cast<DDS::LivelinessQosPolicyKind>(
00065       INVALID_ENUM_VALUE);
00066   return qos;
00067 }
00068 
00069 DDS::SubscriberQos
00070 Marked_Default_Qos::marked_default_SubscriberQos()
00071 {
00072   DDS::SubscriberQos qos = TheServiceParticipant->initial_SubscriberQos();
00073   qos.presentation.access_scope
00074   = static_cast<DDS::PresentationQosPolicyAccessScopeKind>(
00075       INVALID_ENUM_VALUE);
00076   return qos;
00077 }
00078 
00079 DDS::DataWriterQos
00080 Marked_Default_Qos::marked_default_DataWriter_Use_TopicQos()
00081 {
00082   DDS::DataWriterQos qos = TheServiceParticipant->initial_DataWriterQos();
00083   qos.durability.kind
00084   = static_cast<DDS::DurabilityQosPolicyKind>(
00085       INVALID_ENUM_VALUE);
00086   return qos;
00087 }
00088 
00089 DDS::DataReaderQos
00090 Marked_Default_Qos::marked_default_DataReader_Use_TopicQos()
00091 {
00092   DDS::DataReaderQos qos = TheServiceParticipant->initial_DataReaderQos();
00093   qos.durability.kind
00094   = static_cast<DDS::DurabilityQosPolicyKind>(
00095       INVALID_ENUM_VALUE);
00096   return qos;
00097 }
00098 
00099 } // namespace DCPS
00100 } // namespace OpenDDS
00101 
00102 OPENDDS_END_VERSIONED_NAMESPACE_DECL
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1