OpenDDS::FaceTSS::config::QosSettings Class Reference

#include <QosSettings.h>

Collaboration diagram for OpenDDS::FaceTSS::config::QosSettings:
Collaboration graph
[legend]

List of all members.

Public Types

enum  QosLevel { publisher, subscriber, datawriter, datareader }

Public Member Functions

 QosSettings ()
int set_qos (QosLevel level, const char *name, const char *value)
void apply_to (DDS::PublisherQos &target) const
void apply_to (DDS::SubscriberQos &target) const
void apply_to (DDS::DataWriterQos &target) const
void apply_to (DDS::DataReaderQos &target) const
DDS::PublisherQospublisher_qos ()
DDS::SubscriberQossubscriber_qos ()
DDS::DataWriterQosdatawriter_qos ()
DDS::DataReaderQosdatareader_qos ()

Private Member Functions

int set_qos (DDS::PublisherQos &target, const char *name, const char *value)
int set_qos (DDS::SubscriberQos &target, const char *name, const char *value)
int set_qos (DDS::DataWriterQos &target, const char *name, const char *value)
int set_qos (DDS::DataReaderQos &target, const char *name, const char *value)

Private Attributes

DDS::PublisherQos publisher_qos_
DDS::SubscriberQos subscriber_qos_
DDS::DataWriterQos datawriter_qos_
DDS::DataReaderQos datareader_qos_

Detailed Description

Definition at line 13 of file QosSettings.h.


Member Enumeration Documentation

Enumerator:
publisher 
subscriber 
datawriter 
datareader 

Definition at line 17 of file QosSettings.h.

00017                   {
00018       publisher,
00019       subscriber,
00020       datawriter,
00021       datareader
00022     };


Constructor & Destructor Documentation

OpenDDS::FaceTSS::config::QosSettings::QosSettings (  ) 

Definition at line 10 of file QosSettings.cpp.

00010                          :
00011   publisher_qos_(TheServiceParticipant->initial_PublisherQos())
00012 , subscriber_qos_(TheServiceParticipant->initial_SubscriberQos())
00013 , datawriter_qos_(TheServiceParticipant->initial_DataWriterQos())
00014 , datareader_qos_(TheServiceParticipant->initial_DataReaderQos())
00015 {
00016 
00017 }


Member Function Documentation

void OpenDDS::FaceTSS::config::QosSettings::apply_to ( DDS::DataReaderQos target  )  const

Definition at line 38 of file QosSettings.cpp.

References datareader_qos_.

00039 {
00040   target = datareader_qos_;
00041 }

void OpenDDS::FaceTSS::config::QosSettings::apply_to ( DDS::DataWriterQos target  )  const

Definition at line 32 of file QosSettings.cpp.

References datawriter_qos_.

00033 {
00034   target = datawriter_qos_;
00035 }

void OpenDDS::FaceTSS::config::QosSettings::apply_to ( DDS::SubscriberQos target  )  const

Definition at line 26 of file QosSettings.cpp.

References subscriber_qos_.

00027 {
00028   target = subscriber_qos_;
00029 }

void OpenDDS::FaceTSS::config::QosSettings::apply_to ( DDS::PublisherQos target  )  const

Definition at line 20 of file QosSettings.cpp.

References publisher_qos_.

00021 {
00022   target = publisher_qos_;
00023 }

DDS::DataReaderQos& OpenDDS::FaceTSS::config::QosSettings::datareader_qos (  )  [inline]

Definition at line 34 of file QosSettings.h.

Referenced by OpenDDS::FaceTSS::config::Parser::find_qos().

00034 { return datareader_qos_; }

Here is the caller graph for this function:

DDS::DataWriterQos& OpenDDS::FaceTSS::config::QosSettings::datawriter_qos (  )  [inline]

Definition at line 33 of file QosSettings.h.

Referenced by FACE::TS::Create_Connection(), and OpenDDS::FaceTSS::config::Parser::find_qos().

00033 { return datawriter_qos_; }

