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 namespace OpenDDS {
00013 namespace DCPS {
00014 
00015 int const INVALID_ENUM_VALUE = 999;
00016 
00017 DDS::DomainParticipantQos
00018 Marked_Default_Qos::marked_default_DomainParticipantQos()
00019 {
00020   DDS::DomainParticipantQos qos;
00021   DDS::DomainParticipantFactory_var factory = TheParticipantFactory;
00022   factory->get_default_participant_qos(qos);
00023   return qos;
00024 }
00025 
00026 DDS::TopicQos
00027 Marked_Default_Qos::marked_default_TopicQos()
00028 {
00029   DDS::TopicQos qos = TheServiceParticipant->initial_TopicQos();
00030   qos.liveliness.kind
00031   = static_cast<DDS::LivelinessQosPolicyKind>(
00032       INVALID_ENUM_VALUE);
00033   return qos;
00034 }
00035 
00036 DDS::DataWriterQos
00037 Marked_Default_Qos::marked_default_DataWriterQos()
00038 {
00039   DDS::DataWriterQos qos = TheServiceParticipant->initial_DataWriterQos();
00040   qos.liveliness.kind
00041   = static_cast<DDS::LivelinessQosPolicyKind>(
00042       INVALID_ENUM_VALUE);
00043   return qos;
00044 }
00045 
00046 DDS::PublisherQos
00047 Marked_Default_Qos::marked_default_PublisherQos()
00048 {
00049   DDS::PublisherQos qos = TheServiceParticipant->initial_PublisherQos();
00050   qos.presentation.access_scope
00051   = static_cast<DDS::PresentationQosPolicyAccessScopeKind>(
00052       INVALID_ENUM_VALUE);
00053   return qos;
00054 }
00055 
00056 DDS::DataReaderQos
00057 Marked_Default_Qos::marked_default_DataReaderQos()
00058 {
00059   DDS::DataReaderQos qos = TheServiceParticipant->initial_DataReaderQos();
00060   qos.liveliness.kind
00061   = static_cast<DDS::LivelinessQosPolicyKind>(
00062       INVALID_ENUM_VALUE);
00063   return qos;
00064 }
00065 
00066 DDS::SubscriberQos
00067 Marked_Default_Qos::marked_default_SubscriberQos()
00068 {
00069   DDS::SubscriberQos qos = TheServiceParticipant->initial_SubscriberQos();
00070   qos.presentation.access_scope
00071   = static_cast<DDS::PresentationQosPolicyAccessScopeKind>(
00072       INVALID_ENUM_VALUE);
00073   return qos;
00074 }
00075 
00076 DDS::DataWriterQos
00077 Marked_Default_Qos::marked_default_DataWriter_Use_TopicQos()
00078 {
00079   DDS::DataWriterQos qos = TheServiceParticipant->initial_DataWriterQos();
00080   qos.durability.kind
00081   = static_cast<DDS::DurabilityQosPolicyKind>(
00082       INVALID_ENUM_VALUE);
00083   return qos;
00084 }
00085 
00086 DDS::DataReaderQos
00087 Marked_Default_Qos::marked_default_DataReader_Use_TopicQos()
00088 {
00089   DDS::DataReaderQos qos = TheServiceParticipant->initial_DataReaderQos();
00090   qos.durability.kind
00091   = static_cast<DDS::DurabilityQosPolicyKind>(
00092       INVALID_ENUM_VALUE);
00093   return qos;
00094 }
00095 
00096 } // namespace DCPS
00097 } // namespace OpenDDS

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