Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / tests / DII_Collocation_Tests / twoway / Hello.h
blob4d110ce65f490f51ec8b382dc9017450c732f324
2 #ifndef HELLO_H
3 #define HELLO_H
4 #include /**/ "ace/pre.h"
6 #include "TestS.h"
8 class Test_Simple_Test_i
9 : public virtual POA_Test::Simple_Test
11 public:
12 //Constructor
13 Test_Simple_Test_i ();
15 //Destructor
16 virtual ~Test_Simple_Test_i ();
18 virtual
19 void test_method (::CORBA::ULong & error_count);
22 /// Implement the Test::Hello interface
23 class Hello
24 : public virtual POA_Test::Hello
26 public:
27 /// Constructor
28 Hello (CORBA::ORB_ptr orb,
29 ACE_thread_t thr_id);
31 // = The skeleton methods
32 virtual
33 void test_basic_arg (
34 ::CORBA::Long basic,
35 ::CORBA::Long_out x);
37 virtual
38 void test_unbounded_string_arg (const char * message);
40 virtual
41 void test_unbounded_string_arg_out (
42 const char * message,
43 ::CORBA::String_out out_message);
45 virtual
46 void test_bounded_string_arg (
47 const char * message);
49 virtual
50 void test_fixed_array_arg (
51 const ::Test::Fixed_Array message);
53 virtual
54 void test_var_array_arg (
55 const ::Test::Var_Array messages);
57 virtual
58 void test_bounded_var_size_arg (
59 const ::Test::Bounded_Var_Size_Arg & message);
61 virtual
62 void test_unbounded_var_size_arg (
63 const ::Test::Unbounded_Var_Size_Arg & message);
65 virtual
66 void test_fixed_size_arg (const ::Test::TimeOfDay & t);
68 virtual
69 void test_special_basic_arg (::CORBA::Char value);
71 virtual
72 void test_objref_arg (::Test::Simple_Test_ptr test);
74 virtual
75 void test_object_arg (::CORBA::Object_ptr o);
77 virtual
78 void test_args_1 (
79 ::CORBA::Object_ptr arg1,
80 ::CORBA::Char arg2,
81 ::Test::Simple_Test_ptr arg3);
83 virtual
84 void test_args_2 (
85 const char * arg1,
86 const ::Test::Fixed_Array arg2,
87 const ::Test::TimeOfDay & arg3);
89 virtual
90 void test_args_3 (
91 const char * arg1,
92 const ::Test::Bounded_Var_Size_Arg & arg2,
93 const ::Test::Unbounded_Var_Size_Arg & arg3,
94 const ::Test::Var_Array arg4);
96 virtual char * get_string ();
98 virtual
99 char * test_unbounded_string (
100 const char * s1,
101 char *& s2,
102 CORBA::String_out s3);
104 virtual void shutdown ();
106 CORBA::ULong error_count () const;
108 private:
109 /// Use an ORB reference to convert strings to objects and shutdown
110 /// the application.
111 CORBA::ORB_var orb_;
113 ACE_thread_t thr_id_;
115 CORBA::ULong error_count_;
119 #include /**/ "ace/post.h"
120 #endif /* HELLO_H */