Here is the caller graph for this function:

DDS::PublisherQos& OpenDDS::FaceTSS::config::QosSettings::publisher_qos (  )  [inline]

Definition at line 31 of file QosSettings.h.

Referenced by OpenDDS::FaceTSS::config::Parser::find_qos().

00031 { return publisher_qos_; }

Here is the caller graph for this function:

int OpenDDS::FaceTSS::config::QosSettings::set_qos ( DDS::DataReaderQos target,
const char *  name,
const char *  value 
) [private]

Definition at line 494 of file QosSettings.cpp.

References DDS::DataReaderQos::deadline, DDS::DataReaderQos::destination_order, DDS::DataReaderQos::durability, DDS::DataReaderQos::history, DDS::DataReaderQos::latency_budget, DDS::DataReaderQos::liveliness, OpenDDS::FaceTSS::config::log_parser_error(), DDS::DataReaderQos::ownership, DDS::DataReaderQos::reader_data_lifecycle, DDS::DataReaderQos::reliability, DDS::DataReaderQos::resource_limits, OpenDDS::FaceTSS::config::set_deadline_period_qos(), OpenDDS::FaceTSS::config::set_destination_order_kind_qos(), OpenDDS::FaceTSS::config::set_durability_kind_qos(), OpenDDS::FaceTSS::config::set_history_depth_qos(), OpenDDS::FaceTSS::config::set_history_kind_qos(), OpenDDS::FaceTSS::config::set_latency_budget_duration_qos(), OpenDDS::FaceTSS::config::set_liveliness_kind_qos(), OpenDDS::FaceTSS::config::set_liveliness_lease_duration_qos(), OpenDDS::FaceTSS::config::set_ownership_kind_qos(), OpenDDS::FaceTSS::config::set_reader_data_lifecycle_autopurge_disposed_samples_delay(), OpenDDS::FaceTSS::config::set_reader_data_lifecycle_autopurge_nowriter_samples_delay(), OpenDDS::FaceTSS::config::set_reliability_kind_qos(), OpenDDS::FaceTSS::config::set_reliability_max_blocking_time_qos(), OpenDDS::FaceTSS::config::set_resource_limits_max_instances_qos(), OpenDDS::FaceTSS::config::set_resource_limits_max_samples_per_instance_qos(), OpenDDS::FaceTSS::config::set_resource_limits_max_samples_qos(), OpenDDS::FaceTSS::config::set_time_based_filter_minimum_separation(), and DDS::DataReaderQos::time_based_filter.

00496 {
00497   bool matched =
00498     set_durability_kind_qos(target.durability, name, value) ||
00499     // durability service not settable
00500     set_deadline_period_qos(target.deadline, name, value) ||
00501     set_latency_budget_duration_qos(target.latency_budget, name, value) ||
00502     set_liveliness_kind_qos(target.liveliness, name, value) ||
00503     set_liveliness_lease_duration_qos(target.liveliness, name, value) ||
00504     set_reliability_kind_qos(target.reliability, name, value) ||
00505     set_reliability_max_blocking_time_qos(target.reliability, name, value) ||
00506     set_destination_order_kind_qos(target.destination_order, name, value) ||
00507     set_history_kind_qos(target.history, name, value) ||
00508     set_history_depth_qos(target.history, name, value) ||
00509     set_resource_limits_max_samples_qos(target.resource_limits, name, value) ||
00510     set_resource_limits_max_instances_qos(
00511         target.resource_limits, name, value) ||
00512     set_resource_limits_max_samples_per_instance_qos(
00513         target.resource_limits, name, value) ||
00514     set_ownership_kind_qos(target.ownership, name, value) ||
00515     set_time_based_filter_minimum_separation(
00516         target.time_based_filter, name, value) ||
00517     set_reader_data_lifecycle_autopurge_nowriter_samples_delay(
00518         target.reader_data_lifecycle, name, value) ||
00519     set_reader_data_lifecycle_autopurge_disposed_samples_delay(
00520         target.reader_data_lifecycle, name, value);
00521 
00522   if (!matched) {
00523     log_parser_error("data reader", name, value);
00524   }
00525   return matched ? 0 : 1;
00526 }

