summaryrefslogtreecommitdiff
path: root/TAO/tao/RTCORBA/Network_Priority_Mapping.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/RTCORBA/Network_Priority_Mapping.h')
-rw-r--r--TAO/tao/RTCORBA/Network_Priority_Mapping.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/TAO/tao/RTCORBA/Network_Priority_Mapping.h b/TAO/tao/RTCORBA/Network_Priority_Mapping.h
new file mode 100644
index 00000000000..4fa09f454f4
--- /dev/null
+++ b/TAO/tao/RTCORBA/Network_Priority_Mapping.h
@@ -0,0 +1,66 @@
+// -*- C++ -*-
+
+//=============================================================================
+/**
+ * @file Network_Priority_Mapping.h
+ *
+ * $Id$
+ *
+ * Class that declares the Network Priority Mapping
+ * that can be overriden to provide different mappings
+ *
+ *
+ * @author Yamuna Krishnamurthy (yamuna@oomworks.com)
+ */
+//=============================================================================
+
+
+#ifndef TAO_NETWORK_PRIORITY_MAPPING_H
+#define TAO_NETWORK_PRIORITY_MAPPING_H
+#include /**/ "ace/pre.h"
+
+#include "tao/orbconf.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#define TAO_RTCORBA_SAFE_INCLUDE
+#include "tao/RTCORBA/RTCORBAC.h"
+#undef TAO_RTCORBA_SAFE_INCLUDE
+
+#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+/**
+ * @class TAO_Network_Priority_Mapping
+ *
+ * @brief The interface for priority mapping.
+ *
+ * Check the RT-CORBA spec (orbos/99-02-12) secions 4.5.2
+ */
+class TAO_RTCORBA_Export TAO_Network_Priority_Mapping
+{
+public:
+ /// The destructor
+ virtual ~TAO_Network_Priority_Mapping (void);
+
+ virtual CORBA::Boolean
+ to_network (RTCORBA::Priority corba_priority,
+ RTCORBA::NetworkPriority &network_priority) = 0;
+ virtual CORBA::Boolean
+ to_CORBA (RTCORBA::NetworkPriority network_priority,
+ RTCORBA::Priority &corba_priority) = 0;
+};
+
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
+
+#include /**/ "ace/post.h"
+#endif /* TAO_NETWORK_PRIORITY_MAPPING_H */
+
+
+
+