Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / DSI_Gateway / test_i.cpp
blob24445c85741e40b48faf9af89229f2331fcee26f
1 #include "test_i.h"
2 #include "tao/debug.h"
4 #if !defined(__ACE_INLINE__)
5 #include "test_i.inl"
6 #endif /* __ACE_INLINE__ */
8 CORBA::Long
9 Simple_Server_i::test_method (CORBA::Long x,
10 const Structure& the_in_structure,
11 Structure_out the_out_structure,
12 char *&name)
14 Structure *tmp = 0;
15 ACE_NEW_RETURN (tmp, Structure (the_in_structure), -1);
16 the_out_structure = tmp;
18 if (TAO_debug_level > 0)
20 ACE_DEBUG ((LM_DEBUG,
21 "Simpler_Server_i ====\n"
22 " x = %d\n"
23 " i = %d\n"
24 " length = %d\n"
25 " name = <%s>\n",
27 the_in_structure.i,
28 the_in_structure.seq.length (),
29 name));
32 return x;
35 void
36 Simple_Server_i::raise_user_exception (void)
38 throw test_exception (33, "reactor meltdown", "kaput");
41 void
42 Simple_Server_i::raise_system_exception (void)
44 throw CORBA::NO_PERMISSION ();
47 void
48 Simple_Server_i::shutdown (void)
50 this->orb_->shutdown (0);
53 CORBA::Long
54 Simple_Server_i::test_val (void)
56 return vlong_;
59 void
60 Simple_Server_i::test_val (CORBA::Long tv)
62 if (TAO_debug_level > 0)
64 ACE_DEBUG ((LM_DEBUG,
65 "Simpler_Server_i ====test_val: %d\n", tv
66 ));
68 vlong_ = tv;