Here is the call graph for this function:

int OpenDDS::FaceTSS::config::QosSettings::set_qos ( DDS::DataWriterQos target,
const char *  name,
const char *  value 
) [private]

Definition at line 463 of file QosSettings.cpp.

References DDS::DataWriterQos::deadline, DDS::DataWriterQos::destination_order, DDS::DataWriterQos::durability, DDS::DataWriterQos::history, DDS::DataWriterQos::latency_budget, DDS::DataWriterQos::lifespan, DDS::DataWriterQos::liveliness, OpenDDS::FaceTSS::config::log_parser_error(), DDS::DataWriterQos::ownership, DDS::DataWriterQos::ownership_strength, DDS::DataWriterQos::reliability, DDS::DataWriterQos::resource_limits, OpenDDS::FaceTSS::config::set_deadline_period_qos(), OpenDDS::FaceTSS::config::set_destination_order_kind_qos(), OpenDDS::FaceTSS::config::set_durability_kind_qos(), OpenDDS::FaceTSS::config::set_history_depth_qos(), OpenDDS::FaceTSS::config::set_history_kind_qos(), OpenDDS::FaceTSS::config::set_latency_budget_duration_qos(), OpenDDS::FaceTSS::config::set_lifespan_duration_qos(), OpenDDS::FaceTSS::config::set_liveliness_kind_qos(), OpenDDS::FaceTSS::config::set_liveliness_lease_duration_qos(), OpenDDS::FaceTSS::config::set_ownership_kind_qos(), OpenDDS::FaceTSS::config::set_ownership_strength_value_qos(), OpenDDS::FaceTSS::config::set_reliability_kind_qos(), OpenDDS::FaceTSS::config::set_reliability_max_blocking_time_qos(), OpenDDS::FaceTSS::config::set_resource_limits_max_instances_qos(), OpenDDS::FaceTSS::config::set_resource_limits_max_samples_per_instance_qos(), OpenDDS::FaceTSS::config::set_resource_limits_max_samples_qos(), OpenDDS::FaceTSS::config::set_transport_priority_qos(), and DDS::DataWriterQos::transport_priority.

00465 {
00466   bool matched =
00467     set_durability_kind_qos(target.durability, name, value) ||
00468     // durability service not settable - not supporting those durabilities
00469     set_deadline_period_qos(target.deadline, name, value) ||
00470     set_latency_budget_duration_qos(target.latency_budget, name, value) ||
00471     set_liveliness_kind_qos(target.liveliness, name, value) ||
00472     set_liveliness_lease_duration_qos(target.liveliness, name, value) ||
00473     set_reliability_kind_qos(target.reliability, name, value) ||
00474     set_reliability_max_blocking_time_qos(target.reliability, name, value) ||
00475     set_destination_order_kind_qos(target.destination_order, name, value) ||
00476     set_history_kind_qos(target.history, name, value) ||
00477     set_history_depth_qos(target.history, name, value) ||
00478     set_resource_limits_max_samples_qos(target.resource_limits, name, value) ||
00479     set_resource_limits_max_instances_qos(target.resource_limits, name, value) ||
00480     set_resource_limits_max_samples_per_instance_qos(target.resource_limits, name, value) ||
00481     set_transport_priority_qos(target.transport_priority, name, value) ||
00482     set_lifespan_duration_qos(target.lifespan, name, value) ||
00483     // user_data not settable - can't be retrieved
00484     set_ownership_kind_qos(target.ownership, name, value) ||
00485     set_ownership_strength_value_qos(target.ownership_strength, name, value);
00486     // writer_data_lifecycle not settable - no interface to dispose
00487 
00488   if (!matched) {
00489     log_parser_error("data writer", name, value);
00490   }
00491   return matched ? 0 : 1;
00492 }

Here is the call graph for this function:

