UB_String_Argument_T.cpp

Go to the documentation of this file.
00001 // UB_String_Argument_T.cpp,v 1.11 2006/06/27 06:22:13 jwillemsen Exp
00002 
00003 #ifndef TAO_UB_STRING_ARGUMENT_T_CPP
00004 #define TAO_UB_STRING_ARGUMENT_T_CPP
00005 
00006 #include "tao/UB_String_Argument_T.h"
00007 #include "tao/CDR.h"
00008 
00009 #if !defined (__ACE_INLINE__)
00010 #include "tao/UB_String_Argument_T.inl"
00011 #endif /* __ACE_INLINE__ */
00012 
00013 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00014 
00015 template<typename S_var,
00016          class Insert_Policy>
00017 CORBA::Boolean
00018 TAO::In_UB_String_Argument_T<S_var,Insert_Policy>::marshal (
00019     TAO_OutputCDR &cdr
00020   )
00021 {
00022   return cdr << this->x_;
00023 }
00024 
00025 #if TAO_HAS_INTERCEPTORS == 1
00026 
00027 template<typename S_var,
00028          class Insert_Policy>
00029 void
00030 TAO::In_UB_String_Argument_T<S_var,Insert_Policy>::interceptor_value (
00031     CORBA::Any *any
00032   ) const
00033 {
00034   Insert_Policy::any_insert (any, this->x_);
00035 }
00036 
00037 #endif /* TAO_HAS_INTERCEPTORS */
00038 
00039 // ===========================================================
00040 
00041 template<typename S_var,
00042          class Insert_Policy>
00043 CORBA::Boolean
00044 TAO::Inout_UB_String_Argument_T<S_var,Insert_Policy>::marshal (
00045     TAO_OutputCDR &cdr
00046   )
00047 {
00048   return cdr << this->x_;
00049 }
00050 
00051 template<typename S_var,
00052          class Insert_Policy>
00053 CORBA::Boolean
00054 TAO::Inout_UB_String_Argument_T<S_var,Insert_Policy>::demarshal (
00055     TAO_InputCDR & cdr
00056   )
00057 {
00058   delete [] this->x_;
00059   return cdr >> this->x_;
00060 }
00061 
00062 #if TAO_HAS_INTERCEPTORS == 1
00063 
00064 template<typename S_var,
00065          class Insert_Policy>
00066 void
00067 TAO::Inout_UB_String_Argument_T<S_var,Insert_Policy>::interceptor_value (
00068     CORBA::Any *any
00069   ) const
00070 {
00071   Insert_Policy::any_insert (
00072       any,
00073       this->x_
00074     );
00075 }
00076 
00077 #endif /* TAO_HAS_INTERCEPTORS */
00078 
00079 // ==============================================================
00080 
00081 template<typename S_var,
00082          class Insert_Policy>
00083 CORBA::Boolean
00084 TAO::Out_UB_String_Argument_T<S_var,Insert_Policy>::demarshal (TAO_InputCDR & cdr)
00085 {
00086   return cdr >> this->x_;
00087 }
00088 
00089 #if TAO_HAS_INTERCEPTORS == 1
00090 
00091 template<typename S_var,
00092          class Insert_Policy>
00093 void
00094 TAO::Out_UB_String_Argument_T<S_var,Insert_Policy>::interceptor_value (
00095     CORBA::Any *any
00096   ) const
00097 {
00098   Insert_Policy::any_insert (
00099       any,
00100       this->x_
00101     );
00102 }
00103 
00104 #endif /* TAO_HAS_INTERCEPTORS */
00105 
00106 // ============================================================
00107 
00108 template<typename S_var,
00109          class Insert_Policy>
00110 CORBA::Boolean
00111 TAO::Ret_UB_String_Argument_T<S_var,Insert_Policy>::demarshal (TAO_InputCDR & cdr)
00112 {
00113   return cdr >> this->x_.out ();
00114 }
00115 
00116 #if TAO_HAS_INTERCEPTORS == 1
00117 
00118 template<typename S_var,
00119          class Insert_Policy>
00120 void
00121 TAO::Ret_UB_String_Argument_T<S_var,Insert_Policy>::interceptor_value (
00122   CORBA::Any *any) const
00123 {
00124   Insert_Policy::any_insert (any, this->x_.in ());
00125 }
00126 
00127 #endif /* TAO_HAS_INTERCEPTORS */
00128 
00129 TAO_END_VERSIONED_NAMESPACE_DECL
00130 
00131 #endif /* TAO_UB_STRING_ARGUMENT_T_CPP */

Generated on Thu Nov 9 11:54:27 2006 for TAO by doxygen 1.3.6