diff options
Diffstat (limited to 'TAO/tao/Fixed_Array_Argument_T.cpp')
-rw-r--r-- | TAO/tao/Fixed_Array_Argument_T.cpp | 82 |
1 files changed, 49 insertions, 33 deletions
diff --git a/TAO/tao/Fixed_Array_Argument_T.cpp b/TAO/tao/Fixed_Array_Argument_T.cpp index 4d02a03d3bf..022a61356eb 100644 --- a/TAO/tao/Fixed_Array_Argument_T.cpp +++ b/TAO/tao/Fixed_Array_Argument_T.cpp @@ -4,7 +4,6 @@ #define TAO_FIXED_ARRAY_ARGUMENT_T_C #include "tao/Fixed_Array_Argument_T.h" -#include "tao/Dynamic_ParameterC.h" #if !defined (__ACE_INLINE__) #include "tao/Fixed_Array_Argument_T.inl" @@ -14,9 +13,12 @@ ACE_RCSID (tao, Fixed_Array_Argument_T, "$Id$") -template<typename S, typename S_slice, typename S_forany> +template<typename S, + typename S_slice, + typename S_forany, + typename Insert_Policy> CORBA::Boolean -TAO::In_Fixed_Array_Argument_T<S,S_slice,S_forany>::marshal ( +TAO::In_Fixed_Array_Argument_T<S,S_slice,S_forany,Insert_Policy>::marshal ( TAO_OutputCDR & cdr ) { @@ -25,32 +27,39 @@ TAO::In_Fixed_Array_Argument_T<S,S_slice,S_forany>::marshal ( #if TAO_HAS_INTERCEPTORS == 1 -template<typename S, typename S_slice, typename S_forany> +template<typename S, + typename S_slice, + typename S_forany, + typename Insert_Policy> void -TAO::In_Fixed_Array_Argument_T<S,S_slice,S_forany>::interceptor_param ( - Dynamic::Parameter & p - ) +TAO::In_Fixed_Array_Argument_T<S,S_slice,S_forany,Insert_Policy>::interceptor_value ( + CORBA::Any *any) const { - p.argument <<= this->x_; - p.mode = CORBA::PARAM_IN; + this->Insert_Policy::any_insert (any, this->x_); } #endif /* TAO_HAS_INTERCEPTORS */ // =========================================================== -template<typename S, typename S_slice, typename S_forany> +template<typename S, + typename S_slice, + typename S_forany, + typename Insert_Policy> CORBA::Boolean -TAO::Inout_Fixed_Array_Argument_T<S,S_slice,S_forany>::marshal ( +TAO::Inout_Fixed_Array_Argument_T<S,S_slice,S_forany,Insert_Policy>::marshal ( TAO_OutputCDR & cdr ) { return cdr << this->x_; } -template<typename S, typename S_slice, typename S_forany> +template<typename S, + typename S_slice, + typename S_forany, + typename Insert_Policy> CORBA::Boolean -TAO::Inout_Fixed_Array_Argument_T<S,S_slice,S_forany>::demarshal ( +TAO::Inout_Fixed_Array_Argument_T<S,S_slice,S_forany,Insert_Policy>::demarshal ( TAO_InputCDR & cdr ) { @@ -59,23 +68,27 @@ TAO::Inout_Fixed_Array_Argument_T<S,S_slice,S_forany>::demarshal ( #if TAO_HAS_INTERCEPTORS == 1 -template<typename S, typename S_slice, typename S_forany> +template<typename S, + typename S_slice, + typename S_forany, + typename Insert_Policy> void -TAO::Inout_Fixed_Array_Argument_T<S,S_slice,S_forany>::interceptor_param ( - Dynamic::Parameter & p - ) +TAO::Inout_Fixed_Array_Argument_T<S,S_slice,S_forany,Insert_Policy>::interceptor_value ( + CORBA::Any *any) const { - p.argument <<= this->x_; - p.mode = CORBA::PARAM_INOUT; + this->Insert_Policy::any_insert (any, this->x_); } #endif /* TAO_HAS_INTERCEPTORS */ // ============================================================== -template<typename S, typename S_slice, typename S_forany> +template<typename S, + typename S_slice, + typename S_forany, + typename Insert_Policy> CORBA::Boolean -TAO::Out_Fixed_Array_Argument_T<S,S_slice,S_forany>::demarshal ( +TAO::Out_Fixed_Array_Argument_T<S,S_slice,S_forany,Insert_Policy>::demarshal ( TAO_InputCDR & cdr ) { @@ -84,14 +97,15 @@ TAO::Out_Fixed_Array_Argument_T<S,S_slice,S_forany>::demarshal ( #if TAO_HAS_INTERCEPTORS == 1 -template<typename S, typename S_slice, typename S_forany> +template<typename S, + typename S_slice, + typename S_forany, + typename Insert_Policy> void -TAO::Out_Fixed_Array_Argument_T<S,S_slice,S_forany>::interceptor_param ( - Dynamic::Parameter & p - ) +TAO::Out_Fixed_Array_Argument_T<S,S_slice,S_forany,Insert_Policy>::interceptor_value ( + CORBA::Any *any) const { - p.argument <<= this->x_; - p.mode = CORBA::PARAM_OUT; + this->Insert_Policy::any_insert (any, this->x_); } #endif /* TAO_HAS_INTERCEPTORS */ @@ -102,9 +116,10 @@ template<typename S, typename S_slice, typename S_var, typename S_forany, - typename S_tag> + typename S_tag, + typename Insert_Policy> CORBA::Boolean -TAO::Ret_Fixed_Array_Argument_T<S,S_slice,S_var,S_forany,S_tag>::demarshal ( +TAO::Ret_Fixed_Array_Argument_T<S,S_slice,S_var,S_forany,S_tag,Insert_Policy>::demarshal ( TAO_InputCDR & cdr ) { @@ -124,12 +139,13 @@ template<typename S, typename S_slice, typename S_var, typename S_forany, - typename S_tag> + typename S_tag, + typename Insert_Policy> void -TAO::Ret_Fixed_Array_Argument_T<S,S_slice,S_var,S_forany,S_tag>:: -interceptor_result (CORBA::Any * any) +TAO::Ret_Fixed_Array_Argument_T<S,S_slice,S_var,S_forany,S_tag,Insert_Policy>:: +interceptor_value (CORBA::Any *any) const { - (*any) <<= S_forany (this->x_.ptr ()); + this->Insert_Policy::any_insert (any, S_forany (this->x_.ptr ())); } #endif /* TAO_HAS_INTERCEPTORS */ |