1 #include "tao/DynamicInterface/Unknown_User_Exception.h"
3 #include "tao/AnyTypeCode/Any.h"
4 #include "tao/SystemException.h"
5 #include "tao/AnyTypeCode/TypeCode_Constants.h"
6 #include "tao/AnyTypeCode/Null_RefCount_Policy.h"
7 #include "tao/AnyTypeCode/TypeCode_Struct_Field.h"
8 #include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
10 #include "ace/OS_NS_string.h"
11 #include "ace/OS_Memory.h"
13 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
15 CORBA::UnknownUserException::UnknownUserException ()
16 : CORBA::UserException ("IDL:omg.org/CORBA/UnknownUserException:1.0",
17 "UnknownUserException"),
22 CORBA::UnknownUserException::UnknownUserException (CORBA::Any
&ex
)
23 : CORBA::UserException ("IDL:omg.org/CORBA/UnknownUserException:1.0",
24 "UnknownUserException")
26 ACE_NEW (this->exception_
,
30 CORBA::UnknownUserException::UnknownUserException (
31 const CORBA::UnknownUserException
& e
33 : CORBA::UserException (e
._rep_id (),
36 ACE_NEW (this->exception_
,
37 CORBA::Any (*e
.exception_
));
40 CORBA::UnknownUserException::~UnknownUserException ()
42 delete this->exception_
;
46 CORBA::UnknownUserException::exception ()
48 return *this->exception_
;
51 CORBA::UnknownUserException
*
52 CORBA::UnknownUserException::_downcast (CORBA::Exception
*ex
)
54 return dynamic_cast<CORBA::UnknownUserException
*> (ex
);
57 CORBA::UnknownUserException
const *
58 CORBA::UnknownUserException::_downcast (CORBA::Exception
const * ex
)
60 return dynamic_cast<CORBA::UnknownUserException
const *> (ex
);
64 CORBA::UnknownUserException::_raise () const
70 CORBA::UnknownUserException::_tao_duplicate () const
72 CORBA::Exception
*result
= nullptr;
75 CORBA::UnknownUserException (*this),
81 CORBA::UnknownUserException::_tao_encode (TAO_OutputCDR
&) const
83 throw ::CORBA::MARSHAL ();
87 CORBA::UnknownUserException::_tao_decode (TAO_InputCDR
&)
89 throw ::CORBA::MARSHAL ();
93 CORBA::UnknownUserException::_rep_id () const
95 return this->exception_
->_tao_get_typecode ()->id ();
99 CORBA::UnknownUserException::_tao_type () const
101 //return CORBA::_tc_UnknownUserException;
102 return this->exception_
->_tao_get_typecode ();
109 Struct_Field
<char const *, CORBA::TypeCode_ptr
const *> const
110 fields_CORBA_UnknownUserException
[] =
112 { "exception", &CORBA::_tc_any
}
116 CORBA::TypeCode_ptr
const *,
117 Struct_Field
<char const *, CORBA::TypeCode_ptr
const *> const *,
118 TAO::Null_RefCount_Policy
> tc_UnknownUserException (
120 "IDL:omg.org/CORBA/UnknownUserException:1.0",
121 "UnknownUserException",
122 TAO::TypeCode::fields_CORBA_UnknownUserException
,
123 1 /* # of fields */);
129 CORBA::TypeCode_ptr
const _tc_UnknownUserException
=
130 &TAO::TypeCode::tc_UnknownUserException
;
133 TAO_END_VERSIONED_NAMESPACE_DECL