00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file TypeCode_SArg_Traits.h 00006 * 00007 * $Id: TypeCode_SArg_Traits.h 90386 2010-06-02 13:52:08Z vzykov $ 00008 * 00009 * @author Ossama Othman 00010 */ 00011 //============================================================================= 00012 00013 #ifndef TAO_TYPECODE_SARG_TRAITS_H 00014 #define TAO_TYPECODE_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/Pseudo_VarOut_T.h" 00026 #include "tao/Any_Insert_Policy_T.h" 00027 #include "tao/PortableServer/portableserver_export.h" 00028 00029 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00030 00031 namespace CORBA 00032 { 00033 class TypeCode; 00034 typedef TypeCode *TypeCode_ptr; 00035 00036 typedef TAO_Pseudo_Var_T<TypeCode> TypeCode_var; 00037 typedef TAO_Pseudo_Out_T<TypeCode> TypeCode_out; 00038 } 00039 00040 // -------------------------------------------------------------- 00041 00042 namespace TAO 00043 { 00044 template <typename T> class SArg_Traits; 00045 00046 /// Used in generated code if CORBA::TypeCode is an argument or 00047 /// return type. 00048 template<> 00049 class TAO_PortableServer_Export SArg_Traits<CORBA::TypeCode> 00050 : public Object_SArg_Traits_T<CORBA::TypeCode_ptr, 00051 CORBA::TypeCode_var, 00052 CORBA::TypeCode_out, 00053 TAO::Any_Insert_Policy_Stream 00054 > 00055 { 00056 }; 00057 } 00058 00059 TAO_END_VERSIONED_NAMESPACE_DECL 00060 00061 #include /**/ "ace/post.h" 00062 00063 #endif /* TAO_TYPECODE_SARG_TRAITS_H */