3 // =======================================================================
5 * @file Direct_Priority_Mapping.h
7 * Declares the Direct_Priority_Mapping interface, as defined in the
10 * @author Carlos O'Ryan (coryan@cs.wustl.edu)
12 // =======================================================================
14 #ifndef TAO_DIRECT_PRIORITY_MAPPING_H
15 #define TAO_DIRECT_PRIORITY_MAPPING_H
16 #include /**/ "ace/pre.h"
18 #include "tao/orbconf.h"
20 #if !defined (ACE_LACKS_PRAGMA_ONCE)
22 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
26 #include "tao/RTCORBA/Priority_Mapping.h"
28 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
31 * @class TAO_Direct_Priority_Mapping
33 * @brief A simple implementation of the Priority_Mapping interface
35 * This implementation uses direct mapping.
37 class TAO_RTCORBA_Export TAO_Direct_Priority_Mapping
: public TAO_Priority_Mapping
40 TAO_Direct_Priority_Mapping (long);
43 virtual ~TAO_Direct_Priority_Mapping ();
45 virtual CORBA::Boolean
46 to_native (RTCORBA::Priority corba_priority
,
47 RTCORBA::NativePriority
&native_priority
);
48 virtual CORBA::Boolean
49 to_CORBA (RTCORBA::NativePriority native_priority
,
50 RTCORBA::Priority
&corba_priority
);
53 TAO_END_VERSIONED_NAMESPACE_DECL
55 #endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
57 #include /**/ "ace/post.h"
58 #endif /* TAO_DIRECT_PRIORITY_MAPPING_H */