int OpenDDS::FaceTSS::config::QosSettings::set_qos ( DDS::SubscriberQos target,
const char *  name,
const char *  value 
) [private]

Definition at line 447 of file QosSettings.cpp.

References OpenDDS::FaceTSS::config::log_parser_error(), DDS::SubscriberQos::partition, DDS::SubscriberQos::presentation, OpenDDS::FaceTSS::config::set_partition_name_qos(), OpenDDS::FaceTSS::config::set_presentation_access_scope_qos(), OpenDDS::FaceTSS::config::set_presentation_coherent_access_qos(), and OpenDDS::FaceTSS::config::set_presentation_ordered_access_qos().

00449 {
00450   bool matched =
00451     set_presentation_access_scope_qos(target.presentation, name, value) ||
00452     set_presentation_coherent_access_qos(target.presentation, name, value) ||
00453     set_presentation_ordered_access_qos(target.presentation, name, value) ||
00454     set_partition_name_qos(target.partition, name, value);
00455     // group data not settable
00456     // entity factory not settable
00457   if (!matched) {
00458     log_parser_error("subscriber", name, value);
00459   }
00460   return matched ? 0 : 1;
00461 }

Here is the call graph for this function:

int OpenDDS::FaceTSS::config::QosSettings::set_qos ( DDS::PublisherQos target,
const char *  name,
const char *  value 
) [private]

Definition at line 430 of file QosSettings.cpp.

References OpenDDS::FaceTSS::config::log_parser_error(), DDS::PublisherQos::partition, DDS::PublisherQos::presentation, OpenDDS::FaceTSS::config::set_partition_name_qos(), OpenDDS::FaceTSS::config::set_presentation_access_scope_qos(), OpenDDS::FaceTSS::config::set_presentation_coherent_access_qos(), and OpenDDS::FaceTSS::config::set_presentation_ordered_access_qos().

00432 {
00433   bool matched =
00434     set_presentation_access_scope_qos(target.presentation, name, value) ||
00435     set_presentation_coherent_access_qos(target.presentation, name, value) ||
00436     set_presentation_ordered_access_qos(target.presentation, name, value) ||
00437     set_partition_name_qos(target.partition, name, value);
00438     // group data not settable
00439     // entity factory not settable
00440 
00441   if (!matched) {
00442     log_parser_error("publisher", name, value);
00443   }
00444   return matched ? 0 : 1;
00445 }

Here is the call graph for this function:

int OpenDDS::FaceTSS::config::QosSettings::set_qos ( QosLevel  level,
const char *  name,
const char *  value 
)

Definition at line 44 of file QosSettings.cpp.

References datareader, datareader_qos_, datawriter, datawriter_qos_, publisher, publisher_qos_, status, subscriber, and subscriber_qos_.

Referenced by OpenDDS::FaceTSS::config::Parser::parse_qos().

00045 {
00046   int status = 0;
00047   switch (level) {
00048     case publisher:
00049       status = set_qos(publisher_qos_, name, value);
00050       break;
00051     case subscriber:
00052       status = set_qos(subscriber_qos_, name, value);
00053       break;
00054     case datawriter:
00055       status = set_qos(datawriter_qos_, name, value);
00056       break;
00057     case datareader:
00058       status = set_qos(datareader_qos_, name, value);
00059       break;
00060   }
00061   return status;
00062 }

Here is the caller graph for this function:

DDS::SubscriberQos& OpenDDS::FaceTSS::config::QosSettings::subscriber_qos (  )  [inline]

Definition at line 32 of file QosSettings.h.

Referenced by OpenDDS::FaceTSS::config::Parser::find_qos().

00032 { return subscriber_qos_; }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 42 of file QosSettings.h.

Referenced by apply_to(), and set_qos().

Definition at line 41 of file QosSettings.h.

Referenced by apply_to(), and set_qos().

Definition at line 39 of file QosSettings.h.

Referenced by apply_to(), and set_qos().

Definition at line 40 of file QosSettings.h.

Referenced by apply_to(), and set_qos().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1