Updated logging to include the class/method so that it is more obvious where these...
[ACE_TAO.git] / TAO / tao / PortableServer / Var_Size_SArgument_T.cpp
blob285f609dc9d15004c593722389fd2328db3c2b59
1 #ifndef TAO_VAR_SIZE_SARGUMENT_T_CPP
2 #define TAO_VAR_SIZE_SARGUMENT_T_CPP
4 #if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
5 #include "tao/PortableServer/Var_Size_SArgument_T.h"
6 #endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
8 #include "tao/SystemException.h"
10 #if !defined (__ACE_INLINE__)
11 #include "tao/PortableServer/Var_Size_SArgument_T.inl"
12 #endif /* __ACE_INLINE__ */
14 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
16 template<typename S,
17 template <typename> class Insert_Policy>
18 CORBA::Boolean
19 TAO::In_Var_Size_SArgument_T<S,Insert_Policy>::demarshal (TAO_InputCDR &cdr)
21 return cdr >> this->x_;
24 #if TAO_HAS_INTERCEPTORS == 1
26 template<typename S,
27 template <typename> class Insert_Policy>
28 void
29 TAO::In_Var_Size_SArgument_T<S,Insert_Policy>::interceptor_value (
30 CORBA::Any *any) const
32 Insert_Policy<S>::any_insert (any, this->x_);
35 #endif /* TAO_HAS_INTERCEPTORS */
37 // ===========================================================
39 template<typename S,
40 template <typename> class Insert_Policy>
41 CORBA::Boolean
42 TAO::Inout_Var_Size_SArgument_T<S,Insert_Policy>::marshal (TAO_OutputCDR &cdr)
44 return cdr << this->x_;
47 template<typename S,
48 template <typename> class Insert_Policy>
49 CORBA::Boolean
50 TAO::Inout_Var_Size_SArgument_T<S,Insert_Policy>::demarshal (TAO_InputCDR & cdr)
52 return cdr >> this->x_;
55 #if TAO_HAS_INTERCEPTORS == 1
57 template<typename S,
58 template <typename> class Insert_Policy>
59 void
60 TAO::Inout_Var_Size_SArgument_T<S,Insert_Policy>::interceptor_value (
61 CORBA::Any *any) const
63 Insert_Policy<S>::any_insert (any, this->x_);
66 #endif /* TAO_HAS_INTERCEPTORS */
68 // ==============================================================
70 template<typename S,
71 template <typename> class Insert_Policy>
72 CORBA::Boolean
73 TAO::Out_Var_Size_SArgument_T<S,Insert_Policy>::marshal (TAO_OutputCDR &cdr)
75 if (0 == this->x_.ptr())
76 throw ::CORBA::BAD_PARAM(0, CORBA::COMPLETED_MAYBE);
78 return cdr << this->x_.in ();
81 #if TAO_HAS_INTERCEPTORS == 1
83 template<typename S,
84 template <typename> class Insert_Policy>
85 void
86 TAO::Out_Var_Size_SArgument_T<S,Insert_Policy>::interceptor_value (
87 CORBA::Any *any) const
89 Insert_Policy<S>::any_insert (any, this->x_.in ());
92 #endif /* TAO_HAS_INTERCEPTORS */
94 // ============================================================
96 template<typename S,
97 template <typename> class Insert_Policy>
98 CORBA::Boolean
99 TAO::Ret_Var_Size_SArgument_T<S,Insert_Policy>::marshal (TAO_OutputCDR &cdr)
101 return cdr << this->x_.in ();
104 #if TAO_HAS_INTERCEPTORS == 1
106 template<typename S,
107 template <typename> class Insert_Policy>
108 void
109 TAO::Ret_Var_Size_SArgument_T<S,Insert_Policy>::interceptor_value (
110 CORBA::Any *any) const
112 Insert_Policy<S>::any_insert (any, this->x_.in ());
115 #endif /* TAO_HAS_INTERCEPTORS */
117 TAO_END_VERSIONED_NAMESPACE_DECL
119 #endif /* TAO_VAR_SIZE_SARGUMENT_T_CPP */