Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / PortableServer / Fixed_Size_SArgument_T.cpp
blobb5ad7d82dd82f1a3c286cb5138a43aa70064f183
1 #ifndef TAO_FIXED_SIZE_SARGUMENT_T_CPP
2 #define TAO_FIXED_SIZE_SARGUMENT_T_CPP
4 #if !defined (__ACE_INLINE__)
5 #include "tao/PortableServer/Fixed_Size_SArgument_T.inl"
6 #endif /* __ACE_INLINE__ */
8 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
10 template<typename S,
11 template <typename> class Insert_Policy>
12 CORBA::Boolean
13 TAO::In_Fixed_Size_SArgument_T<S,Insert_Policy>::demarshal (TAO_InputCDR & cdr)
15 return cdr >> this->x_;
18 #if TAO_HAS_INTERCEPTORS == 1
20 template<typename S,
21 template <typename> class Insert_Policy>
22 void
23 TAO::In_Fixed_Size_SArgument_T<S,Insert_Policy>::interceptor_value (
24 CORBA::Any *any) const
26 Insert_Policy<S>::any_insert (any, this->x_);
29 #endif /* TAO_HAS_INTERCEPTORS */
31 // ===========================================================
33 template<typename S,
34 template <typename> class Insert_Policy>
35 CORBA::Boolean
36 TAO::Inout_Fixed_Size_SArgument_T<S,Insert_Policy>::marshal (TAO_OutputCDR &cdr)
38 return cdr << this->x_;
41 template<typename S,
42 template <typename> class Insert_Policy>
43 CORBA::Boolean
44 TAO::Inout_Fixed_Size_SArgument_T<S,Insert_Policy>::demarshal (
45 TAO_InputCDR & cdr)
47 return cdr >> this->x_;
50 #if TAO_HAS_INTERCEPTORS == 1
52 template<typename S,
53 template <typename> class Insert_Policy>
54 void
55 TAO::Inout_Fixed_Size_SArgument_T<S,Insert_Policy>::interceptor_value (
56 CORBA::Any *any) const
58 Insert_Policy<S>::any_insert (any, this->x_);
61 #endif /* TAO_HAS_INTERCEPTORS */
63 // ==============================================================
65 template<typename S,
66 template <typename> class Insert_Policy>
67 CORBA::Boolean
68 TAO::Out_Fixed_Size_SArgument_T<S,Insert_Policy>::marshal (TAO_OutputCDR &cdr)
70 return cdr << this->x_;
73 #if TAO_HAS_INTERCEPTORS == 1
75 template<typename S,
76 template <typename> class Insert_Policy>
77 void
78 TAO::Out_Fixed_Size_SArgument_T<S,Insert_Policy>::interceptor_value (
79 CORBA::Any *any) const
81 Insert_Policy<S>::any_insert (any, this->x_);
84 #endif /* TAO_HAS_INTERCEPTORS */
86 // ============================================================
88 template<typename S,
89 template <typename> class Insert_Policy>
90 CORBA::Boolean
91 TAO::Ret_Fixed_Size_SArgument_T<S,Insert_Policy>::marshal (TAO_OutputCDR &cdr)
93 return cdr << this->x_;
96 #if TAO_HAS_INTERCEPTORS == 1
98 template<typename S,
99 template <typename> class Insert_Policy>
100 void
101 TAO::Ret_Fixed_Size_SArgument_T<S,Insert_Policy>::interceptor_value (
102 CORBA::Any *any) const
104 Insert_Policy<S>::any_insert (any, this->x_);
107 #endif /* TAO_HAS_INTERCEPTORS */
109 TAO_END_VERSIONED_NAMESPACE_DECL
111 #endif /* TAO_FIXED_SIZE_SARGUMENT_T_CPP */