00001
00002
00003 #ifndef TAO_BD_STRING_SARGUMENT_T_CPP
00004 #define TAO_BD_STRING_SARGUMENT_T_CPP
00005
00006 #include "tao/PortableServer/BD_String_SArgument_T.h"
00007
00008 #if !defined (__ACE_INLINE__)
00009 #include "tao/PortableServer/BD_String_SArgument_T.inl"
00010 #endif
00011
00012 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00013
00014 template<typename S_var,
00015 size_t BOUND,
00016 class Insert_Policy>
00017 CORBA::Boolean
00018 TAO::In_BD_String_SArgument_T<S_var,BOUND,Insert_Policy>::demarshal (
00019 TAO_InputCDR & cdr
00020 )
00021 {
00022 typedef typename S_var::s_traits::to_type to_type;
00023 return cdr >> to_type (this->x_.out (), BOUND);
00024 }
00025
00026 #if TAO_HAS_INTERCEPTORS == 1
00027
00028 template<typename S_var,
00029 size_t BOUND,
00030 class Insert_Policy>
00031 void
00032 TAO::In_BD_String_SArgument_T<S_var,BOUND,Insert_Policy>::interceptor_value (
00033 CORBA::Any *any) const
00034 {
00035 typedef typename S_var::s_traits::from_type from_type;
00036 Insert_Policy::any_insert (
00037 any,
00038 from_type (this->x_.in (), BOUND)
00039 );
00040 }
00041
00042 #endif
00043
00044
00045
00046 template<typename S_var,
00047 size_t BOUND,
00048 class Insert_Policy>
00049 CORBA::Boolean
00050 TAO::Inout_BD_String_SArgument_T<S_var,BOUND,Insert_Policy>::marshal (
00051 TAO_OutputCDR & cdr
00052 )
00053 {
00054 typedef typename S_var::s_traits::from_type from_type;
00055 return cdr << from_type (this->x_.in (), BOUND);
00056 }
00057
00058 template<typename S_var,
00059 size_t BOUND,
00060 class Insert_Policy>
00061 CORBA::Boolean
00062 TAO::Inout_BD_String_SArgument_T<S_var,BOUND,Insert_Policy>::demarshal (
00063 TAO_InputCDR & cdr
00064 )
00065 {
00066 typedef typename S_var::s_traits::to_type to_type;
00067 return cdr >> to_type (this->x_.out (), BOUND);
00068 }
00069
00070 #if TAO_HAS_INTERCEPTORS == 1
00071
00072 template<typename S_var,
00073 size_t BOUND,
00074 class Insert_Policy>
00075 void
00076 TAO::Inout_BD_String_SArgument_T<S_var,BOUND,Insert_Policy>::
00077 interceptor_value (CORBA::Any *any) const
00078 {
00079 typedef typename S_var::s_traits::from_type from_type;
00080 Insert_Policy::any_insert (
00081 any,
00082 from_type (this->x_.in (), BOUND)
00083 );
00084 }
00085
00086 #endif
00087
00088
00089
00090 template<typename S_var,
00091 size_t BOUND,
00092 class Insert_Policy>
00093 CORBA::Boolean
00094 TAO::Out_BD_String_SArgument_T<S_var,BOUND,Insert_Policy>::marshal (
00095 TAO_OutputCDR &cdr
00096 )
00097 {
00098 typedef typename S_var::s_traits::from_type from_type;
00099 return cdr << from_type (this->x_.in (), BOUND);
00100 }
00101
00102 #if TAO_HAS_INTERCEPTORS == 1
00103
00104 template<typename S_var,
00105 size_t BOUND,
00106 class Insert_Policy>
00107 void
00108 TAO::Out_BD_String_SArgument_T<S_var,BOUND,Insert_Policy>::
00109 interceptor_value (CORBA::Any *any) const
00110 {
00111 typedef typename S_var::s_traits::from_type from_type;
00112 Insert_Policy::any_insert (
00113 any,
00114 from_type (this->x_.in (), BOUND)
00115 );
00116 }
00117
00118 #endif
00119
00120
00121
00122 template<typename S_var,
00123 size_t BOUND,
00124 class Insert_Policy>
00125 CORBA::Boolean
00126 TAO::Ret_BD_String_SArgument_T<S_var,BOUND,Insert_Policy>::marshal (
00127 TAO_OutputCDR & cdr
00128 )
00129 {
00130 typedef typename S_var::s_traits::from_type from_type;
00131 return cdr << from_type (this->x_.in (), BOUND);
00132 }
00133
00134 #if TAO_HAS_INTERCEPTORS == 1
00135
00136 template<typename S_var,
00137 size_t BOUND,
00138 class Insert_Policy>
00139 void
00140 TAO::Ret_BD_String_SArgument_T<S_var,BOUND,Insert_Policy>::
00141 interceptor_value (CORBA::Any *any) const
00142 {
00143 typedef typename S_var::s_traits::from_type from_type;
00144 Insert_Policy::any_insert (
00145 any,
00146 from_type (this->x_.in (), BOUND)
00147 );
00148 }
00149
00150 #endif
00151
00152 TAO_END_VERSIONED_NAMESPACE_DECL
00153
00154 #endif