Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / tests / DSI_Gateway / test_i.cpp
blobb8493c6cc963e759b06fb6132eba1c1649c05e71
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 ()
38 throw test_exception (33, "reactor meltdown", "kaput");
41 void
42 Simple_Server_i::raise_system_exception ()
44 throw CORBA::NO_PERMISSION ();
47 void
48 Simple_Server_i::shutdown ()
50 this->orb_->shutdown (false);
53 CORBA::Long
54 Simple_Server_i::test_val ()
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;