2 #include "tao/Messaging/AMH_Skeletons.h"
4 #include "tao/AnyTypeCode/TypeCode.h"
5 #include "tao/AnyTypeCode/DynamicC.h"
7 #include "tao/PortableServer/Servant_Base.h"
8 #include "tao/PortableServer/SArg_Traits_T.h"
9 #include "tao/PortableServer/Basic_SArguments.h"
10 #include "tao/PortableServer/Special_Basic_SArguments.h"
11 #include "tao/PortableServer/Fixed_Size_SArgument_T.h"
12 #include "tao/PortableServer/Var_Size_SArgument_T.h"
13 #include "tao/PortableServer/Object_SArg_Traits.h"
14 #include "tao/PortableServer/UB_String_SArguments.h"
15 #include "tao/PortableServer/get_arg.h"
16 #include "tao/Object.h"
18 #include "tao/PortableInterceptor.h"
19 #include "tao/PortableServer/SUpcall_commands.h"
20 #include "tao/ORB_Core.h"
22 #include "tao/TAO_Server_Request.h"
25 _is_a_amh_Upcall_Command::execute ()
27 TAO::SArg_Traits
< ::ACE_InputCDR::to_boolean
>::ret_arg_type retval
=
28 TAO::Portable_Server::get_ret_arg
< ::ACE_InputCDR::to_boolean
> (
29 this->operation_details_
,
32 TAO::SArg_Traits
< char *>::in_arg_type arg_1
=
33 TAO::Portable_Server::get_in_arg
< char *> (
34 this->operation_details_
,
39 this->servant_
-> _is_a (
44 TAO_AMH_Skeletons::_is_a_amh_skel (TAO_ServerRequest
& server_request
,
45 TAO::Portable_Server::Servant_Upcall
* TAO_INTERCEPTOR (servant_upcall
),
46 TAO_ServantBase
*servant
)
48 #if TAO_HAS_INTERCEPTORS == 1
49 static ::CORBA::TypeCode_ptr
const * const exceptions
= 0;
50 static ::CORBA::ULong
const nexceptions
= 0;
51 #endif /* TAO_HAS_INTERCEPTORS */
53 TAO::SArg_Traits
< ::ACE_InputCDR::to_boolean
>::ret_val retval
;
54 TAO::SArg_Traits
< char *>::in_arg_val _tao_repository_id
;
56 TAO::Argument
* const args
[] =
62 static size_t const nargs
= 2;
64 _is_a_amh_Upcall_Command
command (
66 server_request
.operation_details (),
69 TAO::Upcall_Wrapper upcall_wrapper
;
70 upcall_wrapper
.upcall (server_request
74 #if TAO_HAS_INTERCEPTORS == 1
78 #endif /* TAO_HAS_INTERCEPTORS == 1 */
80 server_request
.tao_send_reply ();
84 #if (TAO_HAS_MINIMUM_CORBA == 0)
86 _non_existent_amh_Upcall_Command::execute ()
88 TAO::SArg_Traits
< ::ACE_InputCDR::to_boolean
>::ret_arg_type retval
=
89 TAO::Portable_Server::get_ret_arg
< ::ACE_InputCDR::to_boolean
> (
90 this->operation_details_
,
94 this->servant_
-> _non_existent ();
97 void TAO_AMH_Skeletons::_non_existent_amh_skel (TAO_ServerRequest
& server_request
,
98 TAO::Portable_Server::Servant_Upcall
* TAO_INTERCEPTOR (servant_upcall
),
99 TAO_ServantBase
*servant
)
101 #if TAO_HAS_INTERCEPTORS == 1
102 static ::CORBA::TypeCode_ptr
const * const exceptions
= 0;
103 static ::CORBA::ULong
const nexceptions
= 0;
104 #endif /* TAO_HAS_INTERCEPTORS */
106 TAO::SArg_Traits
< ::ACE_InputCDR::to_boolean
>::ret_val retval
;
108 TAO::Argument
* const args
[] =
113 static size_t const nargs
= 1;
115 _non_existent_amh_Upcall_Command
command (
117 server_request
.operation_details (),
120 TAO::Upcall_Wrapper upcall_wrapper
;
121 upcall_wrapper
.upcall (server_request
125 #if TAO_HAS_INTERCEPTORS == 1
129 #endif /* TAO_HAS_INTERCEPTORS == 1 */
131 server_request
.tao_send_reply ();
135 # if !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)
137 TAO_AMH_Skeletons::_interface_amh_skel (TAO_ServerRequest
& server_request
,
138 TAO::Portable_Server::Servant_Upcall
* /* servant_upcall */,
139 TAO_ServantBase
*servant
)
141 TAO_IFR_Client_Adapter
*_tao_adapter
=
142 ACE_Dynamic_Service
<TAO_IFR_Client_Adapter
>::instance (
143 TAO_ORB_Core::ifr_client_adapter_name ());
147 throw ::CORBA::INTF_REPOS (::CORBA::OMGVMCID
| 1, ::CORBA::COMPLETED_NO
);
150 ::CORBA::InterfaceDef_ptr _tao_retval
= servant
->_get_interface ();
151 server_request
.init_reply ();
152 TAO_OutputCDR
&_tao_out
= *server_request
.outgoing ();
154 ::CORBA::Boolean
const _tao_result
=
155 _tao_adapter
->interfacedef_cdr_insert (_tao_out
, _tao_retval
);
157 _tao_adapter
->dispose (_tao_retval
);
161 throw ::CORBA::MARSHAL ();
166 _get_component_amh_Upcall_Command::execute ()
168 TAO::SArg_Traits
< ::CORBA::Object
>::ret_arg_type retval
=
169 TAO::Portable_Server::get_ret_arg
< ::CORBA::Object
> (
170 this->operation_details_
,
174 this->servant_
-> _get_component ();
178 TAO_AMH_Skeletons::_component_amh_skel (TAO_ServerRequest
& server_request
,
179 TAO::Portable_Server::Servant_Upcall
* TAO_INTERCEPTOR (servant_upcall
),
180 TAO_ServantBase
*servant
)
182 #if TAO_HAS_INTERCEPTORS == 1
183 static ::CORBA::TypeCode_ptr
const * const exceptions
= 0;
184 static ::CORBA::ULong
const nexceptions
= 0;
185 #endif /* TAO_HAS_INTERCEPTORS */
187 TAO::SArg_Traits
< ::CORBA::Object
>::ret_val retval
;
189 TAO::Argument
* const args
[] =
194 static size_t const nargs
= 1;
196 _get_component_amh_Upcall_Command
command (
198 server_request
.operation_details (),
201 TAO::Upcall_Wrapper upcall_wrapper
;
202 upcall_wrapper
.upcall (server_request
206 #if TAO_HAS_INTERCEPTORS == 1
210 #endif /* TAO_HAS_INTERCEPTORS == 1 */
213 # endif /* !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) */
217 _repository_id_amh_Upcall_Command::execute ()
219 TAO::SArg_Traits
< char *>::ret_arg_type retval
=
220 TAO::Portable_Server::get_ret_arg
< char *> (
221 this->operation_details_
,
225 this->servant_
-> _repository_id ();
229 TAO_AMH_Skeletons::_repository_id_amh_skel (TAO_ServerRequest
& server_request
,
230 TAO::Portable_Server::Servant_Upcall
* TAO_INTERCEPTOR (servant_upcall
),
231 TAO_ServantBase
*servant
)
233 #if TAO_HAS_INTERCEPTORS == 1
234 static ::CORBA::TypeCode_ptr
const * const exceptions
= 0;
235 static ::CORBA::ULong
const nexceptions
= 0;
236 #endif /* TAO_HAS_INTERCEPTORS */
238 TAO::SArg_Traits
< char *>::ret_val retval
;
240 TAO::Argument
* const args
[] =
245 static size_t const nargs
= 1;
247 _repository_id_amh_Upcall_Command
command (
249 server_request
.operation_details (),
252 TAO::Upcall_Wrapper upcall_wrapper
;
253 upcall_wrapper
.upcall (server_request
257 #if TAO_HAS_INTERCEPTORS == 1
261 #endif /* TAO_HAS_INTERCEPTORS == 1 */
263 server_request
.tao_send_reply ();
265 #endif /* TAO_HAS_MINIMUM_CORBA */