Fixed_Array_SArgument_T.cpp

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

Generated on Tue Feb 2 17:40:54 2010 for TAO_PortableServer by  doxygen 1.4.7