1 #ifndef TAO_VAR_ARRAY_SARGUMENT_T_CPP
2 #define TAO_VAR_ARRAY_SARGUMENT_T_CPP
4 #if !defined (__ACE_INLINE__)
5 #include "tao/PortableServer/Var_Array_SArgument_T.inl"
6 #endif /* __ACE_INLINE__ */
8 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
10 template<typename S_forany
,
11 template <typename
> class Insert_Policy
>
13 TAO::In_Var_Array_SArgument_T
<S_forany
,
14 Insert_Policy
>::demarshal (TAO_InputCDR
& cdr
)
16 S_forany
tmp (this->x_
);
20 #if TAO_HAS_INTERCEPTORS == 1
22 template<typename S_forany
,
23 template <typename
> class Insert_Policy
>
25 TAO::In_Var_Array_SArgument_T
<S_forany
,
26 Insert_Policy
>::interceptor_value (
27 CORBA::Any
*any
) const
29 Insert_Policy
<S_forany
>::any_insert (any
, S_forany (this->x_
));
32 #endif /* TAO_HAS_INTERCEPTORS */
34 // ===========================================================
36 template<typename S_forany
,
37 template <typename
> class Insert_Policy
>
39 TAO::Inout_Var_Array_SArgument_T
<S_forany
,
40 Insert_Policy
>::marshal (TAO_OutputCDR
&cdr
)
42 return cdr
<< S_forany (this->x_
);
45 template<typename S_forany
,
46 template <typename
> class Insert_Policy
>
48 TAO::Inout_Var_Array_SArgument_T
<S_forany
,
49 Insert_Policy
>::demarshal (TAO_InputCDR
& cdr
)
51 S_forany
tmp (this->x_
);
55 #if TAO_HAS_INTERCEPTORS == 1
57 template<typename S_forany
,
58 template <typename
> class Insert_Policy
>
60 TAO::Inout_Var_Array_SArgument_T
<S_forany
,
61 Insert_Policy
>::interceptor_value (
62 CORBA::Any
*any
) const
64 typedef typename
S_forany::_slice_type slice_type
;
65 Insert_Policy
<S_forany
>::any_insert (
67 S_forany (const_cast <slice_type
*>(this->x_
)));
70 #endif /* TAO_HAS_INTERCEPTORS */
72 // ==============================================================
74 template<typename S_var
,
76 template <typename
> class Insert_Policy
>
78 TAO::Out_Var_Array_SArgument_T
<S_var
,
80 Insert_Policy
>::marshal (
84 S_forany
tmp (this->x_
.ptr ());
88 #if TAO_HAS_INTERCEPTORS == 1
90 template<typename S_var
,
92 template <typename
> class Insert_Policy
>
94 TAO::Out_Var_Array_SArgument_T
<S_var
,
96 Insert_Policy
>::interceptor_value (
97 CORBA::Any
*any
) const
99 Insert_Policy
<S_forany
>::any_insert (any
, S_forany (this->x_
.ptr ()));
102 #endif /* TAO_HAS_INTERCEPTORS */
104 // ============================================================
106 template<typename S_var
,
108 template <typename
> class Insert_Policy
>
110 TAO::Ret_Var_Array_SArgument_T
<S_var
,
112 Insert_Policy
>::marshal (
116 return cdr
<< S_forany (this->x_
.ptr ());
119 #if TAO_HAS_INTERCEPTORS == 1
121 template<typename S_var
,
123 template <typename
> class Insert_Policy
>
125 TAO::Ret_Var_Array_SArgument_T
<S_var
,
127 Insert_Policy
>::interceptor_value (
128 CORBA::Any
*any
) const
130 Insert_Policy
<S_forany
>::any_insert (any
, S_forany (this->x_
.ptr ()));
133 #endif /* TAO_HAS_INTERCEPTORS */
135 TAO_END_VERSIONED_NAMESPACE_DECL
137 #endif /* TAO_VAR_ARRAY_SARGUMENT_T_CPP */