2 //=============================================================================
8 * @author Aniruddha Gokhale
10 //=============================================================================
14 #include "ulonglong.h"
16 Test_ULongLong::Test_ULongLong ()
17 : opname_ (CORBA::string_dup ("test_ulonglong"))
21 Test_ULongLong::~Test_ULongLong ()
23 CORBA::string_free (this->opname_
);
28 Test_ULongLong::opname () const
34 Test_ULongLong::dii_req_invoke (CORBA::Request
*req
)
36 req
->add_in_arg ("s1") <<= this->in_
;
37 req
->add_inout_arg ("s2") <<= this->inout_
;
38 req
->add_out_arg ("s3") <<= this->out_
;
40 req
->set_return_type (CORBA::_tc_ulonglong
);
44 req
->return_value () >>= this->ret_
;
46 CORBA::NamedValue_ptr o2
=
47 req
->arguments ()->item (1);
48 *o2
->value () >>= this->inout_
;
50 CORBA::NamedValue_ptr o3
=
51 req
->arguments ()->item (2);
52 *o3
->value () >>= this->out_
;
56 Test_ULongLong::init_parameters (Param_Test_ptr
)
58 Generator
*gen
= GENERATOR::instance (); // value generator
60 this->in_
= gen
->gen_long ();
66 Test_ULongLong::reset_parameters ()
75 Test_ULongLong::run_sii_test (Param_Test_ptr objref
)
79 this->ret_
= objref
->test_ulonglong (this->in_
,
86 catch (const CORBA::Exception
& ex
)
88 ex
._tao_print_exception ("Test_ULongLong::run_sii_test\n");
94 Test_ULongLong::check_validity ()
96 if (this->inout_
== this->in_
* 2 &&
97 this->out_
== this->in_
* 3 &&
98 this->ret_
== this->in_
* 4)
105 Test_ULongLong::check_validity (CORBA::Request_ptr
)
107 return this->check_validity ();
111 Test_ULongLong::print_values ()
113 ACE_DEBUG ((LM_DEBUG
,