OpenDDS  Snapshot(2023/03/10-19:29)
Classes | Functions
OpenDDS::FaceTSS::config Namespace Reference

Classes

class  ConnectionSettings
 
class  Parser
 
class  QosSettings
 
class  TopicSettings
 

Functions

typedef OPENDDS_MAP (OPENDDS_STRING, ConnectionSettings) ConnectionMap
 
bool set_presentation_access_scope_qos (DDS::PresentationQosPolicy &target, const char *name, const char *value)
 
bool set_bool_qos_value (bool &target, const char *value)
 
bool set_duration_qos_value (DDS::Duration_t &target, const char *prefix_match, const char *name, const char *value)
 
bool set_presentation_coherent_access_qos (DDS::PresentationQosPolicy &target, const char *name, const char *value)
 
bool set_presentation_ordered_access_qos (DDS::PresentationQosPolicy &target, const char *name, const char *value)
 
bool set_partition_name_qos (DDS::PartitionQosPolicy &target, const char *name, const char *value)
 
bool set_durability_kind_qos (DDS::DurabilityQosPolicy &target, const char *name, const char *value)
 
bool set_deadline_period_qos (DDS::DeadlineQosPolicy &target, const char *name, const char *value)
 
bool set_latency_budget_duration_qos (DDS::LatencyBudgetQosPolicy &target, const char *name, const char *value)
 
bool set_liveliness_kind_qos (DDS::LivelinessQosPolicy &target, const char *name, const char *value)
 
bool set_liveliness_lease_duration_qos (DDS::LivelinessQosPolicy &target, const char *name, const char *value)
 
bool set_reliability_kind_qos (DDS::ReliabilityQosPolicy &target, const char *name, const char *value)
 
bool set_reliability_max_blocking_time_qos (DDS::ReliabilityQosPolicy &target, const char *name, const char *value)
 
bool set_destination_order_kind_qos (DDS::DestinationOrderQosPolicy &target, const char *name, const char *value)
 
bool set_history_kind_qos (DDS::HistoryQosPolicy &target, const char *name, const char *value)
 
bool set_history_depth_qos (DDS::HistoryQosPolicy &target, const char *name, const char *value)
 
bool set_resource_limits_max_samples_qos (DDS::ResourceLimitsQosPolicy &target, const char *name, const char *value)
 
bool set_resource_limits_max_instances_qos (DDS::ResourceLimitsQosPolicy &target, const char *name, const char *value)
 
bool set_resource_limits_max_samples_per_instance_qos (DDS::ResourceLimitsQosPolicy &target, const char *name, const char *value)
 
bool set_transport_priority_qos (DDS::TransportPriorityQosPolicy &target, const char *name, const char *value)
 
bool set_lifespan_duration_qos (DDS::LifespanQosPolicy &target, const char *name, const char *value)
 
bool set_ownership_kind_qos (DDS::OwnershipQosPolicy &target, const char *name, const char *value)
 
bool set_ownership_strength_value_qos (DDS::OwnershipStrengthQosPolicy &target, const char *name, const char *value)
 
bool set_time_based_filter_minimum_separation (DDS::TimeBasedFilterQosPolicy &target, const char *name, const char *value)
 
bool set_reader_data_lifecycle_autopurge_nowriter_samples_delay (DDS::ReaderDataLifecycleQosPolicy &target, const char *name, const char *value)
 
bool set_reader_data_lifecycle_autopurge_disposed_samples_delay (DDS::ReaderDataLifecycleQosPolicy &target, const char *name, const char *value)
 
void log_parser_error (const char *section, const char *name, const char *value)
 
typedef OPENDDS_MAP (OPENDDS_STRING, QosSettings) QosMap
 
typedef OPENDDS_MAP (OPENDDS_STRING, TopicSettings) TopicMap
 

Function Documentation

◆ log_parser_error()

void OpenDDS::FaceTSS::config::log_parser_error ( const char *  section,
const char *  name,
const char *  value 
)

