blob: 53fae4769f1b09625fd4fcc61b65e392d27ec369 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
/* -*- C++ -*- */
// $Id$
// ======================================================================
//
// = LIBRARY
// TAO
//
// = FILENAME
// InconsistentTypeCode.cpp
//
// = AUTHOR
//
// ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
// TAO ORB and the TAO IDL Compiler have been developed by Washington
// University Computer Science's Distributed Object Computing Group.
//
// Information on TAO is available at
// http://www.cs.wustl.edu/~schmidt/TAO.html
//
//
// Modified by Jeff Parsons <jp4@cs.wustl.edu>
//
// ======================================================================
#include "tao/InconsistentTypeCodeC.h"
// default constructor
CORBA_ORB_InconsistentTypeCode::CORBA_ORB_InconsistentTypeCode (void)
: CORBA_UserException (CORBA::ORB::_tc_InconsistentTypeCode)
{
}
// destructor - all members are of self managing types
CORBA_ORB_InconsistentTypeCode::~CORBA_ORB_InconsistentTypeCode (void)
{
}
// copy constructor
CORBA_ORB_InconsistentTypeCode::CORBA_ORB_InconsistentTypeCode (
const CORBA_ORB_InconsistentTypeCode &_tao_excp
)
: CORBA_UserException (_tao_excp._type ())
{
}
// assignment operator
CORBA_ORB_InconsistentTypeCode&
CORBA_ORB_InconsistentTypeCode::operator= (
const CORBA_ORB_InconsistentTypeCode &_tao_excp
)
{
this->CORBA_UserException::operator= (_tao_excp);
return *this;
}
// narrow
CORBA_ORB_InconsistentTypeCode*
CORBA_ORB_InconsistentTypeCode::_narrow (CORBA::Exception *exc)
{
if (!ACE_OS::strcmp ("IDL:omg.org/CORBA/ORB/InconsistentTypeCode:1.0",
exc->_id ())) // same type
return ACE_dynamic_cast (CORBA_ORB_InconsistentTypeCode*,
exc);
else
return 0;
}
void CORBA_ORB_InconsistentTypeCode::_raise ()
{
TAO_RAISE(*this);
}
// TAO extension - the _alloc method
CORBA::Exception *CORBA_ORB_InconsistentTypeCode::_alloc (void)
{
return new CORBA_ORB_InconsistentTypeCode;
}
|