blob: f843ec7199766c951f74d041435b86d1879f1c3f (
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
|
/* -*- C++ -*- */
/**
* @file RT_Priority_Mapping.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
*
*
*/
#ifndef TAO_Notify_Tests_RT_PRIORITY_MAPPING_H
#define TAO_Notify_Tests_RT_PRIORITY_MAPPING_H
#include "ace/pre.h"
#include "rt_notify_test_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "../lib/Priority_Mapping.h"
#include "tao/RTCORBA/Priority_Mapping_Manager.h"
/**
* @class TAO_Notify_Tests_RT_Priority_Mapping
*
* @brief Delegates to a RTCORBA::PriorityMapping
*
*/
class TAO_RT_NOTIFY_TEST_Export TAO_Notify_Tests_RT_Priority_Mapping : public TAO_Notify_Tests_Priority_Mapping
{
public:
/// The destructor
virtual ~TAO_Notify_Tests_RT_Priority_Mapping (void);
/// Init the Mapping manager.
void init (CORBA::ORB_ptr orb ACE_ENV_ARG_DECL);
virtual CORBA::Boolean
to_native (CORBA::Short corba_priority,
CORBA::Short &native_priority);
virtual CORBA::Boolean
to_CORBA (CORBA::Short native_priority,
CORBA::Short &corba_priority);
protected:
/// The Priority Mapping helper.
RTCORBA::PriorityMapping *priority_mapping_;
};
#include "ace/post.h"
#endif /* TAO_Notify_Tests_RT_PRIORITY_MAPPING_H */
|