Definition at line 420 of file QosSettings.cpp.

References ACE_ERROR, and LM_ERROR.

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

421 {
422  ACE_ERROR((LM_ERROR, "Could not set %C QOS setting %C to value %C\n",
423  section, name, value));
424 }
#define ACE_ERROR(X)
const LogLevel::Value value
Definition: debug.cpp:61
const char *const name
Definition: debug.cpp:60

◆ OPENDDS_MAP() [1/3]

typedef OpenDDS::FaceTSS::config::OPENDDS_MAP ( OPENDDS_STRING  ,
TopicSettings   
)

◆ OPENDDS_MAP() [2/3]

typedef OpenDDS::FaceTSS::config::OPENDDS_MAP ( OPENDDS_STRING  ,
ConnectionSettings   
)

◆ OPENDDS_MAP() [3/3]

typedef OpenDDS::FaceTSS::config::OPENDDS_MAP ( OPENDDS_STRING  ,
QosSettings   
)

◆ set_bool_qos_value()

bool OpenDDS::FaceTSS::config::set_bool_qos_value ( bool &  target,
const char *  value 
)

Definition at line 90 of file QosSettings.cpp.

Referenced by set_presentation_coherent_access_qos(), and set_presentation_ordered_access_qos().

91 {
92  bool matched = false;
93  if (!std::strcmp(value, "true")) {
94  target = true;
95  matched = true;
96  } else if (!std::strcmp(value, "false")) {
97  target = false;
98  matched = true;
99  }
100  return matched;
101 }
const LogLevel::Value value
Definition: debug.cpp:61

◆ set_deadline_period_qos()

bool OpenDDS::FaceTSS::config::set_deadline_period_qos ( DDS::DeadlineQosPolicy target,
const char *  name,
const char *  value 
)

Definition at line 212 of file QosSettings.cpp.

References DDS::DeadlineQosPolicy::period, and set_duration_qos_value().

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

214 {
215  return set_duration_qos_value(target.period, "deadline.period", name, value);
216 }
const LogLevel::Value value
Definition: debug.cpp:61
const char *const name
Definition: debug.cpp:60
bool set_duration_qos_value(DDS::Duration_t &target, const char *prefix_match, const char *name, const char *value)

◆ set_destination_order_kind_qos()

bool OpenDDS::FaceTSS::config::set_destination_order_kind_qos ( DDS::DestinationOrderQosPolicy target,
const char *  name,
const char *  value 
)

Definition at line 275 of file QosSettings.cpp.

References DDS::BY_RECEPTION_TIMESTAMP_DESTINATIONORDER_QOS, DDS::BY_SOURCE_TIMESTAMP_DESTINATIONORDER_QOS, and DDS::DestinationOrderQosPolicy::kind.

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

277 {
278  bool matched = false;
279  if (!std::strcmp(name, "destination_order.kind")) {
280  if (!std::strcmp(value, "BY_RECEPTION_TIMESTAMP")) {
282  matched = true;
283  } else if (!std::strcmp(value, "BY_SOURCE_TIMESTAMP")) {
285  matched = true;
286  }
287  }
288  return matched;
289 }
const LogLevel::Value value
Definition: debug.cpp:61
const char *const name
Definition: debug.cpp:60
DestinationOrderQosPolicyKind kind

◆ set_durability_kind_qos()

bool OpenDDS::FaceTSS::config::set_durability_kind_qos ( DDS::DurabilityQosPolicy target,
const char *  name,
const char *  value 
)

Definition at line 187 of file QosSettings.cpp.

References DDS::DurabilityQosPolicy::kind, DDS::PERSISTENT_DURABILITY_QOS, DDS::TRANSIENT_DURABILITY_QOS, DDS::TRANSIENT_LOCAL_DURABILITY_QOS, and DDS::VOLATILE_DURABILITY_QOS.

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

