📄 portablegroup_request_dispatcher.cpp
字号:
// This may look like C, but it's really -*- C++ -*-
//
// PortableGroup_Request_Dispatcher.cpp,v 1.5 2003/10/28 18:34:24 bala Exp
#include "PortableGroup_Request_Dispatcher.h"
#include "PortableGroup_Loader.h"
#include "UIPMC_Profile.h"
#include "tao/TAO_Server_Request.h"
#include "tao/ORB_Core.h"
ACE_RCSID (PortableGroup,
PortableGroup_Request_Dispatcher,
"PortableGroup_Request_Dispatcher.cpp,v 1.5 2003/10/28 18:34:24 bala Exp")
PortableGroup_Request_Dispatcher::~PortableGroup_Request_Dispatcher (void)
{
}
void
PortableGroup_Request_Dispatcher::dispatch (TAO_ORB_Core *orb_core,
TAO_ServerRequest &request,
CORBA::Object_out forward_to
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
// Check if the request contains a tagged profile
if (request.profile ().discriminator () == GIOP::ProfileAddr)
{
// Get the IOP::Tagged profile.
const IOP::TaggedProfile &tagged_profile =
request.profile ().tagged_profile ();
PortableGroup::TagGroupTaggedComponent group;
// Extract a Group ID from the profile if it exists.
int result = TAO_UIPMC_Profile::extract_group_component (tagged_profile,
group);
if (result == 0)
{
// Got a group. Dispatch based on the group ID
this->group_map_.dispatch (&group,
orb_core,
request,
forward_to
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
return;
}
// Else, fall through and dispatch based on object key like normal.
}
// Dispatch based on object key.
orb_core->adapter_registry ()->dispatch (request.object_key (),
request,
forward_to
ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -