3 Hello::Hello (CORBA::ORB_ptr orb
)
4 : orb_ (CORBA::ORB::_duplicate (orb
))
10 Hello::get_string (void)
12 return CORBA::string_dup ("Hello there!");
17 Hello::get_stringList ()
19 Test::StringList
* seq
;
24 for (CORBA::ULong i
= 0; i
<seq
->length(); i
++)
27 ACE_OS::sprintf(tmp
, "Hello World %d", i
);
28 (*seq
)[i
] = CORBA::string_dup(tmp
);
35 Hello::get_stringList2 (::CORBA::Boolean initialize
,
36 ::Test::StringList_out osl
)
38 // CORBA::String_var the_string = osl->length();
39 // ACE_DEBUG ((LM_DEBUG, "(%P|%t) - Entering get_stringList2(%.4d)\n", osl));
44 Test::StringList(10));
47 for (CORBA::ULong i
= 0; i
<osl
->length(); i
++)
50 ACE_OS::sprintf(tmp
, "Hello Again %d", i
);
51 (*osl
)[i
] = CORBA::string_dup(tmp
);
57 Hello::mod_stringList (::Test::StringList
& iosl
)
60 for (CORBA::ULong i
= 0; i
<iosl
.length(); i
++)
63 ACE_OS::sprintf(tmp
, "Hello Client %d", i
);
66 iosl
[i
] = CORBA::string_dup(tmp
);
72 Hello::shutdown (void)
74 this->orb_
->shutdown (0);