189 {
190  bool matched = false;
191  if (!std::strcmp(name, "durability.kind")) {
192  if (!std::strcmp(value, "VOLATILE")) {
194  matched = true;
195  } else if (!std::strcmp(value, "TRANSIENT_LOCAL")) {
197  matched = true;
198 #ifndef OPENDDS_NO_PERSISTENCE_PROFILE
199  } else if (!std::strcmp(value, "TRANSIENT")) {
201  matched = true;
202  } else if (!std::strcmp(value, "PERSISTENT")) {
204  matched = true;
205 #endif
206  }
207  }
208  return matched;
209 }
const LogLevel::Value value
Definition: debug.cpp:61
DurabilityQosPolicyKind kind
const char *const name
Definition: debug.cpp:60

◆ set_duration_qos_value()

bool OpenDDS::FaceTSS::config::set_duration_qos_value ( DDS::Duration_t target,
const char *  prefix_match,
const char *  name,
const char *  value 
)

Definition at line 105 of file QosSettings.cpp.

References atoi(), DDS::DURATION_INFINITE_NSEC, DDS::DURATION_INFINITE_SEC, DDS::Duration_t::nanosec, and DDS::Duration_t::sec.

Referenced by set_deadline_period_qos(), set_latency_budget_duration_qos(), set_lifespan_duration_qos(), set_liveliness_lease_duration_qos(), set_reader_data_lifecycle_autopurge_disposed_samples_delay(), set_reader_data_lifecycle_autopurge_nowriter_samples_delay(), set_reliability_max_blocking_time_qos(), and set_time_based_filter_minimum_separation().

109 {
110  char buffer[64];
111  std::strncpy(buffer, prefix_match, 64 - 4);
112  std::strcat(buffer, ".sec");
113  if (!std::strcmp(name, buffer)) {
114  if (!std::strcmp(value, "DURATION_INFINITE_SEC")) {
116  return true;
117  }
118  target.sec = atoi(value);
119  return true;
120  }
121  std::strncpy(buffer, prefix_match, 64 - 7);
122  std::strcat(buffer, ".nanosec");
123  if (!std::strcmp(name, buffer)) {
124  if (!std::strcmp(value, "DURATION_INFINITE_NSEC")) {
126  return true;
127  }
128  target.nanosec = atoi(value);
129  return true;
130  }
131  return false;
132 }
unsigned long nanosec
Definition: DdsDcpsCore.idl:69
const LogLevel::Value value
Definition: debug.cpp:61
const unsigned long DURATION_INFINITE_NSEC
Definition: DdsDcpsCore.idl:73
const char *const name
Definition: debug.cpp:60
int atoi(const char *s)
const long DURATION_INFINITE_SEC
Definition: DdsDcpsCore.idl:72

◆ set_history_depth_qos()

bool OpenDDS::FaceTSS::config::set_history_depth_qos ( DDS::HistoryQosPolicy target,
const char *  name,
const char *  value 
)

Definition at line 307 of file QosSettings.cpp.

References atoi(), and DDS::HistoryQosPolicy::depth.

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

309 {
310  bool matched = false;
311  if (!std::strcmp(name, "history.depth")) {
312  target.depth = atoi(value);
313  matched = true;
314  }
315  return matched;
316 }
const LogLevel::Value value
Definition: debug.cpp:61
const char *const name
Definition: debug.cpp:60
int atoi(const char *s)

◆ set_history_kind_qos()

bool OpenDDS::FaceTSS::config::set_history_kind_qos ( DDS::HistoryQosPolicy target,
const char *  name,
const char *  value 
)

Definition at line 291 of file QosSettings.cpp.

References DDS::KEEP_ALL_HISTORY_QOS, DDS::KEEP_LAST_HISTORY_QOS, and DDS::HistoryQosPolicy::kind.

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

293 {
294  bool matched = false;
295  if (!std::strcmp(name, "history.kind")) {
296  if (!std::strcmp(value, "KEEP_ALL")) {
298  matched = true;
299  } else if (!std::strcmp(value, "KEEP_LAST")) {
301  matched = true;
302  }
303  }
304  return matched;
305 }
const LogLevel::Value value
Definition: debug.cpp:61
const char *const name
Definition: debug.cpp:60
HistoryQosPolicyKind kind

