2 //=============================================================================
8 * @author Aniruddha Gokhale
10 //=============================================================================
16 // ************************************************************************
18 // ************************************************************************
20 Test_Short::Test_Short ()
21 : opname_ (CORBA::string_dup ("test_short"))
25 Test_Short::~Test_Short ()
27 CORBA::string_free (this->opname_
);
32 Test_Short::opname () const
38 Test_Short::dii_req_invoke (CORBA::Request
*req
)
40 req
->add_in_arg ("s1") <<= this->in_
;
41 req
->add_inout_arg ("s2") <<= this->inout_
;
42 req
->add_out_arg ("s3") <<= this->out_
;
44 req
->set_return_type (CORBA::_tc_short
);
48 req
->return_value () >>= this->ret_
;
50 CORBA::NamedValue_ptr o2
=
51 req
->arguments ()->item (1);
52 *o2
->value () >>= this->inout_
;
54 CORBA::NamedValue_ptr o3
=
55 req
->arguments ()->item (2);
56 *o3
->value () >>= this->out_
;
60 Test_Short::init_parameters (Param_Test_ptr
/*objref*/)
62 Generator
*gen
= GENERATOR::instance (); // value generator
64 this->in_
= gen
->gen_short ();
70 Test_Short::reset_parameters ()
79 Test_Short::run_sii_test (Param_Test_ptr objref
)
83 this->ret_
= objref
->test_short (this->in_
,
89 catch (const CORBA::Exception
& ex
)
91 ex
._tao_print_exception ("Test_Short::run_sii_test\n");
97 Test_Short::check_validity ()
99 if (this->inout_
== this->in_
* 2 &&
100 this->out_
== this->in_
* 3 &&
101 this->ret_
== this->in_
* 4)
108 Test_Short::check_validity (CORBA::Request_ptr
/*req*/)
110 return this->check_validity ();
114 Test_Short::print_values ()
116 ACE_DEBUG ((LM_DEBUG
,