unknown_user_exception.cpp
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C++ 代码 · 共 113 行
CPP
113 行
// Unknown_User_Exception.cpp,v 1.11 2003/11/04 05:21:35 dhinton Exp
#include "Unknown_User_Exception.h"
#include "tao/Any.h"
#include "tao/Environment.h"
#include "tao/TC_Constants_Forward.h"
#include "ace/OS_NS_string.h"
#include "ace/OS_Memory.h"
ACE_RCSID (DynamicInterface,
Unknown_User_Exception,
"Unknown_User_Exception.cpp,v 1.11 2003/11/04 05:21:35 dhinton Exp")
CORBA::UnknownUserException::UnknownUserException (void)
: CORBA::UserException ("IDL:omg.org/CORBA/UnknownUserException:1.0",
"UnknownUserException"),
exception_ (0)
{
}
CORBA::UnknownUserException::UnknownUserException (CORBA::Any &ex)
: CORBA::UserException ("IDL:omg.org/CORBA/UnknownUserException:1.0",
"UnknownUserException")
{
ACE_NEW (this->exception_,
CORBA::Any (ex));
}
CORBA::UnknownUserException::UnknownUserException (
const CORBA::UnknownUserException& e
)
: CORBA::UserException (e._rep_id (),
e._name ())
{
ACE_NEW (this->exception_,
CORBA::Any (*e.exception_));
}
CORBA::UnknownUserException::~UnknownUserException (void)
{
delete this->exception_;
}
CORBA::Any &
CORBA::UnknownUserException::exception (void)
{
return *this->exception_;
}
int
CORBA::UnknownUserException::_is_a (const char *interface_id) const
{
return
((ACE_OS::strcmp (interface_id,
"IDL:omg.org/CORBA/UnknownUserException:1.0")
== 0)
|| UserException::_is_a (interface_id));
}
CORBA::UnknownUserException *
CORBA::UnknownUserException::_downcast (CORBA::Exception *ex)
{
if (ex->_is_a ("IDL:omg.org/CORBA/UnknownUserException:1.0"))
{
return ACE_dynamic_cast (CORBA::UnknownUserException *,
ex);
}
return 0;
}
void
CORBA::UnknownUserException::_raise (void) const
{
TAO_RAISE (*this);
}
CORBA::Exception *
CORBA::UnknownUserException::_tao_duplicate (void) const
{
CORBA::Exception *result;
ACE_NEW_RETURN (
result,
CORBA::UnknownUserException (*this),
0
);
return result;
}
void
CORBA::UnknownUserException::_tao_encode (
TAO_OutputCDR &
ACE_ENV_ARG_DECL
) const
{
ACE_THROW (CORBA::MARSHAL ());
}
void
CORBA::UnknownUserException::_tao_decode (TAO_InputCDR &
ACE_ENV_ARG_DECL)
{
ACE_THROW (CORBA::MARSHAL ());
}
CORBA::TypeCode_ptr
CORBA::UnknownUserException::_type (void) const
{
return CORBA::_tc_UnknownUserException;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?