◆ set_latency_budget_duration_qos()

bool OpenDDS::FaceTSS::config::set_latency_budget_duration_qos ( DDS::LatencyBudgetQosPolicy target,
const char *  name,
const char *  value 
)

Definition at line 219 of file QosSettings.cpp.

References DDS::LatencyBudgetQosPolicy::duration, and set_duration_qos_value().

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

221 {
222  return set_duration_qos_value(
223  target.duration, "latency_budget.duration", name, value);
224 }
const LogLevel::Value value
Definition: debug.cpp:61
const char *const name
Definition: debug.cpp:60
bool set_duration_qos_value(DDS::Duration_t &target, const char *prefix_match, const char *name, const char *value)

◆ set_lifespan_duration_qos()

bool OpenDDS::FaceTSS::config::set_lifespan_duration_qos ( DDS::LifespanQosPolicy target,
const char *  name,
const char *  value 
)

Definition at line 362 of file QosSettings.cpp.

References DDS::LifespanQosPolicy::duration, and set_duration_qos_value().

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

364 {
365  return set_duration_qos_value(
366  target.duration, "lifespan.duration", name, value);
367 }
const LogLevel::Value value
Definition: debug.cpp:61
const char *const name
Definition: debug.cpp:60
bool set_duration_qos_value(DDS::Duration_t &target, const char *prefix_match, const char *name, const char *value)

◆ set_liveliness_kind_qos()

bool OpenDDS::FaceTSS::config::set_liveliness_kind_qos ( DDS::LivelinessQosPolicy target,
const char *  name,
const char *  value 
)

Definition at line 226 of file QosSettings.cpp.

References DDS::AUTOMATIC_LIVELINESS_QOS, DDS::LivelinessQosPolicy::kind, DDS::MANUAL_BY_PARTICIPANT_LIVELINESS_QOS, and DDS::MANUAL_BY_TOPIC_LIVELINESS_QOS.

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

228 {
229  bool matched = false;
230  if (!std::strcmp(name, "liveliness.kind")) {
231  if (!std::strcmp(value, "AUTOMATIC")) {
233  matched = true;
234  } else if (!std::strcmp(value, "MANUAL_BY_TOPIC")) {
236  matched = true;
237  } else if (!std::strcmp(value, "MANUAL_BY_PARTICIPANT")) {
239  matched = true;
240  }
241  }
242  return matched;
243 }
const LogLevel::Value value
Definition: debug.cpp:61
const char *const name
Definition: debug.cpp:60
LivelinessQosPolicyKind kind

◆ set_liveliness_lease_duration_qos()

bool OpenDDS::FaceTSS::config::set_liveliness_lease_duration_qos ( DDS::LivelinessQosPolicy target,
const char *  name,
const char *  value 
)

Definition at line 245 of file QosSettings.cpp.

References DDS::LivelinessQosPolicy::lease_duration, and set_duration_qos_value().

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

247 {
248  return set_duration_qos_value(
249  target.lease_duration, "liveliness.lease_duration", name, value);
250 }
const LogLevel::Value value
Definition: debug.cpp:61
const char *const name
Definition: debug.cpp:60
bool set_duration_qos_value(DDS::Duration_t &target, const char *prefix_match, const char *name, const char *value)

◆ set_ownership_kind_qos()

bool OpenDDS::FaceTSS::config::set_ownership_kind_qos ( DDS::OwnershipQosPolicy target,
const char *  name,
const char *  value 
)

Definition at line 369 of file QosSettings.cpp.

References DDS::EXCLUSIVE_OWNERSHIP_QOS, DDS::OwnershipQosPolicy::kind, and DDS::SHARED_OWNERSHIP_QOS.

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

