messaging_no_implc.cpp
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C++ 代码 · 共 2,635 行 · 第 1/5 页
CPP
2,635 行
{
if (CORBA::is_nil (_tao_objref))
{
return RelativeRequestTimeoutPolicy::_nil ();
}
RelativeRequestTimeoutPolicy_ptr proxy =
dynamic_cast<RelativeRequestTimeoutPolicy_ptr> (_tao_objref);
return RelativeRequestTimeoutPolicy::_duplicate (proxy);
}
Messaging::RelativeRequestTimeoutPolicy_ptr
Messaging::RelativeRequestTimeoutPolicy::_duplicate (RelativeRequestTimeoutPolicy_ptr obj)
{
if (! CORBA::is_nil (obj))
{
obj->_add_ref ();
}
return obj;
}
CORBA::Boolean
Messaging::RelativeRequestTimeoutPolicy::_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/Messaging/RelativeRequestTimeoutPolicy:1.0"
) ||
!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* Messaging::RelativeRequestTimeoutPolicy::_interface_repository_id (void) const
{
return "IDL:omg.org/Messaging/RelativeRequestTimeoutPolicy:1.0";
}
CORBA::Boolean
Messaging::RelativeRequestTimeoutPolicy::marshal (TAO_OutputCDR &)
{
return 0;
}
// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:284
static const CORBA::Long _oc_Messaging_RelativeRequestTimeoutPolicy[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
55,
ACE_NTOHL (0x49444c3a),
ACE_NTOHL (0x6f6d672e),
ACE_NTOHL (0x6f72672f),
ACE_NTOHL (0x4d657373),
ACE_NTOHL (0x6167696e),
ACE_NTOHL (0x672f5265),
ACE_NTOHL (0x6c617469),
ACE_NTOHL (0x76655265),
ACE_NTOHL (0x71756573),
ACE_NTOHL (0x7454696d),
ACE_NTOHL (0x656f7574),
ACE_NTOHL (0x506f6c69),
ACE_NTOHL (0x63793a31),
ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/Messaging/RelativeRequestTimeoutPolicy:1.0
29,
ACE_NTOHL (0x52656c61),
ACE_NTOHL (0x74697665),
ACE_NTOHL (0x52657175),
ACE_NTOHL (0x65737454),
ACE_NTOHL (0x696d656f),
ACE_NTOHL (0x7574506f),
ACE_NTOHL (0x6c696379),
ACE_NTOHL (0x0), // name = RelativeRequestTimeoutPolicy
};
static CORBA::TypeCode _tc_TAO_tc_Messaging_RelativeRequestTimeoutPolicy (
CORBA::tk_objref,
sizeof (_oc_Messaging_RelativeRequestTimeoutPolicy),
(char *) &_oc_Messaging_RelativeRequestTimeoutPolicy,
0,
sizeof (Messaging::RelativeRequestTimeoutPolicy)
);
namespace Messaging
{
::CORBA::TypeCode_ptr _tc_RelativeRequestTimeoutPolicy =
&_tc_TAO_tc_Messaging_RelativeRequestTimeoutPolicy;
}
// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:284
static const CORBA::Long _oc_Messaging_RoutingTypeRange[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
43,
ACE_NTOHL (0x49444c3a),
ACE_NTOHL (0x6f6d672e),
ACE_NTOHL (0x6f72672f),
ACE_NTOHL (0x4d657373),
ACE_NTOHL (0x6167696e),
ACE_NTOHL (0x672f526f),
ACE_NTOHL (0x7574696e),
ACE_NTOHL (0x67547970),
ACE_NTOHL (0x6552616e),
ACE_NTOHL (0x67653a31),
ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/Messaging/RoutingTypeRange:1.0
17,
ACE_NTOHL (0x526f7574),
ACE_NTOHL (0x696e6754),
ACE_NTOHL (0x79706552),
ACE_NTOHL (0x616e6765),
ACE_NTOHL (0x0), // name = RoutingTypeRange
2, // member count
4,
ACE_NTOHL (0x6d696e00), // name = min
CORBA::tk_alias, // typecode kind for typedefs
68, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
38,
ACE_NTOHL (0x49444c3a),
ACE_NTOHL (0x6f6d672e),
ACE_NTOHL (0x6f72672f),
ACE_NTOHL (0x4d657373),
ACE_NTOHL (0x6167696e),
ACE_NTOHL (0x672f526f),
ACE_NTOHL (0x7574696e),
ACE_NTOHL (0x67547970),
ACE_NTOHL (0x653a312e),
ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/Messaging/RoutingType:1.0
12,
ACE_NTOHL (0x526f7574),
ACE_NTOHL (0x696e6754),
ACE_NTOHL (0x79706500), // name = RoutingType
CORBA::tk_short,
4,
ACE_NTOHL (0x6d617800), // name = max
CORBA::tk_alias, // typecode kind for typedefs
68, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
38,
ACE_NTOHL (0x49444c3a),
ACE_NTOHL (0x6f6d672e),
ACE_NTOHL (0x6f72672f),
ACE_NTOHL (0x4d657373),
ACE_NTOHL (0x6167696e),
ACE_NTOHL (0x672f526f),
ACE_NTOHL (0x7574696e),
ACE_NTOHL (0x67547970),
ACE_NTOHL (0x653a312e),
ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/Messaging/RoutingType:1.0
12,
ACE_NTOHL (0x526f7574),
ACE_NTOHL (0x696e6754),
ACE_NTOHL (0x79706500), // name = RoutingType
CORBA::tk_short,
};
static CORBA::TypeCode _tc_TAO_tc_Messaging_RoutingTypeRange (
CORBA::tk_struct,
sizeof (_oc_Messaging_RoutingTypeRange),
(char *) &_oc_Messaging_RoutingTypeRange,
0,
sizeof (Messaging::RoutingTypeRange)
);
namespace Messaging
{
::CORBA::TypeCode_ptr _tc_RoutingTypeRange =
&_tc_TAO_tc_Messaging_RoutingTypeRange;
}
// TAO_IDL - Generated from
// be/be_visitor_structure/structure_cs.cpp:66
void
Messaging::RoutingTypeRange::_tao_any_destructor (
void *_tao_void_pointer
)
{
RoutingTypeRange *_tao_tmp_pointer =
ACE_static_cast (RoutingTypeRange *, _tao_void_pointer);
delete _tao_tmp_pointer;
}
// TAO_IDL - Generated from
// be/be_visitor_interface/interface_cs.cpp:60
// Traits specializations for Messaging::RoutingPolicy.
ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
Messaging::RoutingPolicy_ptr
TAO::Objref_Traits<Messaging::RoutingPolicy>::tao_duplicate (
Messaging::RoutingPolicy_ptr p
)
{
return Messaging::RoutingPolicy::_duplicate (p);
}
ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<Messaging::RoutingPolicy>::tao_release (
Messaging::RoutingPolicy_ptr p
)
{
CORBA::release (p);
}
ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
Messaging::RoutingPolicy_ptr
TAO::Objref_Traits<Messaging::RoutingPolicy>::tao_nil (void)
{
return Messaging::RoutingPolicy::_nil ();
}
ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<Messaging::RoutingPolicy>::tao_marshal (
Messaging::RoutingPolicy_ptr p,
TAO_OutputCDR & cdr
)
{
return p->marshal (cdr);
}
// Function pointer for collocation factory initialization.
TAO::Collocation_Proxy_Broker *
(*Messaging__TAO_RoutingPolicy_Proxy_Broker_Factory_function_pointer) (
CORBA::Object_ptr obj
) = 0;
Messaging::RoutingPolicy::RoutingPolicy (void)
{}
Messaging::RoutingPolicy::~RoutingPolicy (void)
{}
void
Messaging::RoutingPolicy::_tao_any_destructor (void *_tao_void_pointer)
{
RoutingPolicy *_tao_tmp_pointer =
ACE_static_cast (RoutingPolicy *, _tao_void_pointer);
CORBA::release (_tao_tmp_pointer);
}
Messaging::RoutingPolicy_ptr
Messaging::RoutingPolicy::_narrow (
CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
if (CORBA::is_nil (_tao_objref))
{
return RoutingPolicy::_nil ();
}
RoutingPolicy_ptr proxy =
dynamic_cast<RoutingPolicy_ptr> (_tao_objref);
return RoutingPolicy::_duplicate (proxy);
}
Messaging::RoutingPolicy_ptr
Messaging::RoutingPolicy::_duplicate (RoutingPolicy_ptr obj)
{
if (! CORBA::is_nil (obj))
{
obj->_add_ref ();
}
return obj;
}
CORBA::Boolean
Messaging::RoutingPolicy::_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/Messaging/RoutingPolicy:1.0"
) ||
!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* Messaging::RoutingPolicy::_interface_repository_id (void) const
{
return "IDL:omg.org/Messaging/RoutingPolicy:1.0";
}
CORBA::Boolean
Messaging::RoutingPolicy::marshal (TAO_OutputCDR &)
{
return 0;
}
// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:284
static const CORBA::Long _oc_Messaging_RoutingPolicy[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
40,
ACE_NTOHL (0x49444c3a),
ACE_NTOHL (0x6f6d672e),
ACE_NTOHL (0x6f72672f),
ACE_NTOHL (0x4d657373),
ACE_NTOHL (0x6167696e),
ACE_NTOHL (0x672f526f),
ACE_NTOHL (0x7574696e),
ACE_NTOHL (0x67506f6c),
ACE_NTOHL (0x6963793a),
ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/Messaging/RoutingPolicy:1.0
14,
ACE_NTOHL (0x526f7574),
ACE_NTOHL (0x696e6750),
ACE_NTOHL (0x6f6c6963),
ACE_NTOHL (0x79000000), // name = RoutingPolicy
};
static CORBA::TypeCode _tc_TAO_tc_Messaging_RoutingPolicy (
CORBA::tk_objref,
sizeof (_oc_Messaging_RoutingPolicy),
(char *) &_oc_Messaging_RoutingPolicy,
0,
sizeof (Messaging::RoutingPolicy)
);
namespace Messaging
{
::CORBA::TypeCode_ptr _tc_RoutingPolicy =
&_tc_TAO_tc_Messaging_RoutingPolicy;
}
// TAO_IDL - Generated from
// be/be_visitor_interface/interface_cs.cpp:60
// Traits specializations for Messaging::MaxHopsPolicy.
ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
Messaging::MaxHopsPolicy_ptr
TAO::Objref_Traits<Messaging::MaxHopsPolicy>::tao_duplicate (
Messaging::MaxHopsPolicy_ptr p
)
{
return Messaging::MaxHopsPolicy::_duplicate (p);
}
ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<Messaging::MaxHopsPolicy>::tao_release (
Messaging::MaxHopsPolicy_ptr p
)
{
CORBA::release (p);
}
ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
Messaging::MaxHopsPolicy_ptr
TAO::Objref_Traits<Messaging::MaxHopsPolicy>::tao_nil (void)
{
return Messaging::MaxHopsPolicy::_nil ();
}
ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<Messaging::MaxHopsPolicy>::tao_marshal (
Messaging::MaxHopsPolicy_ptr p,
TAO_OutputCDR & cdr
)
{
return p->marshal (cdr);
}
// Function pointer for collocation factory initialization.
TAO::Collocation_Proxy_Broker *
(*Messaging__TAO_MaxHopsPolicy_Proxy_Broker_Factory_function_pointer) (
CORBA::Object_ptr obj
) = 0;
Messaging::MaxHopsPolicy::MaxHopsPolicy (void)
{}
Messaging::MaxHopsPolicy::~MaxHopsPolicy (void)
{}
void
Messaging::MaxHopsPolicy::_tao_any_destructor (void *_tao_void_pointer)
{
MaxHopsPolicy *_tao_tmp_pointer =
ACE_static_cast (MaxHopsPolicy *, _tao_void_pointer);
CORBA::release (_tao_tmp_pointer);
}
Messaging::MaxHopsPolicy_ptr
Messaging::MaxHopsPolicy::_narrow (
CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
if (CORBA::is_nil (_tao_objref))
{
return MaxHopsPolicy::_nil ();
}
MaxHopsPolicy_ptr proxy =
dynamic_cast<MaxHopsPolicy_ptr> (_tao_objref);
return MaxHopsPolicy::_duplicate (proxy);
}
Messaging::MaxHopsPolicy_ptr
Messaging::MaxHopsPolicy::_duplicate (MaxHopsPolicy_ptr obj)
{
if (! CORBA::is_nil (obj))
{
obj->_add_ref ();
}
return obj;
}
CORBA::Boolean
Messaging::MaxHopsPolicy::_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/Messaging/MaxHopsPolicy:1.0"
) ||
!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* Messaging::MaxHopsPolicy::_interface_repository_id (void) const
{
return "IDL:omg.org/Messaging/MaxHopsPolicy:1.0";
}
CORBA::Boolean
Messaging::MaxHopsPolicy::marshal (TAO_OutputCDR &)
{
return 0;
}
// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:284
static const CORBA::Long _oc_Messaging_MaxHopsPolicy[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
40,
ACE_NTOHL (0x49444c3a),
ACE_NTOHL (0x6f6d672e),
ACE_NTOHL (0x6f72672f),
ACE_NTOHL (0x4d657373),
ACE_NTOHL (0x6167696e),
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?