Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / PortableServer / Fixed_Array_SArgument_T.cpp
blob307757ab78b4991331bd3ec7b20a12c29ff24956
1 #ifndef TAO_FIXED_ARRAY_SARGUMENT_T_CPP
2 #define TAO_FIXED_ARRAY_SARGUMENT_T_CPP
4 #if !defined (__ACE_INLINE__)
5 #include "tao/PortableServer/Fixed_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>
12 CORBA::Boolean
13 TAO::In_Fixed_Array_SArgument_T<S_forany,
14 Insert_Policy>::demarshal (TAO_InputCDR &cdr)
16 S_forany tmp (this->x_);
17 return cdr >> tmp;
20 #if TAO_HAS_INTERCEPTORS == 1
22 template<typename S_forany,
23 template <typename> class Insert_Policy>
24 void
25 TAO::In_Fixed_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>
38 CORBA::Boolean
39 TAO::Inout_Fixed_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>
47 CORBA::Boolean
48 TAO::Inout_Fixed_Array_SArgument_T<S_forany,
49 Insert_Policy>::
50 demarshal (TAO_InputCDR & cdr)
52 S_forany tmp (this->x_);
53 return cdr >> tmp;
56 #if TAO_HAS_INTERCEPTORS == 1
58 template<typename S_forany,
59 template <typename> class Insert_Policy>
60 void
61 TAO::Inout_Fixed_Array_SArgument_T<S_forany,
62 Insert_Policy>::interceptor_value (
63 CORBA::Any *any) const
65 Insert_Policy<S_forany>::any_insert (any, S_forany (this->x_));
68 #endif /* TAO_HAS_INTERCEPTORS */
70 // ==============================================================
72 template<typename S_forany,
73 template <typename> class Insert_Policy>
74 CORBA::Boolean
75 TAO::Out_Fixed_Array_SArgument_T<S_forany,
76 Insert_Policy>::marshal (TAO_OutputCDR &cdr)
78 return cdr << S_forany (this->x_);
81 #if TAO_HAS_INTERCEPTORS == 1
83 template<typename S_forany,
84 template <typename> class Insert_Policy>
85 void
86 TAO::Out_Fixed_Array_SArgument_T<S_forany,
87 Insert_Policy>::interceptor_value (
88 CORBA::Any *any) const
90 Insert_Policy<S_forany>::any_insert (any, S_forany (this->x_));
93 #endif /* TAO_HAS_INTERCEPTORS */
95 // ============================================================
97 template<typename S_var,
98 typename S_forany,
99 template <typename> class Insert_Policy>
100 CORBA::Boolean
101 TAO::Ret_Fixed_Array_SArgument_T<S_var,
102 S_forany,
103 Insert_Policy>::marshal (
104 TAO_OutputCDR & cdr
107 return cdr << S_forany (this->x_.inout ());
110 #if TAO_HAS_INTERCEPTORS == 1
112 template<typename S_var,
113 typename S_forany,
114 template <typename> class Insert_Policy>
115 void
116 TAO::Ret_Fixed_Array_SArgument_T<S_var,
117 S_forany,
118 Insert_Policy>::interceptor_value (
119 CORBA::Any *any) const
121 Insert_Policy<S_forany>::any_insert (any, S_forany (this->x_.ptr ()));
124 #endif /* TAO_HAS_INTERCEPTORS */
126 TAO_END_VERSIONED_NAMESPACE_DECL
128 #endif /* TAO_FIXED_ARRAY_SARGUMENT_T_CPP */