Direct_Priority_Mapping.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 // =======================================================================
00004 /**
00005  *  @file    Direct_Priority_Mapping.h
00006  *
00007  *  $Id: Direct_Priority_Mapping.h 78627 2007-06-28 08:50:01Z johnnyw $
00008  *
00009  *  Declares the Direct_Priority_Mapping interface, as defined in the
00010  *  RT-CORBA spec.
00011  *
00012  *  @author Carlos O'Ryan (coryan@cs.wustl.edu)
00013  */
00014 // =======================================================================
00015 
00016 #ifndef TAO_DIRECT_PRIORITY_MAPPING_H
00017 #define TAO_DIRECT_PRIORITY_MAPPING_H
00018 #include /**/ "ace/pre.h"
00019 
00020 #include "tao/orbconf.h"
00021 
00022 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00023 # pragma once
00024 #endif /* ACE_LACKS_PRAGMA_ONCE */
00025 
00026 #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
00027 
00028 #include "tao/RTCORBA/Priority_Mapping.h"
00029 
00030 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00031 
00032 /**
00033  * @class TAO_Direct_Priority_Mapping
00034  *
00035  * @brief A simple implementation of the Priority_Mapping interface
00036  *
00037  * This implementation uses direct mapping.
00038  */
00039 class TAO_RTCORBA_Export TAO_Direct_Priority_Mapping : public TAO_Priority_Mapping
00040 {
00041 public:
00042 
00043   TAO_Direct_Priority_Mapping (long);
00044 
00045   /// The destructor
00046   virtual ~TAO_Direct_Priority_Mapping (void);
00047 
00048   virtual CORBA::Boolean
00049       to_native (RTCORBA::Priority corba_priority,
00050                  RTCORBA::NativePriority &native_priority);
00051   virtual CORBA::Boolean
00052       to_CORBA (RTCORBA::NativePriority native_priority,
00053                 RTCORBA::Priority &corba_priority);
00054 };
00055 
00056 TAO_END_VERSIONED_NAMESPACE_DECL
00057 
00058 #endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
00059 
00060 #include /**/ "ace/post.h"
00061 #endif /* TAO_DIRECT_PRIORITY_MAPPING_H */

Generated on Tue Feb 2 17:42:49 2010 for TAO_RTCORBA by  doxygen 1.4.7