Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tests / Param_Test / ub_array_seq.h
blobc2328da91c35317b1a33e4ed5bf5090e8c689236
2 //=============================================================================
3 /**
4 * @file ub_array_seq.h
6 * Tests unbounded array sequence
8 * @author Jeff Parsons <parsons@cs.wustl.edu>
9 */
10 //=============================================================================
13 #ifndef PARAM_TEST_UNBOUNED_ARRAY_SEQUENCE_H
14 #define PARAM_TEST_UNBOUNED_ARRAY_SEQUENCE_H
16 #include "param_testC.h"
18 // =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
19 // test sequence of arrays
20 // =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
22 class Test_Array_Sequence
24 public:
25 /// ctor
26 Test_Array_Sequence ();
28 /// dtor
29 ~Test_Array_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::ArraySeq &s1,
58 const Param_Test::ArraySeq &s2);
60 /// print individual sequence
61 void print_sequence (const Param_Test::ArraySeq &s);
63 private:
64 /// operation name
65 char *opname_;
67 /// in parameter
68 Param_Test::ArraySeq in_;
70 // these need memory management
71 /// inout parameter
72 Param_Test::ArraySeq_var inout_;
74 /// out parameter
75 Param_Test::ArraySeq_var out_;
77 /// return value
78 Param_Test::ArraySeq_var ret_;
82 #endif /* PARAM_TEST_UNBOUNED_ARRAY_SEQUENCE_H */