portableserverc.cpp
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C++ 代码 · 共 2,433 行 · 第 1/5 页
CPP
2,433 行
// Function pointer for collocation factory initialization.
TAO::Collocation_Proxy_Broker *
(*PortableServer__TAO_IdAssignmentPolicy_Proxy_Broker_Factory_function_pointer) (
CORBA::Object_ptr obj
) = 0;
PortableServer::IdAssignmentPolicy::IdAssignmentPolicy (void)
{}
PortableServer::IdAssignmentPolicy::~IdAssignmentPolicy (void)
{}
void
PortableServer::IdAssignmentPolicy::_tao_any_destructor (void *_tao_void_pointer)
{
IdAssignmentPolicy *_tao_tmp_pointer =
ACE_static_cast (IdAssignmentPolicy *, _tao_void_pointer);
CORBA::release (_tao_tmp_pointer);
}
PortableServer::IdAssignmentPolicy_ptr
PortableServer::IdAssignmentPolicy::_narrow (
CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
if (CORBA::is_nil (_tao_objref))
{
return IdAssignmentPolicy::_nil ();
}
IdAssignmentPolicy_ptr proxy =
dynamic_cast<IdAssignmentPolicy_ptr> (_tao_objref);
return IdAssignmentPolicy::_duplicate (proxy);
}
PortableServer::IdAssignmentPolicy_ptr
PortableServer::IdAssignmentPolicy::_duplicate (IdAssignmentPolicy_ptr obj)
{
if (! CORBA::is_nil (obj))
{
obj->_add_ref ();
}
return obj;
}
CORBA::Boolean
PortableServer::IdAssignmentPolicy::_is_a (
const char *value
ACE_ENV_ARG_DECL_NOT_USED
)
{
if (
!ACE_OS::strcmp (
(char *)value,
"IDL:omg.org/CORBA/Policy:1.0"
) ||
!ACE_OS::strcmp (
(char *)value,
"IDL:omg.org/PortableServer/IdAssignmentPolicy:2.3"
) ||
!ACE_OS::strcmp (
(char *)value,
"IDL:omg.org/CORBA/LocalObject:1.0"
) ||
!ACE_OS::strcmp (
(char *)value,
"IDL:omg.org/CORBA/Object:1.0"
)
)
{
return 1; // success using local knowledge
}
else
{
return 0;
}
}
const char* PortableServer::IdAssignmentPolicy::_interface_repository_id (void) const
{
return "IDL:omg.org/PortableServer/IdAssignmentPolicy:2.3";
}
CORBA::Boolean
PortableServer::IdAssignmentPolicy::marshal (TAO_OutputCDR &)
{
return 0;
}
// TAO_IDL - Generated from
// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284
static const CORBA::Long _oc_PortableServer_IdAssignmentPolicy[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
50,
ACE_NTOHL (0x49444c3a),
ACE_NTOHL (0x6f6d672e),
ACE_NTOHL (0x6f72672f),
ACE_NTOHL (0x506f7274),
ACE_NTOHL (0x61626c65),
ACE_NTOHL (0x53657276),
ACE_NTOHL (0x65722f49),
ACE_NTOHL (0x64417373),
ACE_NTOHL (0x69676e6d),
ACE_NTOHL (0x656e7450),
ACE_NTOHL (0x6f6c6963),
ACE_NTOHL (0x793a322e),
ACE_NTOHL (0x33000000), // repository ID = IDL:omg.org/PortableServer/IdAssignmentPolicy:2.3
19,
ACE_NTOHL (0x49644173),
ACE_NTOHL (0x7369676e),
ACE_NTOHL (0x6d656e74),
ACE_NTOHL (0x506f6c69),
ACE_NTOHL (0x63790000), // name = IdAssignmentPolicy
};
static CORBA::TypeCode _tc_TAO_tc_PortableServer_IdAssignmentPolicy (
CORBA::tk_objref,
sizeof (_oc_PortableServer_IdAssignmentPolicy),
(char *) &_oc_PortableServer_IdAssignmentPolicy,
0,
sizeof (PortableServer::IdAssignmentPolicy)
);
namespace PortableServer
{
::CORBA::TypeCode_ptr _tc_IdAssignmentPolicy =
&_tc_TAO_tc_PortableServer_IdAssignmentPolicy;
}
#if (TAO_HAS_MINIMUM_POA == 0)
// TAO_IDL - Generated from
// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284
static const CORBA::Long _oc_PortableServer_ImplicitActivationPolicyValue[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
61,
ACE_NTOHL (0x49444c3a),
ACE_NTOHL (0x6f6d672e),
ACE_NTOHL (0x6f72672f),
ACE_NTOHL (0x506f7274),
ACE_NTOHL (0x61626c65),
ACE_NTOHL (0x53657276),
ACE_NTOHL (0x65722f49),
ACE_NTOHL (0x6d706c69),
ACE_NTOHL (0x63697441),
ACE_NTOHL (0x63746976),
ACE_NTOHL (0x6174696f),
ACE_NTOHL (0x6e506f6c),
ACE_NTOHL (0x69637956),
ACE_NTOHL (0x616c7565),
ACE_NTOHL (0x3a322e33),
ACE_NTOHL (0x0), // repository ID = IDL:omg.org/PortableServer/ImplicitActivationPolicyValue:2.3
30,
ACE_NTOHL (0x496d706c),
ACE_NTOHL (0x69636974),
ACE_NTOHL (0x41637469),
ACE_NTOHL (0x76617469),
ACE_NTOHL (0x6f6e506f),
ACE_NTOHL (0x6c696379),
ACE_NTOHL (0x56616c75),
ACE_NTOHL (0x65000000), // name = ImplicitActivationPolicyValue
2, // member count
20,
ACE_NTOHL (0x494d504c),
ACE_NTOHL (0x49434954),
ACE_NTOHL (0x5f414354),
ACE_NTOHL (0x49564154),
ACE_NTOHL (0x494f4e00), // name = IMPLICIT_ACTIVATION
23,
ACE_NTOHL (0x4e4f5f49),
ACE_NTOHL (0x4d504c49),
ACE_NTOHL (0x4349545f),
ACE_NTOHL (0x41435449),
ACE_NTOHL (0x56415449),
ACE_NTOHL (0x4f4e0000), // name = NO_IMPLICIT_ACTIVATION
};
static CORBA::TypeCode _tc_TAO_tc_PortableServer_ImplicitActivationPolicyValue (
CORBA::tk_enum,
sizeof (_oc_PortableServer_ImplicitActivationPolicyValue),
(char *) &_oc_PortableServer_ImplicitActivationPolicyValue,
0,
sizeof (PortableServer::ImplicitActivationPolicyValue)
);
namespace PortableServer
{
::CORBA::TypeCode_ptr _tc_ImplicitActivationPolicyValue =
&_tc_TAO_tc_PortableServer_ImplicitActivationPolicyValue;
}
// TAO_IDL - Generated from
// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_cs.cpp:60
// Traits specializations for PortableServer::ImplicitActivationPolicy.
PortableServer::ImplicitActivationPolicy_ptr
TAO::Objref_Traits<PortableServer::ImplicitActivationPolicy>::tao_duplicate (
PortableServer::ImplicitActivationPolicy_ptr p
)
{
return PortableServer::ImplicitActivationPolicy::_duplicate (p);
}
void
TAO::Objref_Traits<PortableServer::ImplicitActivationPolicy>::tao_release (
PortableServer::ImplicitActivationPolicy_ptr p
)
{
CORBA::release (p);
}
PortableServer::ImplicitActivationPolicy_ptr
TAO::Objref_Traits<PortableServer::ImplicitActivationPolicy>::tao_nil (void)
{
return PortableServer::ImplicitActivationPolicy::_nil ();
}
CORBA::Boolean
TAO::Objref_Traits<PortableServer::ImplicitActivationPolicy>::tao_marshal (
PortableServer::ImplicitActivationPolicy_ptr p,
TAO_OutputCDR & cdr
)
{
return p->marshal (cdr);
}
// Function pointer for collocation factory initialization.
TAO::Collocation_Proxy_Broker *
(*PortableServer__TAO_ImplicitActivationPolicy_Proxy_Broker_Factory_function_pointer) (
CORBA::Object_ptr obj
) = 0;
PortableServer::ImplicitActivationPolicy::ImplicitActivationPolicy (void)
{}
PortableServer::ImplicitActivationPolicy::~ImplicitActivationPolicy (void)
{}
void
PortableServer::ImplicitActivationPolicy::_tao_any_destructor (void *_tao_void_pointer)
{
ImplicitActivationPolicy *_tao_tmp_pointer =
ACE_static_cast (ImplicitActivationPolicy *, _tao_void_pointer);
CORBA::release (_tao_tmp_pointer);
}
PortableServer::ImplicitActivationPolicy_ptr
PortableServer::ImplicitActivationPolicy::_narrow (
CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
if (CORBA::is_nil (_tao_objref))
{
return ImplicitActivationPolicy::_nil ();
}
ImplicitActivationPolicy_ptr proxy =
dynamic_cast<ImplicitActivationPolicy_ptr> (_tao_objref);
return ImplicitActivationPolicy::_duplicate (proxy);
}
PortableServer::ImplicitActivationPolicy_ptr
PortableServer::ImplicitActivationPolicy::_duplicate (ImplicitActivationPolicy_ptr obj)
{
if (! CORBA::is_nil (obj))
{
obj->_add_ref ();
}
return obj;
}
CORBA::Boolean
PortableServer::ImplicitActivationPolicy::_is_a (
const char *value
ACE_ENV_ARG_DECL_NOT_USED
)
{
if (
!ACE_OS::strcmp (
(char *)value,
"IDL:omg.org/CORBA/Policy:1.0"
) ||
!ACE_OS::strcmp (
(char *)value,
"IDL:omg.org/PortableServer/ImplicitActivationPolicy:2.3"
) ||
!ACE_OS::strcmp (
(char *)value,
"IDL:omg.org/CORBA/LocalObject:1.0"
) ||
!ACE_OS::strcmp (
(char *)value,
"IDL:omg.org/CORBA/Object:1.0"
)
)
{
return 1; // success using local knowledge
}
else
{
return 0;
}
}
const char* PortableServer::ImplicitActivationPolicy::_interface_repository_id (void) const
{
return "IDL:omg.org/PortableServer/ImplicitActivationPolicy:2.3";
}
CORBA::Boolean
PortableServer::ImplicitActivationPolicy::marshal (TAO_OutputCDR &)
{
return 0;
}
// TAO_IDL - Generated from
// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284
static const CORBA::Long _oc_PortableServer_ImplicitActivationPolicy[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
56,
ACE_NTOHL (0x49444c3a),
ACE_NTOHL (0x6f6d672e),
ACE_NTOHL (0x6f72672f),
ACE_NTOHL (0x506f7274),
ACE_NTOHL (0x61626c65),
ACE_NTOHL (0x53657276),
ACE_NTOHL (0x65722f49),
ACE_NTOHL (0x6d706c69),
ACE_NTOHL (0x63697441),
ACE_NTOHL (0x63746976),
ACE_NTOHL (0x6174696f),
ACE_NTOHL (0x6e506f6c),
ACE_NTOHL (0x6963793a),
ACE_NTOHL (0x322e3300), // repository ID = IDL:omg.org/PortableServer/ImplicitActivationPolicy:2.3
25,
ACE_NTOHL (0x496d706c),
ACE_NTOHL (0x69636974),
ACE_NTOHL (0x41637469),
ACE_NTOHL (0x76617469),
ACE_NTOHL (0x6f6e506f),
ACE_NTOHL (0x6c696379),
ACE_NTOHL (0x0), // name = ImplicitActivationPolicy
};
static CORBA::TypeCode _tc_TAO_tc_PortableServer_ImplicitActivationPolicy (
CORBA::tk_objref,
sizeof (_oc_PortableServer_ImplicitActivationPolicy),
(char *) &_oc_PortableServer_ImplicitActivationPolicy,
0,
sizeof (PortableServer::ImplicitActivationPolicy)
);
namespace PortableServer
{
::CORBA::TypeCode_ptr _tc_ImplicitActivationPolicy =
&_tc_TAO_tc_PortableServer_ImplicitActivationPolicy;
}
// TAO_IDL - Generated from
// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_typecode/typecode_defn.cpp:284
static const CORBA::Long _oc_PortableServer_ServantRetentionPolicyValue[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
59,
ACE_NTOHL (0x49444c3a),
ACE_NTOHL (0x6f6d672e),
ACE_NTOHL (0x6f72672f),
ACE_NTOHL (0x506f7274),
ACE_NTOHL (0x61626c65),
ACE_NTOHL (0x53657276),
ACE_NTOHL (0x65722f53),
ACE_NTOHL (0x65727661),
ACE_NTOHL (0x6e745265),
ACE_NTOHL (0x74656e74),
ACE_NTOHL (0x696f6e50),
ACE_NTOHL (0x6f6c6963),
ACE_NTOHL (0x7956616c),
ACE_NTOHL (0x75653a32),
ACE_NTOHL (0x2e330000), // repository ID = IDL:omg.org/PortableServer/ServantRetentionPolicyValue:2.3
28,
ACE_NTOHL (0x53657276),
ACE_NTOHL (0x616e7452),
ACE_NTOHL (0x6574656e),
ACE_NTOHL (0x74696f6e),
ACE_NTOHL (0x506f6c69),
ACE_NTOHL (0x63795661),
ACE_NTOHL (0x6c756500), // name = ServantRetentionPolicyValue
2, // member count
7,
ACE_NTOHL (0x52455441),
ACE_NTOHL (0x494e0000), // name = RETAIN
11,
ACE_NTOHL (0x4e4f4e5f),
ACE_NTOHL (0x52455441),
ACE_NTOHL (0x494e0000), // name = NON_RETAIN
};
static CORBA::TypeCode _tc_TAO_tc_PortableServer_ServantRetentionPolicyValue (
CORBA::tk_enum,
sizeof (_oc_PortableServer_ServantRetentionPolicyValue),
(char *) &_oc_PortableServer_ServantRetentionPolicyValue,
0,
sizeof (PortableServer::ServantRetentionPolicyValue)
);
namespace PortableServer
{
::CORBA::TypeCode_ptr _tc_ServantRetentionPolicyValue =
&_tc_TAO_tc_PortableServer_ServantRetentionPolicyValue;
}
// TAO_IDL - Generated from
// W:\ACE_wrappers\TAO\TAO_IDL\be\be_visitor_interface/interface_cs.cpp:60
// Traits specializations for PortableServer::ServantRetentionPolicy.
PortableServer::ServantRetentionPolicy_ptr
TAO::Objref_Traits<PortableServer::ServantRetentionPolicy>::tao_duplicate (
PortableServer::ServantRetentionPolicy_ptr p
)
{
return PortableServer::ServantRetentionPolicy::_duplicate (p);
}
void
TAO::Objref_Traits<PortableServer::ServantRetentionPolicy>::tao_release (
PortableServer::ServantRetentionPolicy_ptr p
)
{
CORBA::release (p);
}
PortableServer::ServantRetentionPolicy_ptr
TAO::Objref_Traits<PortableServer::ServantRetentionPolicy>::tao_nil (void)
{
return PortableServer::ServantRetentionPolicy::_nil ();
}
CORBA::Boolean
TAO::Objref_Traits<PortableServer::ServantRetentionPolicy>::tao_marshal (
PortableServer::ServantRetentionPolicy_ptr p,
TAO_OutputCDR & cdr
)
{
return p->marshal (cdr);
}
// Function pointer for collocation factory initialization.
TAO::Collocation_Proxy_Broker *
(*PortableServer__TAO_ServantRetentionPolicy_Proxy_Broker_Factory_function_pointer) (
CORBA::Object_ptr obj
) = 0;
PortableServer::ServantRetentionPolicy::ServantRetentionPolicy (void)
{}
PortableServer::ServantRetentionPolicy::~ServantRetentionPolicy (void)
{}
void
PortableServer::ServantRetentionPolicy::_tao_any_destructor (void *_tao_void_pointer)
{
ServantRetentionPolicy *_tao_tmp_pointer =
ACE_static_cast (ServantRetentionPolicy *, _tao_void_pointer);
CORBA::release (_tao_tmp_pointer);
}
PortableServer::ServantRetentionPolicy_ptr
PortableServer::ServantRetentionPolicy::_narrow (
CORBA::Object_pt
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?