Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tests / Param_Test / ub_objref_seq.h
blob79c70d8bf1fc803d8d91c5c291430920dd817eef
2 //=============================================================================
3 /**
4 * @file ub_objref_seq.h
6 * Tests unbounded sequences of object references
8 * @author Aniruddha Gokhale
9 */
10 //=============================================================================
13 #ifndef PARAM_TEST_UNBOUNDED_OBJREF_SEQUENCE_H
14 #define PARAM_TEST_UNBOUNDED_OBJREF_SEQUENCE_H
16 #include "param_testC.h"
18 // =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
19 // test sequence of object references
20 // =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
22 class Test_ObjRef_Sequence
24 public:
25 /// ctor
26 Test_ObjRef_Sequence ();
28 /// dtor
29 ~Test_ObjRef_Sequence ();
31 /// run the SII test
32 int run_sii_test (Param_Test_ptr objref);
34 /// return operation name
35 const char *opname () const;
37 /// set values for parameters
38 int init_parameters (Param_Test_ptr objref);
40 /// reset values for CORBA
41 int reset_parameters ();
43 /// check if results are valid
44 CORBA::Boolean check_validity ();
46 /// check if results are valid. This is used for DII results
47 CORBA::Boolean check_validity (CORBA::Request_ptr req);
49 /// print all the values
50 void print_values ();
52 /// invoke DII request with appropriate exception handling.
53 void dii_req_invoke (CORBA::Request *);
55 protected:
56 /// compare
57 CORBA::Boolean compare (const Param_Test::Coffee_Mix &s1,
58 const Param_Test::Coffee_Mix &s2);
60 /// print individual sequence
61 void print_sequence (const Param_Test::Coffee_Mix &s);
62 private:
63 /// operation name
64 char *opname_;
66 /// in parameter
67 Param_Test::Coffee_Mix in_;
69 // these need memory management
70 /// inout parameter
71 Param_Test::Coffee_Mix_var inout_;
73 /// out parameter
74 Param_Test::Coffee_Mix_var out_;
76 /// return value
77 Param_Test::Coffee_Mix_var ret_;
80 #endif /* PARAM_TEST_UNBOUNDED_OBJREF_SEQUENCE_H */