summaryrefslogtreecommitdiff
path: root/CIAO/connectors/dds4ccm/impl/ndds/ReliabilityQosPolicy.h
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/connectors/dds4ccm/impl/ndds/ReliabilityQosPolicy.h')
-rw-r--r--CIAO/connectors/dds4ccm/impl/ndds/ReliabilityQosPolicy.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/CIAO/connectors/dds4ccm/impl/ndds/ReliabilityQosPolicy.h b/CIAO/connectors/dds4ccm/impl/ndds/ReliabilityQosPolicy.h
new file mode 100644
index 00000000000..d4253585857
--- /dev/null
+++ b/CIAO/connectors/dds4ccm/impl/ndds/ReliabilityQosPolicy.h
@@ -0,0 +1,36 @@
+/**
+ * @author Johnny Willemsen <jwillemsen@remedy.nl>
+ *
+ * $Id$
+ *
+ * Wrapper facade for NDDS.
+ */
+
+#ifndef DDS4CCM_RELIABILITYSQOSPOLICY_H
+#define DDS4CCM_RELIABILITYSQOSPOLICY_H
+
+#include "Duration_t.h"
+#include "dds4ccm/impl/dds4ccm_conf.h"
+
+#if (CIAO_DDS4CCM_OPENDDS==1)
+typedef ::DDS::ReliabilityQosPolicy DDS_ReliabilityQosPolicy;
+#endif
+
+#if (CIAO_DDS4CCM_NDDS==1)
+inline void
+operator<<= (::DDS::ReliabilityQosPolicy &ddsqos, const ::DDS_ReliabilityQosPolicy & qos)
+{
+ ddsqos.kind = static_cast < ::DDS::ReliabilityQosPolicyKind> (qos.kind);
+ ddsqos.max_blocking_time <<= qos.max_blocking_time;
+}
+
+inline void
+operator<<= (::DDS_ReliabilityQosPolicy &ddsqos, const ::DDS::ReliabilityQosPolicy & qos)
+{
+ ddsqos.kind = static_cast < ::DDS_ReliabilityQosPolicyKind> (qos.kind);
+ ddsqos.max_blocking_time <<= qos.max_blocking_time;
+}
+
+#endif
+
+#endif /* DDS4CCM_RELIABILITYSQOSPOLICY_H */