ifr_basec.cpp
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C++ 代码 · 共 2,607 行 · 第 1/5 页
CPP
2,607 行
7,
this->the_TAO_IRObject_Proxy_Broker_
);
_tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
CORBA::IRObject::IRObject (int collocated)
: the_TAO_IRObject_Proxy_Broker_ (0)
{
this->CORBA_IRObject_setup_collocation (collocated);
}
void
CORBA::IRObject::CORBA_IRObject_setup_collocation (int collocated)
{
if (collocated)
{
this->the_TAO_IRObject_Proxy_Broker_ =
::CORBA__TAO_IRObject_Proxy_Broker_Factory_function_pointer (this);
}
}
CORBA::IRObject::~IRObject (void)
{}
void
CORBA::IRObject::_tao_any_destructor (void *_tao_void_pointer)
{
IRObject *_tao_tmp_pointer =
ACE_static_cast (IRObject *, _tao_void_pointer);
CORBA::release (_tao_tmp_pointer);
}
CORBA::IRObject_ptr
CORBA::IRObject::_narrow (
CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL
)
{
return
TAO::Narrow_Utils<IRObject>::narrow (
_tao_objref,
"IDL:omg.org/CORBA/IRObject:1.0",
CORBA__TAO_IRObject_Proxy_Broker_Factory_function_pointer
ACE_ENV_ARG_PARAMETER
);
}
CORBA::IRObject_ptr
CORBA::IRObject::_unchecked_narrow (
CORBA::Object_ptr _tao_objref
ACE_ENV_ARG_DECL
)
{
return
TAO::Narrow_Utils<IRObject>::unchecked_narrow (
_tao_objref,
"IDL:omg.org/CORBA/IRObject:1.0",
CORBA__TAO_IRObject_Proxy_Broker_Factory_function_pointer
ACE_ENV_ARG_PARAMETER
);
}
CORBA::IRObject_ptr
CORBA::IRObject::_duplicate (IRObject_ptr obj)
{
if (! CORBA::is_nil (obj))
{
obj->_add_ref ();
}
return obj;
}
CORBA::Boolean
CORBA::IRObject::_is_a (
const char *value
ACE_ENV_ARG_DECL
)
{
if (
!ACE_OS::strcmp (
(char *)value,
"IDL:omg.org/CORBA/IRObject:1.0"
) ||
!ACE_OS::strcmp (
(char *)value,
"IDL:omg.org/CORBA/Object:1.0"
)
)
{
return 1; // success using local knowledge
}
else
{
return this->ACE_NESTED_CLASS (CORBA, Object)::_is_a (
value
ACE_ENV_ARG_PARAMETER
);
}
}
const char* CORBA::IRObject::_interface_repository_id (void) const
{
return "IDL:omg.org/CORBA/IRObject:1.0";
}
CORBA::Boolean
CORBA::IRObject::marshal (TAO_OutputCDR &cdr)
{
return (cdr << this);
}
// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:284
static const CORBA::Long _oc_CORBA_IRObject[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
31,
ACE_NTOHL (0x49444c3a),
ACE_NTOHL (0x6f6d672e),
ACE_NTOHL (0x6f72672f),
ACE_NTOHL (0x434f5242),
ACE_NTOHL (0x412f4952),
ACE_NTOHL (0x4f626a65),
ACE_NTOHL (0x63743a31),
ACE_NTOHL (0x2e300000), // repository ID = IDL:omg.org/CORBA/IRObject:1.0
9,
ACE_NTOHL (0x49524f62),
ACE_NTOHL (0x6a656374),
ACE_NTOHL (0x0), // name = IRObject
};
static CORBA::TypeCode _tc_TAO_tc_CORBA_IRObject (
CORBA::tk_objref,
sizeof (_oc_CORBA_IRObject),
(char *) &_oc_CORBA_IRObject,
0,
sizeof (CORBA::IRObject)
);
namespace CORBA
{
::CORBA::TypeCode_ptr _tc_IRObject =
&_tc_TAO_tc_CORBA_IRObject;
}
// TAO_IDL - Generated from
// be/be_visitor_typecode/typecode_defn.cpp:284
static const CORBA::Long _oc_CORBA_VersionSpec[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
34,
ACE_NTOHL (0x49444c3a),
ACE_NTOHL (0x6f6d672e),
ACE_NTOHL (0x6f72672f),
ACE_NTOHL (0x434f5242),
ACE_NTOHL (0x412f5665),
ACE_NTOHL (0x7273696f),
ACE_NTOHL (0x6e537065),
ACE_NTOHL (0x633a312e),
ACE_NTOHL (0x30000000), // repository ID = IDL:omg.org/CORBA/VersionSpec:1.0
12,
ACE_NTOHL (0x56657273),
ACE_NTOHL (0x696f6e53),
ACE_NTOHL (0x70656300), // name = VersionSpec
CORBA::tk_string,
0U, // string length
};
static CORBA::TypeCode _tc_TAO_tc_CORBA_VersionSpec (
CORBA::tk_alias,
sizeof (_oc_CORBA_VersionSpec),
(char *) &_oc_CORBA_VersionSpec,
0,
sizeof (CORBA::VersionSpec)
);
namespace CORBA
{
::CORBA::TypeCode_ptr _tc_VersionSpec =
&_tc_TAO_tc_CORBA_VersionSpec;
}
// TAO_IDL - Generated from
// be/be_visitor_interface/interface_cs.cpp:60
// Traits specializations for CORBA::Contained.
ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Contained_ptr
TAO::Objref_Traits<CORBA::Contained>::tao_duplicate (
CORBA::Contained_ptr p
)
{
return CORBA::Contained::_duplicate (p);
}
ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
void
TAO::Objref_Traits<CORBA::Contained>::tao_release (
CORBA::Contained_ptr p
)
{
CORBA::release (p);
}
ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Contained_ptr
TAO::Objref_Traits<CORBA::Contained>::tao_nil (void)
{
return CORBA::Contained::_nil ();
}
ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION
CORBA::Boolean
TAO::Objref_Traits<CORBA::Contained>::tao_marshal (
CORBA::Contained_ptr p,
TAO_OutputCDR & cdr
)
{
return p->marshal (cdr);
}
// Function pointer for collocation factory initialization.
TAO::Collocation_Proxy_Broker *
(*CORBA__TAO_Contained_Proxy_Broker_Factory_function_pointer) (
CORBA::Object_ptr obj
) = 0;
// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78
char * CORBA::Contained::id (
ACE_ENV_SINGLE_ARG_DECL
)
ACE_THROW_SPEC ((
CORBA::SystemException
))
{
if (!this->is_evaluated ())
{
ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
}
if (this->the_TAO_Contained_Proxy_Broker_ == 0)
{
CORBA_Contained_setup_collocation (
this->ACE_NESTED_CLASS (CORBA, Object)::_is_collocated ()
);
}
TAO::Arg_Traits<CORBA::RepositoryId>::ret_val _tao_retval;
TAO::Argument *_tao_signature [] =
{
&_tao_retval
};
TAO::Invocation_Adapter _tao_call (
this,
_tao_signature,
1,
"_get_id",
7,
this->the_TAO_Contained_Proxy_Broker_
);
_tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (_tao_retval.excp ());
return _tao_retval.retn ();
}
// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78
void CORBA::Contained::id (
const char * id
ACE_ENV_ARG_DECL
)
ACE_THROW_SPEC ((
CORBA::SystemException
))
{
if (!this->is_evaluated ())
{
ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
}
if (this->the_TAO_Contained_Proxy_Broker_ == 0)
{
CORBA_Contained_setup_collocation (
this->ACE_NESTED_CLASS (CORBA, Object)::_is_collocated ()
);
}
TAO::Arg_Traits<void>::ret_val _tao_retval;
TAO::Arg_Traits<CORBA::RepositoryId>::in_arg_val _tao_id (id);
TAO::Argument *_tao_signature [] =
{
&_tao_retval,
&_tao_id
};
TAO::Invocation_Adapter _tao_call (
this,
_tao_signature,
2,
"_set_id",
7,
this->the_TAO_Contained_Proxy_Broker_
);
_tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78
char * CORBA::Contained::name (
ACE_ENV_SINGLE_ARG_DECL
)
ACE_THROW_SPEC ((
CORBA::SystemException
))
{
if (!this->is_evaluated ())
{
ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
}
if (this->the_TAO_Contained_Proxy_Broker_ == 0)
{
CORBA_Contained_setup_collocation (
this->ACE_NESTED_CLASS (CORBA, Object)::_is_collocated ()
);
}
TAO::Arg_Traits<CORBA::Identifier>::ret_val _tao_retval;
TAO::Argument *_tao_signature [] =
{
&_tao_retval
};
TAO::Invocation_Adapter _tao_call (
this,
_tao_signature,
1,
"_get_name",
9,
this->the_TAO_Contained_Proxy_Broker_
);
_tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (_tao_retval.excp ());
return _tao_retval.retn ();
}
// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78
void CORBA::Contained::name (
const char * name
ACE_ENV_ARG_DECL
)
ACE_THROW_SPEC ((
CORBA::SystemException
))
{
if (!this->is_evaluated ())
{
ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
}
if (this->the_TAO_Contained_Proxy_Broker_ == 0)
{
CORBA_Contained_setup_collocation (
this->ACE_NESTED_CLASS (CORBA, Object)::_is_collocated ()
);
}
TAO::Arg_Traits<void>::ret_val _tao_retval;
TAO::Arg_Traits<CORBA::Identifier>::in_arg_val _tao_name (name);
TAO::Argument *_tao_signature [] =
{
&_tao_retval,
&_tao_name
};
TAO::Invocation_Adapter _tao_call (
this,
_tao_signature,
2,
"_set_name",
9,
this->the_TAO_Contained_Proxy_Broker_
);
_tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78
char * CORBA::Contained::version (
ACE_ENV_SINGLE_ARG_DECL
)
ACE_THROW_SPEC ((
CORBA::SystemException
))
{
if (!this->is_evaluated ())
{
ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
}
if (this->the_TAO_Contained_Proxy_Broker_ == 0)
{
CORBA_Contained_setup_collocation (
this->ACE_NESTED_CLASS (CORBA, Object)::_is_collocated ()
);
}
TAO::Arg_Traits<CORBA::VersionSpec>::ret_val _tao_retval;
TAO::Argument *_tao_signature [] =
{
&_tao_retval
};
TAO::Invocation_Adapter _tao_call (
this,
_tao_signature,
1,
"_get_version",
12,
this->the_TAO_Contained_Proxy_Broker_
);
_tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (_tao_retval.excp ());
return _tao_retval.retn ();
}
// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78
void CORBA::Contained::version (
const char * version
ACE_ENV_ARG_DECL
)
ACE_THROW_SPEC ((
CORBA::SystemException
))
{
if (!this->is_evaluated ())
{
ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
}
if (this->the_TAO_Contained_Proxy_Broker_ == 0)
{
CORBA_Contained_setup_collocation (
this->ACE_NESTED_CLASS (CORBA, Object)::_is_collocated ()
);
}
TAO::Arg_Traits<void>::ret_val _tao_retval;
TAO::Arg_Traits<CORBA::VersionSpec>::in_arg_val _tao_version (version);
TAO::Argument *_tao_signature [] =
{
&_tao_retval,
&_tao_version
};
TAO::Invocation_Adapter _tao_call (
this,
_tao_signature,
2,
"_set_version",
12,
this->the_TAO_Contained_Proxy_Broker_
);
_tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
// TAO_IDL - Generated from
// be/be_visitor_operation/operation_cs.cpp:78
::CORBA::Container_ptr CORBA::Contained::defined_in (
ACE_ENV_SINGLE_ARG_DECL
)
ACE_THROW_SPEC ((
CORBA::SystemException
))
{
if (!this->is_evaluated ())
{
ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
}
if (this->the_TAO_Contained_Proxy_Broker_ == 0)
{
CORBA_Contained_setup_collocation (
this->ACE_NESTED_CLASS (CORBA, Object)::_is_collocated ()
);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?