371 {
372  bool matched = false;
373  if (!std::strcmp(name, "ownership.kind")) {
374  if (!std::strcmp(value, "SHARED")) {
376  matched = true;
377  } else if (!std::strcmp(value, "EXCLUSIVE")) {
379  matched = true;
380  }
381  }
382  return matched;
383 }
const LogLevel::Value value
Definition: debug.cpp:61
const char *const name
Definition: debug.cpp:60
OwnershipQosPolicyKind kind

◆ set_ownership_strength_value_qos()

bool OpenDDS::FaceTSS::config::set_ownership_strength_value_qos ( DDS::OwnershipStrengthQosPolicy target,
const char *  name,
const char *  value 
)

Definition at line 385 of file QosSettings.cpp.

References atoi(), and DDS::OwnershipStrengthQosPolicy::value.

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

387 {
388  bool matched = false;
389  if (!std::strcmp(name, "ownership_strength.value")) {
390  target.value = atoi(value);
391  matched = true;
392  }
393  return matched;
394 }
const LogLevel::Value value
Definition: debug.cpp:61
const char *const name
Definition: debug.cpp:60
int atoi(const char *s)

◆ set_partition_name_qos()

bool OpenDDS::FaceTSS::config::set_partition_name_qos ( DDS::PartitionQosPolicy target,
const char *  name,
const char *  value 
)

Definition at line 161 of file QosSettings.cpp.

References DDS::PartitionQosPolicy::name, OPENDDS_STRING, and value.

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

163 {
164  bool matched = false;
165  if (!std::strcmp(name, "partition.name")) {
166  // Value can be a comma-separated list
167  const char* start = value;
168  while (const char* next_comma = std::strchr(start, ',')) {
169  const size_t size = next_comma - start;
170  const OPENDDS_STRING temp(start, size);
171  // Add to QOS
172  target.name.length(target.name.length() + 1);
173  target.name[target.name.length() - 1] = temp.c_str();
174  // Advance pointer
175  start = next_comma + 1;
176  }
177  // Append everything after last comma
178  target.name.length(target.name.length() + 1);
179  target.name[target.name.length() - 1] = start;
180 
181  matched = true;
182  }
183  return matched;
184 }
const LogLevel::Value value
Definition: debug.cpp:61
#define OPENDDS_STRING
const char *const name
Definition: debug.cpp:60

◆ set_presentation_access_scope_qos()

bool OpenDDS::FaceTSS::config::set_presentation_access_scope_qos ( DDS::PresentationQosPolicy target,
const char *  name,
const char *  value 
)

Definition at line 65 of file QosSettings.cpp.

References DDS::PresentationQosPolicy::access_scope, DDS::GROUP_PRESENTATION_QOS, DDS::INSTANCE_PRESENTATION_QOS, and DDS::TOPIC_PRESENTATION_QOS.

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

69 {
70  bool matched = false;
71  if (!std::strcmp(name, "presentation.access_scope")) {
72  if (!std::strcmp(value, "INSTANCE")) {
74  matched = true;
75  }
76  if (!std::strcmp(value, "TOPIC")) {
78  matched = true;
79  }
80  if (!std::strcmp(value, "GROUP")) {
82  matched = true;
83  }
84  }
85  return matched;
86 }
const LogLevel::Value value
Definition: debug.cpp:61
PresentationQosPolicyAccessScopeKind access_scope
const char *const name
Definition: debug.cpp:60

◆ set_presentation_coherent_access_qos()

bool OpenDDS::FaceTSS::config::set_presentation_coherent_access_qos ( DDS::PresentationQosPolicy target,
const char *  name,
const char *  value 
)

Definition at line 135 of file QosSettings.cpp.

References DDS::PresentationQosPolicy::coherent_access, and set_bool_qos_value().

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

139 {
140  bool matched = false;
141  if (!std::strcmp(name, "presentation.coherent_access")) {
142  matched = set_bool_qos_value(target.coherent_access, value);
143  }
144  return matched;
145 }
const LogLevel::Value value
Definition: debug.cpp:61
bool set_bool_qos_value(bool &target, const char *value)
Definition: QosSettings.cpp:90
const char *const name
Definition: debug.cpp:60

