Skip to content

Commit 006e330

Browse files
committed
Merge branch 'fix_version20' of https://github.com/omg-dds/dds-rtps into fix_version20
2 parents 9442919 + 9f8d085 commit 006e330

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

srcCxx/shape_configurator_eprosima_fast_dds.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@
3232
namespace DDS = eprosima::fastdds::dds;
3333
#define RETCODE_OK DDS::RETCODE_OK
3434

35-
#define DDS_BOOLEAN_TRUE true
36-
#define DDS_BOOLEAN_FALSE false
37-
3835
const char* get_qos_policy_name(DDS::QosPolicyId_t policy_id)
3936
{
4037
switch (policy_id) {

srcCxx/shape_configurator_opendds.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
#define STRING_INOUT .inout()
1919
#define STRING_ALLOC(LHS, RHS) LHS = CORBA::string_alloc(RHS)
2020

21-
#define DDS_BOOLEAN_TRUE true
22-
#define DDS_BOOLEAN_FALSE false
23-
2421
const char* get_qos_policy_name(DDS::QosPolicyId_t policy_id)
2522
{
2623
switch (policy_id) {

srcCxx/shape_main.cxx

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@
5757
#ifndef ADD_PARTITION
5858
#define ADD_PARTITION(field, value) StringSeq_push(field.name, value)
5959
#endif
60+
#ifndef DDS_BOOLEAN_TRUE
61+
#define DDS_BOOLEAN_TRUE true
62+
#endif
63+
#ifndef DDS_BOOLEAN_FALSE
64+
#define DDS_BOOLEAN_FALSE false
65+
#endif
6066

6167
using namespace DDS;
6268

@@ -1339,7 +1345,7 @@ class ShapeApplication {
13391345

13401346
logger.log_message("Subscriber QoS:", Verbosity::DEBUG);
13411347

1342-
#if defined(RTI_CONNEXT_DDS) || defined(TWINOAKS_COREDX)
1348+
#if defined(RTI_CONNEXT_DDS) || defined(TWINOAKS_COREDX) || defined(INTERCOM_DDS)
13431349
if (options->coherent_set_enabled) {
13441350
sub_qos.presentation.coherent_access = DDS_BOOLEAN_TRUE;
13451351
}
@@ -1348,13 +1354,21 @@ class ShapeApplication {
13481354
}
13491355
if (options->ordered_access_enabled || options->coherent_set_enabled) {
13501356
sub_qos.presentation.access_scope = options->coherent_set_access_scope;
1351-
#if defined(TWINOAKS_COREDX)
1357+
#if defined(TWINOAKS_COREDX) || defined(INTERCOM_DDS)
13521358
if ( sub_qos.presentation.access_scope >= GROUP_PRESENTATION_QOS )
13531359
{
13541360
logger.log_message(" Presentation Access Scope "
13551361
+ QosUtils::to_string(sub_qos.presentation.access_scope)
13561362
+ std::string(" : Not supported"), Verbosity::ERROR);
13571363
}
1364+
#endif
1365+
#if defined(INTERCOM_DDS)
1366+
if (sub_qos.presentation.coherent_access && sub_qos.presentation.access_scope >= TOPIC_PRESENTATION_QOS)
1367+
{
1368+
logger.log_message(" Coherent Access with Presentation Access Scope "
1369+
+ QosUtils::to_string(sub_qos.presentation.access_scope)
1370+
+ std::string(" : Not supported"), Verbosity::ERROR);
1371+
}
13581372
#endif
13591373
}
13601374

0 commit comments

Comments
 (0)