00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file Object_SArg_Traits.h 00006 * 00007 * $Id: Object_SArg_Traits.h 73268 2006-06-27 06:23:42Z jwillemsen $ 00008 * 00009 * @author Ossama Othman 00010 */ 00011 //============================================================================= 00012 00013 #ifndef TAO_OBJECT_SARG_TRAITS_H 00014 #define TAO_OBJECT_SARG_TRAITS_H 00015 00016 #include /**/ "ace/pre.h" 00017 00018 #include "tao/CORBA_methods.h" 00019 00020 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00021 # pragma once 00022 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00023 00024 #include "tao/PortableServer/Object_SArgument_T.h" 00025 #include "tao/PortableServer/SArg_Traits_T.h" 00026 #include "tao/Pseudo_VarOut_T.h" 00027 #include "tao/Any_Insert_Policy_T.h" 00028 00029 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00030 00031 namespace CORBA 00032 { 00033 class Object; 00034 typedef Object *Object_ptr; 00035 00036 typedef TAO_Pseudo_Var_T<Object> Object_var; 00037 typedef TAO_Pseudo_Out_T<Object> Object_out; 00038 } 00039 00040 // -------------------------------------------------------------- 00041 00042 namespace TAO 00043 { 00044 /// Used in generated code if CORBA::Object is an argument or 00045 /// return type. 00046 template<> 00047 class TAO_PortableServer_Export SArg_Traits<CORBA::Object> 00048 : public Object_SArg_Traits_T<CORBA::Object_ptr, 00049 CORBA::Object_var, 00050 CORBA::Object_out, 00051 TAO::Any_Insert_Policy_Stream <CORBA::Object_ptr> 00052 > 00053 { 00054 }; 00055 } 00056 00057 TAO_END_VERSIONED_NAMESPACE_DECL 00058 00059 #include /**/ "ace/post.h" 00060 00061 #endif /* TAO_OBJECT_SARG_TRAITS_H */