Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / PortableServer / Basic_SArgument_T.cpp
blob69b8bb2525aa6e5934b24d955f012d9bc29832d8
1 #ifndef TAO_BASIC_SARGUMENT_T_CPP
2 #define TAO_BASIC_SARGUMENT_T_CPP
4 #if !defined (__ACE_INLINE__)
5 #include "tao/PortableServer/Basic_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_Basic_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_Basic_SArgument_T<S,Insert_Policy>::interceptor_value (CORBA::Any *any) const
25 Insert_Policy<S>::any_insert (any, this->x_);
28 #endif /* TAO_HAS_INTERCEPTORS */
30 // ===========================================================
32 template<typename S,
33 template <typename> class Insert_Policy>
34 CORBA::Boolean
35 TAO::Inout_Basic_SArgument_T<S,Insert_Policy>::marshal (TAO_OutputCDR &cdr)
37 return cdr << this->x_;
40 template<typename S,
41 template <typename> class Insert_Policy>
42 CORBA::Boolean
43 TAO::Inout_Basic_SArgument_T<S,Insert_Policy>::demarshal (TAO_InputCDR & cdr)
45 return cdr >> this->x_;
48 #if TAO_HAS_INTERCEPTORS == 1
50 template<typename S,
51 template <typename> class Insert_Policy>
52 void
53 TAO::Inout_Basic_SArgument_T<S,Insert_Policy>::interceptor_value (CORBA::Any *any) const
55 Insert_Policy<S>::any_insert (any, this->x_);
58 #endif /* TAO_HAS_INTERCEPTORS */
60 // ==============================================================
62 template<typename S,
63 template <typename> class Insert_Policy>
64 CORBA::Boolean
65 TAO::Out_Basic_SArgument_T<S,Insert_Policy>::marshal (TAO_OutputCDR &cdr)
67 return cdr << this->x_;
70 #if TAO_HAS_INTERCEPTORS == 1
72 template<typename S,
73 template <typename> class Insert_Policy>
74 void
75 TAO::Out_Basic_SArgument_T<S,Insert_Policy>::interceptor_value (CORBA::Any *any) const
77 Insert_Policy<S>::any_insert (any, this->x_);
80 #endif /* TAO_HAS_INTERCEPTORS */
82 // ============================================================
84 template<typename S,
85 template <typename> class Insert_Policy>
86 CORBA::Boolean
87 TAO::Ret_Basic_SArgument_T<S,Insert_Policy>::marshal (TAO_OutputCDR &cdr)
89 return cdr << this->x_;
92 #if TAO_HAS_INTERCEPTORS == 1
94 template<typename S,
95 template <typename> class Insert_Policy>
96 void
97 TAO::Ret_Basic_SArgument_T<S,Insert_Policy>::interceptor_value (CORBA::Any *any) const
99 Insert_Policy<S>::any_insert (any, this->x_);
102 #endif /* TAO_HAS_INTERCEPTORS */
104 TAO_END_VERSIONED_NAMESPACE_DECL
106 #endif /* TAO_BASIC_SARGUMENT_T_CPP */