◆ set_presentation_ordered_access_qos()

bool OpenDDS::FaceTSS::config::set_presentation_ordered_access_qos ( DDS::PresentationQosPolicy target,
const char *  name,
const char *  value 
)

Definition at line 148 of file QosSettings.cpp.

References DDS::PresentationQosPolicy::ordered_access, and set_bool_qos_value().

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

152 {
153  bool matched = false;
154  if (!std::strcmp(name, "presentation.ordered_access")) {
155  matched = set_bool_qos_value(target.ordered_access, value);
156  }
157  return matched;
158 }
const LogLevel::Value value
Definition: debug.cpp:61
bool set_bool_qos_value(bool &target, const char *value)
Definition: QosSettings.cpp:90
const char *const name
Definition: debug.cpp:60

◆ set_reader_data_lifecycle_autopurge_disposed_samples_delay()

bool OpenDDS::FaceTSS::config::set_reader_data_lifecycle_autopurge_disposed_samples_delay ( DDS::ReaderDataLifecycleQosPolicy target,
const char *  name,
const char *  value 
)

Definition at line 411 of file QosSettings.cpp.

References DDS::ReaderDataLifecycleQosPolicy::autopurge_disposed_samples_delay, and set_duration_qos_value().

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

413 {
414  return set_duration_qos_value(
416  "reader_data_lifecycle.autopurge_disposed_samples_delay", name, value);
417 }
const LogLevel::Value value
Definition: debug.cpp:61
const char *const name
Definition: debug.cpp:60
bool set_duration_qos_value(DDS::Duration_t &target, const char *prefix_match, const char *name, const char *value)

◆ set_reader_data_lifecycle_autopurge_nowriter_samples_delay()

bool OpenDDS::FaceTSS::config::set_reader_data_lifecycle_autopurge_nowriter_samples_delay ( DDS::ReaderDataLifecycleQosPolicy target,
const char *  name,
const char *  value 
)

Definition at line 403 of file QosSettings.cpp.

References DDS::ReaderDataLifecycleQosPolicy::autopurge_nowriter_samples_delay, and set_duration_qos_value().

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

405 {
406  return set_duration_qos_value(
408  "reader_data_lifecycle.autopurge_nowriter_samples_delay", name, value);
409 }
const LogLevel::Value value
Definition: debug.cpp:61
const char *const name
Definition: debug.cpp:60
bool set_duration_qos_value(DDS::Duration_t &target, const char *prefix_match, const char *name, const char *value)

◆ set_reliability_kind_qos()

bool OpenDDS::FaceTSS::config::set_reliability_kind_qos ( DDS::ReliabilityQosPolicy target,
const char *  name,
const char *  value 
)

Definition at line 252 of file QosSettings.cpp.

References DDS::BEST_EFFORT_RELIABILITY_QOS, DDS::ReliabilityQosPolicy::kind, and DDS::RELIABLE_RELIABILITY_QOS.

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

254 {
255  bool matched = false;
256  if (!std::strcmp(name, "reliability.kind")) {
257  if (!std::strcmp(value, "BEST_EFFORT")) {
259  matched = true;
260  } else if (!std::strcmp(value, "RELIABLE")) {
262  matched = true;
263  }
264  }
265  return matched;
266 }
const LogLevel::Value value
Definition: debug.cpp:61
ReliabilityQosPolicyKind kind
const char *const name
Definition: debug.cpp:60

◆ set_reliability_max_blocking_time_qos()

bool OpenDDS::FaceTSS::config::set_reliability_max_blocking_time_qos ( DDS::ReliabilityQosPolicy target,
const char *  name,
const char *  value 
)

Definition at line 268 of file QosSettings.cpp.

References DDS::ReliabilityQosPolicy::max_blocking_time, and set_duration_qos_value().

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

