blob: a72282b7b7097194f74426e24603bad6e838420d (
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
|
// $Id$
#include "AnyS_impl.h"
ACE_RCSID(Any, AnyS_impl, "$Id$")
Test_impl::Test_impl (CORBA::ORB_ptr orb)
: orb_ (CORBA::ORB::_duplicate (orb))
{
}
CORBA::Any*
Test_impl::get_something (
CORBA::Boolean need_vb
TAO_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException))
{
CORBA::Any_var ret_val;
ACE_NEW_RETURN (ret_val, CORBA::Any, 0);
const CORBA::ULong magic = 3145;
if (need_vb)
{
OBV_AnyTest::VB_var vb;
ACE_NEW_RETURN (vb, OBV_OBV_AnyTest::VB, 0);
vb->id (magic);
*ret_val <<= vb.in ();
}
else
{
OBV_AnyTest::VA_var va;
ACE_NEW_RETURN (va, OBV_OBV_AnyTest::VA, 0);
va->id (magic);
OBV_AnyTest::VA *va_ptr = va._retn ();
*ret_val <<= &va_ptr;
//*ret_val <<= va.in ();
}
return ret_val._retn();
}
void
Test_impl::shutdown (TAO_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
this->orb_->shutdown (0 TAO_ENV_ARG_PARAMETER);
}
|