Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / PortableServer / Special_Basic_SArgument_T.cpp
blob768d4696efb8cecd5fd69a387b49399a3935fb25
1 #ifndef TAO_SPECIAL_BASIC_SARGUMENT_T_CPP
2 #define TAO_SPECIAL_BASIC_SARGUMENT_T_CPP
4 #if !defined (__ACE_INLINE__)
5 #include "tao/PortableServer/Special_Basic_SArgument_T.inl"
6 #endif /* __ACE_INLINE__ */
9 // ============================================================
11 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
13 template<typename S,
14 typename to_S,
15 typename from_S,
16 template <typename> class Insert_Policy>
17 CORBA::Boolean
18 TAO::In_Special_Basic_SArgument_T<S,to_S,from_S,Insert_Policy>::demarshal (
19 TAO_InputCDR & cdr
22 return cdr >> to_S (this->x_);
25 #if TAO_HAS_INTERCEPTORS == 1
27 template<typename S,
28 typename to_S,
29 typename from_S,
30 template <typename> class Insert_Policy>
31 void
32 TAO::In_Special_Basic_SArgument_T<S,to_S,from_S,Insert_Policy>::
33 interceptor_value (CORBA::Any *any) const
35 Insert_Policy<from_S>::any_insert (any, from_S (this->x_));
38 #endif /* TAO_HAS_INTERCEPTORS */
40 // ===========================================================
42 template<typename S,
43 typename to_S,
44 typename from_S,
45 template <typename> class Insert_Policy>
46 CORBA::Boolean
47 TAO::Inout_Special_Basic_SArgument_T<S,to_S,from_S,Insert_Policy>::marshal (
48 TAO_OutputCDR & cdr
51 return cdr << from_S (this->x_);
54 template<typename S,
55 typename to_S,
56 typename from_S,
57 template <typename> class Insert_Policy>
58 CORBA::Boolean
59 TAO::Inout_Special_Basic_SArgument_T<S,to_S,from_S,Insert_Policy>::demarshal (
60 TAO_InputCDR & cdr
63 return cdr >> to_S (this->x_);
66 #if TAO_HAS_INTERCEPTORS == 1
68 template<typename S,
69 typename to_S,
70 typename from_S,
71 template <typename> class Insert_Policy>
72 void
73 TAO::Inout_Special_Basic_SArgument_T<S,to_S,from_S,Insert_Policy>::
74 interceptor_value (CORBA::Any *any) const
76 Insert_Policy<from_S>::any_insert (any, from_S (this->x_));
79 #endif /* TAO_HAS_INTERCEPTORS */
81 // ==============================================================
83 template<typename S,
84 typename to_S,
85 typename from_S,
86 template <typename> class Insert_Policy>
87 CORBA::Boolean
88 TAO::Out_Special_Basic_SArgument_T<S,to_S,from_S,Insert_Policy>::marshal (
89 TAO_OutputCDR & cdr
92 return cdr << from_S (this->x_);
95 #if TAO_HAS_INTERCEPTORS == 1
97 template<typename S,
98 typename to_S,
99 typename from_S,
100 template <typename> class Insert_Policy>
101 void
102 TAO::Out_Special_Basic_SArgument_T<S,to_S,from_S,Insert_Policy>::
103 interceptor_value (CORBA::Any *any) const
105 Insert_Policy<from_S>::any_insert (any, from_S (this->x_));
108 #endif /* TAO_HAS_INTERCEPTORS */
110 // ==============================================================
112 template<typename S,
113 typename to_S,
114 typename from_S,
115 template <typename> class Insert_Policy>
116 CORBA::Boolean
117 TAO::Ret_Special_Basic_SArgument_T<S,to_S,from_S,Insert_Policy>::marshal (
118 TAO_OutputCDR & cdr
121 return cdr << from_S (this->x_);
124 #if TAO_HAS_INTERCEPTORS == 1
126 template<typename S,
127 typename to_S,
128 typename from_S,
129 template <typename> class Insert_Policy>
130 void
131 TAO::Ret_Special_Basic_SArgument_T<S,to_S,from_S,Insert_Policy>::
132 interceptor_value (CORBA::Any *any) const
134 Insert_Policy<from_S>::any_insert (any, from_S (this->x_));
137 #endif /* TAO_HAS_INTERCEPTORS */
139 TAO_END_VERSIONED_NAMESPACE_DECL
141 #endif /* TAO_SPECIAL_BASIC_SARGUMENT_T_CPP */