~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to TAO/tests/OBV/Any/AnyS_impl.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// AnyS_impl.cpp,v 1.4 2002/11/29 15:57:50 bala Exp
2
 
 
3
 
#include "AnyS_impl.h"
4
 
 
5
 
 
6
 
ACE_RCSID(Any, AnyS_impl, "AnyS_impl.cpp,v 1.4 2002/11/29 15:57:50 bala Exp")
7
 
 
8
 
Test_impl::Test_impl (CORBA::ORB_ptr orb)
9
 
    : orb_ (CORBA::ORB::_duplicate (orb))
10
 
{
11
 
}
12
 
 
13
 
CORBA::Any*
14
 
Test_impl::get_something (
15
 
    CORBA::Boolean need_vb
16
 
    ACE_ENV_ARG_DECL_NOT_USED)
17
 
    ACE_THROW_SPEC ((CORBA::SystemException))
18
 
{
19
 
  CORBA::Any_var ret_val;
20
 
  ACE_NEW_RETURN (ret_val, CORBA::Any, 0);
21
 
 
22
 
  const CORBA::ULong magic = 3145;
23
 
 
24
 
  if (need_vb)
25
 
    {
26
 
      OBV_AnyTest::VB_var vb;
27
 
      ACE_NEW_RETURN (vb, OBV_OBV_AnyTest::VB, 0);
28
 
 
29
 
      vb->id (magic);
30
 
 
31
 
      ret_val.inout () <<= vb.in ();
32
 
    }
33
 
  else
34
 
    {
35
 
      OBV_AnyTest::VA_var va;
36
 
      ACE_NEW_RETURN (va, OBV_OBV_AnyTest::VA, 0);
37
 
 
38
 
      va->id (magic);
39
 
 
40
 
      OBV_AnyTest::VA *va_ptr = va._retn ();
41
 
      ret_val.inout () <<= &va_ptr;
42
 
 
43
 
      //*ret_val <<= va.in ();
44
 
    }
45
 
 
46
 
  return ret_val._retn();
47
 
}
48
 
 
49
 
void
50
 
Test_impl::shutdown (ACE_ENV_SINGLE_ARG_DECL)
51
 
    ACE_THROW_SPEC ((CORBA::SystemException))
52
 
{
53
 
  this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
54
 
}