3 //=============================================================================
5 * @file Network_Priority_Mapping.h
7 * Class that declares the Network Priority Mapping
8 * that can be overriden to provide different mappings
10 * @author Yamuna Krishnamurthy (yamuna@oomworks.com)
12 //=============================================================================
15 #ifndef TAO_NETWORK_PRIORITY_MAPPING_H
16 #define TAO_NETWORK_PRIORITY_MAPPING_H
17 #include /**/ "ace/pre.h"
19 #include "tao/orbconf.h"
21 #if !defined (ACE_LACKS_PRAGMA_ONCE)
23 #endif /* ACE_LACKS_PRAGMA_ONCE */
25 #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
27 #include "tao/RTCORBA/RTCORBA_includeC.h"
29 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
32 * @class TAO_Network_Priority_Mapping
34 * @brief The interface for priority mapping.
36 * Check the RT-CORBA spec (orbos/99-02-12) secions 4.5.2
38 class TAO_RTCORBA_Export TAO_Network_Priority_Mapping
42 virtual ~TAO_Network_Priority_Mapping ();
44 virtual CORBA::Boolean
45 to_network (RTCORBA::Priority corba_priority
,
46 RTCORBA::NetworkPriority
&network_priority
) = 0;
47 virtual CORBA::Boolean
48 to_CORBA (RTCORBA::NetworkPriority network_priority
,
49 RTCORBA::Priority
&corba_priority
) = 0;
52 TAO_END_VERSIONED_NAMESPACE_DECL
54 #endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
56 #include /**/ "ace/post.h"
57 #endif /* TAO_NETWORK_PRIORITY_MAPPING_H */