00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file Object_SArg_Traits.h 00006 * 00007 * $Id: Object_SArg_Traits.h 90386 2010-06-02 13:52:08Z vzykov $ 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 #include "tao/PortableServer/portableserver_export.h" 00029 00030 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00031 00032 namespace CORBA 00033 { 00034 class Object; 00035 typedef Object *Object_ptr; 00036 00037 typedef TAO_Pseudo_Var_T<Object> Object_var; 00038 typedef TAO_Pseudo_Out_T<Object> Object_out; 00039 } 00040 00041 // -------------------------------------------------------------- 00042 00043 namespace TAO 00044 { 00045 /// Used in generated code if CORBA::Object is an argument or 00046 /// return type. 00047 template<> 00048 class TAO_PortableServer_Export SArg_Traits<CORBA::Object> 00049 : public Object_SArg_Traits_T<CORBA::Object_ptr, 00050 CORBA::Object_var, 00051 CORBA::Object_out, 00052 TAO::Any_Insert_Policy_Stream> 00053 { 00054 }; 00055 } 00056 00057 TAO_END_VERSIONED_NAMESPACE_DECL 00058 00059 #include /**/ "ace/post.h" 00060 00061 #endif /* TAO_OBJECT_SARG_TRAITS_H */