1 #ifndef TAO_BASIC_ARGUMENT_T_CPP
2 #define TAO_BASIC_ARGUMENT_T_CPP
4 #include "tao/Basic_Argument_T.h"
6 #if !defined (__ACE_INLINE__)
7 #include "tao/Basic_Argument_T.inl"
8 #endif /* __ACE_INLINE__ */
10 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
13 template <typename
> class Insert_Policy
>
15 TAO::In_Basic_Argument_T
<S
, Insert_Policy
>::marshal (TAO_OutputCDR
&cdr
)
17 return cdr
<< this->x_
;
20 #if TAO_HAS_INTERCEPTORS == 1
23 template <typename
> class Insert_Policy
>
25 TAO::In_Basic_Argument_T
<S
, Insert_Policy
>::interceptor_value (CORBA::Any
*any
) const
27 Insert_Policy
<S
>::any_insert (any
, this->x_
);
30 #endif /* TAO_HAS_INTERCEPTORS */
33 template <typename
> class Insert_Policy
>
34 TAO::In_Basic_Clonable_Argument_T
<S
,Insert_Policy
>::~In_Basic_Clonable_Argument_T ()
38 S
* tmp
= const_cast<S
*> (&this->x_
);
44 template <typename
> class Insert_Policy
>
46 TAO::In_Basic_Clonable_Argument_T
<S
,Insert_Policy
>::clone ()
48 S
* clone_x
= new S (this->x_
);
49 In_Basic_Clonable_Argument_T
<S
,Insert_Policy
>* clone_arg
=
50 new In_Basic_Clonable_Argument_T
<S
,Insert_Policy
> (*clone_x
);
51 clone_arg
->is_clone_
= true;
55 // ===========================================================
58 template <typename
> class Insert_Policy
>
60 TAO::Inout_Basic_Argument_T
<S
, Insert_Policy
>::marshal (TAO_OutputCDR
&cdr
)
62 return cdr
<< this->x_
;
66 template <typename
> class Insert_Policy
>
68 TAO::Inout_Basic_Argument_T
<S
, Insert_Policy
>::demarshal (TAO_InputCDR
& cdr
)
70 return cdr
>> this->x_
;
73 #if TAO_HAS_INTERCEPTORS == 1
76 template <typename
> class Insert_Policy
>
78 TAO::Inout_Basic_Argument_T
<S
, Insert_Policy
>::interceptor_value (CORBA::Any
*any
) const
80 Insert_Policy
<S
>::any_insert (any
, this->x_
);
83 #endif /* TAO_HAS_INTERCEPTORS */
85 // ==============================================================
88 template <typename
> class Insert_Policy
>
90 TAO::Out_Basic_Argument_T
<S
, Insert_Policy
>::demarshal (TAO_InputCDR
& cdr
)
92 return cdr
>> this->x_
;
95 #if TAO_HAS_INTERCEPTORS == 1
98 template <typename
> class Insert_Policy
>
100 TAO::Out_Basic_Argument_T
<S
, Insert_Policy
>::interceptor_value (CORBA::Any
*any
) const
102 Insert_Policy
<S
>::any_insert (any
, this->x_
);
105 #endif /* TAO_HAS_INTERCEPTORS */
107 // ============================================================
110 template <typename
> class Insert_Policy
>
112 TAO::Ret_Basic_Argument_T
<S
, Insert_Policy
>::demarshal (TAO_InputCDR
& cdr
)
114 return cdr
>> this->x_
;
117 #if TAO_HAS_INTERCEPTORS == 1
120 template <typename
> class Insert_Policy
>
122 TAO::Ret_Basic_Argument_T
<S
, Insert_Policy
>::interceptor_value (CORBA::Any
*any
) const
124 Insert_Policy
<S
>::any_insert (any
, this->x_
);
127 #endif /* TAO_HAS_INTERCEPTORS */
129 TAO_END_VERSIONED_NAMESPACE_DECL
131 #endif /* TAO_BASIC_ARGUMENT_T_CPP */