Merge pull request #2218 from jwillemsen/jwi-pthreadsigmask
[ACE_TAO.git] / TAO / tao / PortableServer / Object_SArgument_T.cpp
blobfe5f960d60fb9298fc11ed7981c2700b36d4d344
1 #ifndef TAO_OBJECT_SARGUMENT_T_CPP
2 #define TAO_OBJECT_SARGUMENT_T_CPP
4 #if !defined (__ACE_INLINE__)
5 #include "tao/PortableServer/Object_SArgument_T.inl"
6 #endif /* __ACE_INLINE__ */
8 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
10 template<typename S_ptr,
11 typename S_var,
12 template <typename> class Insert_Policy>
13 CORBA::Boolean
14 TAO::In_Object_SArgument_T<S_ptr,S_var,Insert_Policy>::demarshal (TAO_InputCDR &cdr)
16 return cdr >> this->x_.out ();
19 #if TAO_HAS_INTERCEPTORS == 1
21 template<typename S_ptr,
22 typename S_var,
23 template <typename> class Insert_Policy>
24 void
25 TAO::In_Object_SArgument_T<S_ptr,S_var,Insert_Policy>::interceptor_value (
26 CORBA::Any *any) const
28 Insert_Policy<S_ptr>::any_insert (any, this->x_.in ());
31 #endif /* TAO_HAS_INTERCEPTORS */
33 // ===========================================================
35 template<typename S_ptr,
36 typename S_var,
37 template <typename> class Insert_Policy>
38 CORBA::Boolean
39 TAO::Inout_Object_SArgument_T<S_ptr,S_var,Insert_Policy>::marshal (TAO_OutputCDR &cdr)
41 return cdr << this->x_.in ();
44 template<typename S_ptr,
45 typename S_var,
46 template <typename> class Insert_Policy>
47 CORBA::Boolean
48 TAO::Inout_Object_SArgument_T<S_ptr,S_var,Insert_Policy>::demarshal (TAO_InputCDR & cdr)
50 return cdr >> this->x_.out ();
53 #if TAO_HAS_INTERCEPTORS == 1
55 template<typename S_ptr,
56 typename S_var,
57 template <typename> class Insert_Policy>
58 void
59 TAO::Inout_Object_SArgument_T<S_ptr,S_var,Insert_Policy>::interceptor_value (
60 CORBA::Any *any) const
62 Insert_Policy<S_ptr>::any_insert (any, this->x_.in ());
65 #endif /* TAO_HAS_INTERCEPTORS */
67 // ==============================================================
69 template<typename S_ptr,
70 typename S_var,
71 typename S_out,
72 template <typename> class Insert_Policy>
73 CORBA::Boolean
74 TAO::Out_Object_SArgument_T<S_ptr,S_var,S_out,Insert_Policy>::marshal (TAO_OutputCDR &cdr)
76 return cdr << this->x_.in ();
79 #if TAO_HAS_INTERCEPTORS == 1
81 template<typename S_ptr,
82 typename S_var,
83 typename S_out,
84 template <typename> class Insert_Policy>
85 void
86 TAO::Out_Object_SArgument_T<S_ptr,S_var,S_out,Insert_Policy>::interceptor_value (
87 CORBA::Any *any) const
89 Insert_Policy<S_ptr>::any_insert (any, this->x_.in ());
92 #endif /* TAO_HAS_INTERCEPTORS */
94 // ============================================================
96 template<typename S_ptr,
97 typename S_var,
98 template <typename> class Insert_Policy>
99 CORBA::Boolean
100 TAO::Ret_Object_SArgument_T<S_ptr,S_var,Insert_Policy>::marshal (TAO_OutputCDR &cdr)
102 return cdr << this->x_.in ();
105 #if TAO_HAS_INTERCEPTORS == 1
107 template<typename S_ptr,
108 typename S_var,
109 template <typename> class Insert_Policy>
110 void
111 TAO::Ret_Object_SArgument_T<S_ptr,S_var,Insert_Policy>::interceptor_value (
112 CORBA::Any *any) const
114 Insert_Policy<S_ptr>::any_insert (any, this->x_.in ());
117 #endif /* TAO_HAS_INTERCEPTORS */
119 TAO_END_VERSIONED_NAMESPACE_DECL
121 #endif /* TAO_OBJECT_SARGUMENT_T_CPP */