📄 messengers.cpp
字号:
inline _is_a_Messenger_Upcall_Command (
POA_Messenger * servant,
TAO_Operation_Details const * operation_details,
TAO::Argument * const args[])
: servant_ (servant)
, operation_details_ (operation_details)
, args_ (args)
{
}
virtual void execute (ACE_ENV_SINGLE_ARG_DECL)
{
TAO::SArg_Traits< ::ACE_InputCDR::to_boolean>::ret_arg_type retval =
TAO::Portable_Server::get_ret_arg< ::ACE_InputCDR::to_boolean, TAO::SArg_Traits< ::ACE_InputCDR::to_boolean>::ret_arg_type> (
this->operation_details_,
this->args_);
TAO::SArg_Traits< CORBA::Char *>::in_arg_type arg_1 =
TAO::Portable_Server::get_in_arg< CORBA::Char *, TAO::SArg_Traits< CORBA::Char *>::in_arg_type> (
this->operation_details_,
this->args_,
1);
retval =
this->servant_-> _is_a (
arg_1
ACE_ENV_ARG_PARAMETER);
}
private:
POA_Messenger * const servant_;
TAO_Operation_Details const * const operation_details_;
TAO::Argument * const * const args_;
};
void POA_Messenger::_is_a_skel (
TAO_ServerRequest & server_request,
void * TAO_INTERCEPTOR (servant_upcall),
void * servant
ACE_ENV_ARG_DECL
)
{
#if TAO_HAS_INTERCEPTORS == 1
static CORBA::TypeCode_ptr const * const exceptions = 0;
static size_t const nexceptions = 0;
#endif /* TAO_HAS_INTERCEPTORS */
TAO::SArg_Traits< ::ACE_InputCDR::to_boolean>::ret_val retval;
TAO::SArg_Traits< CORBA::Char *>::in_arg_val _tao_repository_id;
TAO::Argument * const args[] =
{
&retval,
&_tao_repository_id
};
static size_t const nargs = 2;
POA_Messenger * const impl =
static_cast<POA_Messenger *> (servant);
_is_a_Messenger_Upcall_Command command (
impl,
server_request.operation_details (),
args);
TAO::Upcall_Wrapper upcall_wrapper;
upcall_wrapper.upcall (server_request
, args
, nargs
, command
#if TAO_HAS_INTERCEPTORS == 1
, servant_upcall
, exceptions
, nexceptions
#endif /* TAO_HAS_INTERCEPTORS == 1 */
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
// TAO_IDL - Generated from
// D:\tao\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/upcall_command_ss.cpp:127
class _non_existent_Messenger_Upcall_Command
: public TAO::Upcall_Command
{
public:
inline _non_existent_Messenger_Upcall_Command (
POA_Messenger * servant,
TAO_Operation_Details const * operation_details,
TAO::Argument * const args[])
: servant_ (servant)
, operation_details_ (operation_details)
, args_ (args)
{
}
virtual void execute (ACE_ENV_SINGLE_ARG_DECL)
{
TAO::SArg_Traits< ::ACE_InputCDR::to_boolean>::ret_arg_type retval =
TAO::Portable_Server::get_ret_arg< ::ACE_InputCDR::to_boolean, TAO::SArg_Traits< ::ACE_InputCDR::to_boolean>::ret_arg_type> (
this->operation_details_,
this->args_);
retval =
this->servant_-> _non_existent (
ACE_ENV_SINGLE_ARG_PARAMETER);
}
private:
POA_Messenger * const servant_;
TAO_Operation_Details const * const operation_details_;
TAO::Argument * const * const args_;
};
void POA_Messenger::_non_existent_skel (
TAO_ServerRequest & server_request,
void * TAO_INTERCEPTOR (servant_upcall),
void * servant
ACE_ENV_ARG_DECL
)
{
#if TAO_HAS_INTERCEPTORS == 1
static CORBA::TypeCode_ptr const * const exceptions = 0;
static size_t const nexceptions = 0;
#endif /* TAO_HAS_INTERCEPTORS */
TAO::SArg_Traits< ::ACE_InputCDR::to_boolean>::ret_val retval;
TAO::Argument * const args[] =
{
&retval
};
static size_t const nargs = 1;
POA_Messenger * const impl =
static_cast<POA_Messenger *> (servant);
_non_existent_Messenger_Upcall_Command command (
impl,
server_request.operation_details (),
args);
TAO::Upcall_Wrapper upcall_wrapper;
upcall_wrapper.upcall (server_request
, args
, nargs
, command
#if TAO_HAS_INTERCEPTORS == 1
, servant_upcall
, exceptions
, nexceptions
#endif /* TAO_HAS_INTERCEPTORS == 1 */
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
// TAO_IDL - Generated from
// D:\tao\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:393
void POA_Messenger::_interface_skel (
TAO_ServerRequest & server_request,
void * /* servant_upcall */,
void * servant
ACE_ENV_ARG_DECL
)
{
TAO_IFR_Client_Adapter *_tao_adapter =
ACE_Dynamic_Service<TAO_IFR_Client_Adapter>::instance (
TAO_ORB_Core::ifr_client_adapter_name ()
);
if (_tao_adapter == 0)
{
ACE_THROW (CORBA::INTF_REPOS (CORBA::OMGVMCID | 1,
CORBA::COMPLETED_NO));
}
POA_Messenger * const impl =
static_cast<POA_Messenger *> (servant);
CORBA::InterfaceDef_ptr _tao_retval =
impl->_get_interface (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK;
server_request.init_reply ();
TAO_OutputCDR &_tao_out = *server_request.outgoing ();
CORBA::Boolean const _tao_result =
_tao_adapter->interfacedef_cdr_insert (
_tao_out,
_tao_retval
);
_tao_adapter->dispose (_tao_retval);
if (_tao_result == 0)
{
ACE_THROW (CORBA::MARSHAL ());
}
}
// TAO_IDL - Generated from
// D:\tao\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_operation/upcall_command_ss.cpp:127
class _get_component_Messenger_Upcall_Command
: public TAO::Upcall_Command
{
public:
inline _get_component_Messenger_Upcall_Command (
POA_Messenger * servant,
TAO_Operation_Details const * operation_details,
TAO::Argument * const args[])
: servant_ (servant)
, operation_details_ (operation_details)
, args_ (args)
{
}
virtual void execute (ACE_ENV_SINGLE_ARG_DECL)
{
TAO::SArg_Traits< ::CORBA::Object>::ret_arg_type retval =
TAO::Portable_Server::get_ret_arg< ::CORBA::Object, TAO::SArg_Traits< ::CORBA::Object>::ret_arg_type> (
this->operation_details_,
this->args_);
retval =
this->servant_-> _get_component (
ACE_ENV_SINGLE_ARG_PARAMETER);
}
private:
POA_Messenger * const servant_;
TAO_Operation_Details const * const operation_details_;
TAO::Argument * const * const args_;
};
void POA_Messenger::_component_skel (
TAO_ServerRequest & server_request,
void * TAO_INTERCEPTOR (servant_upcall),
void * servant
ACE_ENV_ARG_DECL
)
{
#if TAO_HAS_INTERCEPTORS == 1
static CORBA::TypeCode_ptr const * const exceptions = 0;
static size_t const nexceptions = 0;
#endif /* TAO_HAS_INTERCEPTORS */
TAO::SArg_Traits< ::CORBA::Object>::ret_val retval;
TAO::Argument * const args[] =
{
&retval
};
static size_t const nargs = 1;
POA_Messenger * const impl =
static_cast<POA_Messenger *> (servant);
_get_component_Messenger_Upcall_Command command (
impl,
server_request.operation_details (),
args);
TAO::Upcall_Wrapper upcall_wrapper;
upcall_wrapper.upcall (server_request
, args
, nargs
, command
#if TAO_HAS_INTERCEPTORS == 1
, servant_upcall
, exceptions
, nexceptions
#endif /* TAO_HAS_INTERCEPTORS == 1 */
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
CORBA::Boolean POA_Messenger::_is_a (
const char* value
ACE_ENV_ARG_DECL_NOT_USED
)
{
return
(
!ACE_OS::strcmp (
value,
"IDL:Messenger:1.0"
) ||
!ACE_OS::strcmp (
value,
"IDL:omg.org/CORBA/Object:1.0"
)
);
}
const char* POA_Messenger::_interface_repository_id (void) const
{
return "IDL:Messenger:1.0";
}
// TAO_IDL - Generated from
// D:\tao\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:794
void POA_Messenger::_dispatch (
TAO_ServerRequest & req,
void * servant_upcall
ACE_ENV_ARG_DECL
)
{
this->synchronous_upcall_dispatch (req,
servant_upcall,
this
ACE_ENV_ARG_PARAMETER);
}
// TAO_IDL - Generated from
// D:\tao\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_ss.cpp:745
Messenger *
POA_Messenger::_this (ACE_ENV_SINGLE_ARG_DECL)
{
TAO_Stub *stub = this->_create_stub (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_CHECK_RETURN (0);
TAO_Stub_Auto_Ptr safe_stub (stub);
CORBA::Object_ptr tmp = CORBA::Object::_nil ();
CORBA::Boolean _tao_opt_colloc =
stub->servant_orb_var ()->orb_core ()->optimize_collocation_objects ();
ACE_NEW_RETURN (
tmp,
CORBA::Object (stub, _tao_opt_colloc, this),
0
);
CORBA::Object_var obj = tmp;
(void) safe_stub.release ();
typedef ::Messenger STUB_SCOPED_NAME;
return
TAO::Narrow_Utils<STUB_SCOPED_NAME>::unchecked_narrow (
obj.in (),
_TAO_Messenger_Proxy_Broker_Factory_function_pointer
);
}
#endif /* ifndef */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -