Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef TAO_UTILS_RIR_NARROW_H
00014 #define TAO_UTILS_RIR_NARROW_H
00015
00016 #include "ace/pre.h"
00017
00018 #include "ace/config-all.h"
00019
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif
00023
00024 #include "tao/PI/PI.h"
00025 #include "tao/ORB.h"
00026
00027 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00028
00029 namespace TAO
00030 {
00031 namespace Utils
00032 {
00033
00034
00035
00036
00037
00038
00039
00040 template<class T> class RIR_Narrow
00041 {
00042 public:
00043 typedef typename T::_ptr_type _ptr_type;
00044 typedef typename T::_var_type _var_type;
00045
00046
00047
00048 static _ptr_type narrow (CORBA::ORB_ptr orb, char const * id);
00049
00050
00051
00052 static _ptr_type narrow (PortableInterceptor::ORBInitInfo_ptr orb,
00053 char const * id);
00054
00055 private:
00056 static _ptr_type narrow_object (CORBA::Object_ptr object);
00057 };
00058
00059 }
00060 }
00061
00062
00063 TAO_END_VERSIONED_NAMESPACE_DECL
00064
00065 #if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
00066 # include "tao/Utils/RIR_Narrow.cpp"
00067 #endif
00068
00069 #include "ace/post.h"
00070
00071 #endif