270 {
271  return set_duration_qos_value(
272  target.max_blocking_time, "reliability.max_blocking_time", name, value);
273 }
const LogLevel::Value value
Definition: debug.cpp:61
const char *const name
Definition: debug.cpp:60
bool set_duration_qos_value(DDS::Duration_t &target, const char *prefix_match, const char *name, const char *value)

◆ set_resource_limits_max_instances_qos()

bool OpenDDS::FaceTSS::config::set_resource_limits_max_instances_qos ( DDS::ResourceLimitsQosPolicy target,
const char *  name,
const char *  value 
)

Definition at line 329 of file QosSettings.cpp.

References atoi(), and DDS::ResourceLimitsQosPolicy::max_instances.

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

331 {
332  bool matched = false;
333  if (!std::strcmp(name, "resource_limits.max_instances")) {
334  target.max_instances = atoi(value);
335  matched = true;
336  }
337  return matched;
338 }
const LogLevel::Value value
Definition: debug.cpp:61
const char *const name
Definition: debug.cpp:60
int atoi(const char *s)

◆ set_resource_limits_max_samples_per_instance_qos()

bool OpenDDS::FaceTSS::config::set_resource_limits_max_samples_per_instance_qos ( DDS::ResourceLimitsQosPolicy target,
const char *  name,
const char *  value 
)

Definition at line 340 of file QosSettings.cpp.

References atoi(), and DDS::ResourceLimitsQosPolicy::max_samples_per_instance.

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

342 {
343  bool matched = false;
344  if (!std::strcmp(name, "resource_limits.max_samples_per_instance")) {
346  matched = true;
347  }
348  return matched;
349 }
const LogLevel::Value value
Definition: debug.cpp:61
const char *const name
Definition: debug.cpp:60
int atoi(const char *s)

◆ set_resource_limits_max_samples_qos()

bool OpenDDS::FaceTSS::config::set_resource_limits_max_samples_qos ( DDS::ResourceLimitsQosPolicy target,
const char *  name,
const char *  value 
)

Definition at line 318 of file QosSettings.cpp.

References atoi(), and DDS::ResourceLimitsQosPolicy::max_samples.

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

320 {
321  bool matched = false;
322  if (!std::strcmp(name, "resource_limits.max_samples")) {
323  target.max_samples = atoi(value);
324  matched = true;
325  }
326  return matched;
327 }
const LogLevel::Value value
Definition: debug.cpp:61
const char *const name
Definition: debug.cpp:60
int atoi(const char *s)

◆ set_time_based_filter_minimum_separation()

bool OpenDDS::FaceTSS::config::set_time_based_filter_minimum_separation ( DDS::TimeBasedFilterQosPolicy target,
const char *  name,
const char *  value 
)

Definition at line 396 of file QosSettings.cpp.

References DDS::TimeBasedFilterQosPolicy::minimum_separation, and set_duration_qos_value().

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

398 {
399  return set_duration_qos_value(
400  target.minimum_separation, "time_based_filter.minimum_separation", name, value);
401 }
const LogLevel::Value value
Definition: debug.cpp:61
const char *const name
Definition: debug.cpp:60
bool set_duration_qos_value(DDS::Duration_t &target, const char *prefix_match, const char *name, const char *value)

◆ set_transport_priority_qos()

bool OpenDDS::FaceTSS::config::set_transport_priority_qos ( DDS::TransportPriorityQosPolicy target,
const char *  name,
const char *  value 
)

Definition at line 351 of file QosSettings.cpp.

References atoi(), and DDS::TransportPriorityQosPolicy::value.

Referenced by OpenDDS::FaceTSS::config::QosSettings::set_qos().

353 {
354  bool matched = false;
355  if (!std::strcmp(name, "transport_priority.value")) {
356  target.value = atoi(value);
357  matched = true;
358  }
359  return matched;
360 }
const LogLevel::Value value
Definition: debug.cpp:61
const char *const name
Definition: debug.cpp:60
int atoi(const char *s)