summaryrefslogtreecommitdiff
path: root/modules/CIAO/connectors/dds4ccm/impl/dds/ndds/SubscriberQos.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/CIAO/connectors/dds4ccm/impl/dds/ndds/SubscriberQos.h')
-rw-r--r--modules/CIAO/connectors/dds4ccm/impl/dds/ndds/SubscriberQos.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/modules/CIAO/connectors/dds4ccm/impl/dds/ndds/SubscriberQos.h b/modules/CIAO/connectors/dds4ccm/impl/dds/ndds/SubscriberQos.h
new file mode 100644
index 00000000000..9741f0b9682
--- /dev/null
+++ b/modules/CIAO/connectors/dds4ccm/impl/dds/ndds/SubscriberQos.h
@@ -0,0 +1,44 @@
+/**
+ * @author Johnny Willemsen <jwillemsen@remedy.nl>
+ *
+ * $Id$
+ *
+ * Wrapper facade for NDDS.
+ */
+
+#ifndef DDS4CCM_SUBSCRIBERQOS_H
+#define DDS4CCM_SUBSCRIBERQOS_H
+
+#include "EntityFactoryQosPolicy.h"
+#include "GroupDataQosPolicy.h"
+#include "PartitionQosPolicy.h"
+#include "PresentationQosPolicy.h"
+
+#include "dds4ccm/impl/dds4ccm_conf.h"
+
+#if (CIAO_DDS4CCM_OPENDDS==1)
+typedef ::DDS::SubscriberQos DDS_SubscriberQos;
+#endif
+
+#if (CIAO_DDS4CCM_NDDS==1)
+inline void
+operator<<= (::DDS::SubscriberQos &ddsqos, const ::DDS_SubscriberQos & qos)
+{
+ ddsqos.presentation <<= qos.presentation;
+ ddsqos.partition <<= qos.partition;
+ ddsqos.group_data <<= qos.group_data;
+ ddsqos.entity_factory <<= qos.entity_factory;
+}
+
+inline void
+operator<<= (::DDS_SubscriberQos &ddsqos, const ::DDS::SubscriberQos & qos)
+{
+ ddsqos.presentation <<= qos.presentation;
+ ddsqos.partition <<= qos.partition;
+ ddsqos.group_data <<= qos.group_data;
+ ddsqos.entity_factory <<= qos.entity_factory;
+}
+
+#endif
+
+#endif /* DDS4CCM_SUBSCRIBERQOS_H */