Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef TAO_MULTI_PRIORITY_MAPPING_H
00019 #define TAO_MULTI_PRIORITY_MAPPING_H
00020
00021 #include "tao/orbconf.h"
00022
00023 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00024 # pragma once
00025 #endif
00026
00027 #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
00028
00029 #include "tao/RTCORBA/Priority_Mapping.h"
00030
00031 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044 class TAO_RTCORBA_Export TAO_Multi_Priority_Mapping
00045 : public TAO_Priority_Mapping
00046 {
00047 public:
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058 TAO_Multi_Priority_Mapping (int base_native_priority,
00059 int base_corba_priority,
00060 int priority_spacing = 1,
00061 int priorities_contiguous = 1,
00062 int policy = ACE_SCHED_FIFO);
00063
00064
00065 virtual ~TAO_Multi_Priority_Mapping (void);
00066
00067 virtual CORBA::Boolean
00068 to_native (RTCORBA::Priority corba_priority,
00069 RTCORBA::NativePriority &native_priority);
00070 virtual CORBA::Boolean
00071 to_CORBA (RTCORBA::NativePriority native_priority,
00072 RTCORBA::Priority &corba_priority);
00073
00074 private:
00075
00076
00077 int base_native_priority_;
00078 int base_corba_priority_;
00079
00080 const int priority_spacing_;
00081 const int priorities_contiguous_;
00082
00083
00084 int policy_;
00085
00086
00087 int const min_;
00088 int const max_;
00089 };
00090
00091 TAO_END_VERSIONED_NAMESPACE_DECL
00092
00093 #endif
00094
00095 #endif