blob: 1195b6e4f4d2d7b9dbfa0b7dcb6053f4327868a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
//=============================================================================
/**
* @file Direct_Priority_Mapping.h
*
* $Id$
*
* Declares the Direct_Priority_Mapping interface, as defined in the
* RT-CORBA spec.
*
* @author Carlos O'Ryan (coryan@cs.wustl.edu)
*/
#ifndef TAO_DIRECT_PRIORITY_MAPPING_H
#define TAO_DIRECT_PRIORITY_MAPPING_H
#include /**/ "ace/pre.h"
#include "tao/orbconf.h"
#include "Priority_Mapping.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
/**
* @class TAO_Direct_Priority_Mapping
*
* @brief A simple implementation of the Priority_Mapping interface
*
* This implementation uses direct mapping.
*/
class TAO_RTCORBA_Export TAO_Direct_Priority_Mapping : public TAO_Priority_Mapping
{
public:
/// Default constructor
TAO_Direct_Priority_Mapping (long);
/// The destructor
virtual ~TAO_Direct_Priority_Mapping (void);
virtual CORBA::Boolean
to_native (RTCORBA::Priority corba_priority,
RTCORBA::NativePriority &native_priority);
virtual CORBA::Boolean
to_CORBA (RTCORBA::NativePriority native_priority,
RTCORBA::Priority &corba_priority);
private:
};
#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
#include /**/ "ace/post.h"
#endif /* TAO_DIRECT_PRIORITY_MAPPING_H */
|