messaging_no_implc.cpp
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C++ 代码 · 共 2,635 行 · 第 1/5 页
CPP
2,635 行
// -*- C++ -*-
//
// Messaging_No_ImplC.cpp,v 1.13 2003/12/28 10:57:39 jwillemsen Exp
// **** Code generated by the The ACE ORB (TAO) IDL Compiler ****
// TAO and the TAO IDL Compiler have been developed by:
// Center for Distributed Object Computing
// Washington University
// St. Louis, MO
// USA
// http://www.cs.wustl.edu/~schmidt/doc-center.html
// and
// Distributed Object Computing Laboratory
// University of California at Irvine
// Irvine, CA
// USA
// http://doc.ece.uci.edu/
// and
// Institute for Software Integrated Systems
// Vanderbilt University
// Nashville, TN
// USA
// http://www.isis.vanderbilt.edu/
//
// Information about TAO is available at:
// http://www.cs.wustl.edu/~schmidt/TAO.html
// TAO_IDL - Generated from
// be/be_codegen.cpp:302
#include "Messaging_No_ImplC.h"
#include "tao/Typecode.h"
#include "tao/Any_Impl_T.h"
#include "tao/Any_Dual_Impl_T.h"
#include "ace/OS_NS_string.h"
#if defined (__BORLANDC__)
#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
#endif /* __BORLANDC__ */
#if !defined (__ACE_INLINE__)
#include "Messaging_No_ImplC.i"
#endif /* !defined INLINE */
// TAO_IDL - Generated from
// be/be_visitor_arg_traits.cpp:60
// Arg traits specializations.
namespace TAO
{
}
// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:284
static const CORBA::Long _oc_Messaging_Priority[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
35,
ACE_NTOHL (0x49444c3a),
ACE_NTOHL (0x6f6d672e),
ACE_NTOHL (0x6f72672f),
ACE_NTOHL (0x4d657373),
ACE_NTOHL (0x6167696e),
ACE_NTOHL (0x672f5072),
ACE_NTOHL (0x696f7269),
ACE_NTOHL (0x74793a31),
ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/Messaging/Priority:1.0
9,
ACE_NTOHL (0x5072696f),
ACE_NTOHL (0x72697479),
ACE_NTOHL (0x0), // name = Priority
CORBA::tk_short,
};
static CORBA::TypeCode _tc_TAO_tc_Messaging_Priority (
CORBA::tk_alias,
sizeof (_oc_Messaging_Priority),
(char *) &_oc_Messaging_Priority,
0,
sizeof (Messaging::Priority)
);
namespace Messaging
{
::CORBA::TypeCode_ptr _tc_Priority =
&_tc_TAO_tc_Messaging_Priority;
}
// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:284
static const CORBA::Long _oc_Messaging_RebindMode[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
37,
ACE_NTOHL (0x49444c3a),
ACE_NTOHL (0x6f6d672e),
ACE_NTOHL (0x6f72672f),
ACE_NTOHL (0x4d657373),
ACE_NTOHL (0x6167696e),
ACE_NTOHL (0x672f5265),
ACE_NTOHL (0x62696e64),
ACE_NTOHL (0x4d6f6465),
ACE_NTOHL (0x3a312e30),
ACE_NTOHL (0x0), // repository ID = IDL:omg.org/Messaging/RebindMode:1.0
11,
ACE_NTOHL (0x52656269),
ACE_NTOHL (0x6e644d6f),
ACE_NTOHL (0x64650000), // name = RebindMode
CORBA::tk_short,
};
static CORBA::TypeCode _tc_TAO_tc_Messaging_RebindMode (
CORBA::tk_alias,
sizeof (_oc_Messaging_RebindMode),
(char *) &_oc_Messaging_RebindMode,
0,
sizeof (Messaging::RebindMode)
);
namespace Messaging
{
::CORBA::TypeCode_ptr _tc_RebindMode =
&_tc_TAO_tc_Messaging_RebindMode;
}
// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:284
static const CORBA::Long _oc_Messaging_RoutingType[] =
{
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_RoutingType (
CORBA::tk_alias,
sizeof (_oc_Messaging_RoutingType),
(char *) &_oc_Messaging_RoutingType,
0,
sizeof (Messaging::RoutingType)
);
namespace Messaging
{
::CORBA::TypeCode_ptr _tc_RoutingType =
&_tc_TAO_tc_Messaging_RoutingType;
}
// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:284
static const CORBA::Long _oc_Messaging_Ordering[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
35,
ACE_NTOHL (0x49444c3a),
ACE_NTOHL (0x6f6d672e),
ACE_NTOHL (0x6f72672f),
ACE_NTOHL (0x4d657373),
ACE_NTOHL (0x6167696e),
ACE_NTOHL (0x672f4f72),
ACE_NTOHL (0x64657269),
ACE_NTOHL (0x6e673a31),
ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/Messaging/Ordering:1.0
9,
ACE_NTOHL (0x4f726465),
ACE_NTOHL (0x72696e67),
ACE_NTOHL (0x0), // name = Ordering
CORBA::tk_ushort,
};
static CORBA::TypeCode _tc_TAO_tc_Messaging_Ordering (
CORBA::tk_alias,
sizeof (_oc_Messaging_Ordering),
(char *) &_oc_Messaging_Ordering,
0,
sizeof (Messaging::Ordering)
);
namespace Messaging
{
::CORBA::TypeCode_ptr _tc_Ordering =
&_tc_TAO_tc_Messaging_Ordering;
}
// TAO_IDL - Generated from
// be/be_visitor_interface/interface_cs.cpp:60
// Traits specializations for Messaging::RebindPolicy.
ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
Messaging::RebindPolicy_ptr
TAO::Objref_Traits<Messaging::RebindPolicy>::tao_duplicate (
Messaging::RebindPolicy_ptr p
)
{
return Messaging::RebindPolicy::_duplicate (p);
}
ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<Messaging::RebindPolicy>::tao_release (
Messaging::RebindPolicy_ptr p
)
{
CORBA::release (p);
}
ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
Messaging::RebindPolicy_ptr
TAO::Objref_Traits<Messaging::RebindPolicy>::tao_nil (void)
{
return Messaging::RebindPolicy::_nil ();
}
ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<Messaging::RebindPolicy>::tao_marshal (
Messaging::RebindPolicy_ptr p,
TAO_OutputCDR & cdr
)
{
return p->marshal (cdr);
}
// Function pointer for collocation factory initialization.
TAO::Collocation_Proxy_Broker *
(*Messaging__TAO_RebindPolicy_Proxy_Broker_Factory_function_pointer) (
CORBA::Object_ptr obj
) = 0;
Messaging::RebindPolicy::RebindPolicy (void)
{}
Messaging::RebindPolicy::~RebindPolicy (void)
{}
void
Messaging::RebindPolicy::_tao_any_destructor (void *_tao_void_pointer)
{
RebindPolicy *_tao_tmp_pointer =
ACE_static_cast (RebindPolicy *, _tao_void_pointer);
CORBA::release (_tao_tmp_pointer);
}
Messaging::RebindPolicy_ptr
Messaging::RebindPolicy::_narrow (
CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL_NOT_USED
)
{
if (CORBA::is_nil (_tao_objref))
{
return RebindPolicy::_nil ();
}
RebindPolicy_ptr proxy =
dynamic_cast<RebindPolicy_ptr> (_tao_objref);
return RebindPolicy::_duplicate (proxy);
}
Messaging::RebindPolicy_ptr
Messaging::RebindPolicy::_duplicate (RebindPolicy_ptr obj)
{
if (! CORBA::is_nil (obj))
{
obj->_add_ref ();
}
return obj;
}
CORBA::Boolean
Messaging::RebindPolicy::_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/RebindPolicy: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::RebindPolicy::_interface_repository_id (void) const
{
return "IDL:omg.org/Messaging/RebindPolicy:1.0";
}
CORBA::Boolean
Messaging::RebindPolicy::marshal (TAO_OutputCDR &)
{
return 0;
}
// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:284
static const CORBA::Long _oc_Messaging_RebindPolicy[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
39,
ACE_NTOHL (0x49444c3a),
ACE_NTOHL (0x6f6d672e),
ACE_NTOHL (0x6f72672f),
ACE_NTOHL (0x4d657373),
ACE_NTOHL (0x6167696e),
ACE_NTOHL (0x672f5265),
ACE_NTOHL (0x62696e64),
ACE_NTOHL (0x506f6c69),
ACE_NTOHL (0x63793a31),
ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/Messaging/RebindPolicy:1.0
13,
ACE_NTOHL (0x52656269),
ACE_NTOHL (0x6e64506f),
ACE_NTOHL (0x6c696379),
ACE_NTOHL (0x0), // name = RebindPolicy
};
static CORBA::TypeCode _tc_TAO_tc_Messaging_RebindPolicy (
CORBA::tk_objref,
sizeof (_oc_Messaging_RebindPolicy),
(char *) &_oc_Messaging_RebindPolicy,
0,
sizeof (Messaging::RebindPolicy)
);
namespace Messaging
{
::CORBA::TypeCode_ptr _tc_RebindPolicy =
&_tc_TAO_tc_Messaging_RebindPolicy;
}
// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:284
static const CORBA::Long _oc_Messaging_PriorityRange[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
40,
ACE_NTOHL (0x49444c3a),
ACE_NTOHL (0x6f6d672e),
ACE_NTOHL (0x6f72672f),
ACE_NTOHL (0x4d657373),
ACE_NTOHL (0x6167696e),
ACE_NTOHL (0x672f5072),
ACE_NTOHL (0x696f7269),
ACE_NTOHL (0x74795261),
ACE_NTOHL (0x6e67653a),
ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/Messaging/PriorityRange:1.0
14,
ACE_NTOHL (0x5072696f),
ACE_NTOHL (0x72697479),
ACE_NTOHL (0x52616e67),
ACE_NTOHL (0x65000000), // name = PriorityRange
2, // member count
4,
ACE_NTOHL (0x6d696e00), // name = min
CORBA::tk_alias, // typecode kind for typedefs
64, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
35,
ACE_NTOHL (0x49444c3a),
ACE_NTOHL (0x6f6d672e),
ACE_NTOHL (0x6f72672f),
ACE_NTOHL (0x4d657373),
ACE_NTOHL (0x6167696e),
ACE_NTOHL (0x672f5072),
ACE_NTOHL (0x696f7269),
ACE_NTOHL (0x74793a31),
ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/Messaging/Priority:1.0
9,
ACE_NTOHL (0x5072696f),
ACE_NTOHL (0x72697479),
ACE_NTOHL (0x0), // name = Priority
CORBA::tk_short,
4,
ACE_NTOHL (0x6d617800), // name = max
CORBA::tk_alias, // typecode kind for typedefs
64, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
35,
ACE_NTOHL (0x49444c3a),
ACE_NTOHL (0x6f6d672e),
ACE_NTOHL (0x6f72672f),
ACE_NTOHL (0x4d657373),
ACE_NTOHL (0x6167696e),
ACE_NTOHL (0x672f5072),
ACE_NTOHL (0x696f7269),
ACE_NTOHL (0x74793a31),
ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/Messaging/Priority:1.0
9,
ACE_NTOHL (0x5072696f),
ACE_NTOHL (0x72697479),
ACE_NTOHL (0x0), // name = Priority
CORBA::tk_short,
};
static CORBA::TypeCode _tc_TAO_tc_Messaging_PriorityRange (
CORBA::tk_struct,
sizeof (_oc_Messaging_PriorityRange),
(char *) &_oc_Messaging_PriorityRange,
0,
sizeof (Messaging::PriorityRange)
);
namespace Messaging
{
::CORBA::TypeCode_ptr _tc_PriorityRange =
&_tc_TAO_tc_Messaging_PriorityRange;
}
// TAO_IDL - Generated from
// be/be_visitor_structure/structure_cs.cpp:66
void
Messaging::PriorityRange::_tao_any_destructor (
void *_tao_void_pointer
)
{
PriorityRange *_tao_tmp_pointer =
ACE_static_cast (PriorityRange *, _tao_void_pointer);
delete _tao_tmp_pointer;
}
// TAO_IDL - Generated from
// be/be_visitor_interface/interface_cs.cpp:60
// Traits specializations for Messaging::RequestPriorityPolicy.
ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
Messaging::RequestPriorityPolicy_ptr
TAO::Objref_Traits<Messaging::RequestPriorityPolicy>::tao_duplicate (
Messaging::RequestPriorityPolicy_ptr p
)
{
return Messaging::RequestPriorityPolicy::_duplicate (p);
}
ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<Messaging::RequestPriorityPolicy>::tao_release (
Messaging::RequestPriorityPolicy_ptr p
)
{
CORBA::release (p);
}
ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
Messaging::RequestPriorityPolicy_ptr
TAO::Objref_Traits<Messaging::RequestPriorityPolicy>::tao_nil (void)
{
return Messaging::RequestPriorityPolicy::_nil ();
}
ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<Messaging::RequestPriorityPolicy>::tao_marshal (
Messaging::RequestPriorityPolicy_ptr p,
TAO_OutputCDR & cdr
)
{
return p->marshal (cdr);
}
// Function pointer for collocation factory initialization.
TAO::Collocation_Proxy_Broker *
(*Messaging__TAO_RequestPriorityPolicy_Proxy_Broker_Factory_function_pointer) (
CORBA::Object_ptr obj
) = 0;
Messaging::RequestPriorityPolicy::RequestPriorityPolicy (void)
{}
Messaging::RequestPriorityPolicy::~RequestPriorityPolicy (void)
{}
void
Messaging::RequestPriorityPolicy::_tao_any_destructor (void *_tao_void_pointer)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?