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