Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Param_Test / var_array.h
blob3a09358eccbeeae4641c628299051038b702d326
2 //=============================================================================
3 /**
4 * @file var_array.h
6 * Tests arrays whose base types are of variable size
8 * @author Aniruddha Gokhale
9 */
10 //=============================================================================
13 #ifndef PARAM_TEST_VAR_ARRAY_H
14 #define PARAM_TEST_VAR_ARRAY_H
16 #include "param_testC.h"
18 // =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
19 // test var arrays
20 // =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
21 class Test_Var_Array
23 public:
24 /// ctor
25 Test_Var_Array (void);
27 /// dtor
28 ~Test_Var_Array (void);
30 /// run the SII test
31 int run_sii_test (Param_Test_ptr objref);
33 /// return operation name
34 const char *opname (void) const;
36 /// set values for parameters
37 int init_parameters (Param_Test_ptr objref);
39 /// reset values for CORBA
40 int reset_parameters (void);
42 /// check if results are valid
43 CORBA::Boolean check_validity (void);
45 /// check if results are valid. This is used for DII results
46 CORBA::Boolean check_validity (CORBA::Request_ptr req);
48 /// print all the values
49 void print_values (void);
51 /// invoke DII request with appropriate exception handling.
52 void dii_req_invoke (CORBA::Request *);
54 private:
55 /// compare arrays
56 CORBA::Boolean compare (const Param_Test::Var_Array_slice *a1,
57 const Param_Test::Var_Array_slice *a2);
59 /// print an array
60 void print (const Param_Test::Var_Array_slice *a);
62 /// operation name
63 char *opname_;
65 /// in parameter
66 Param_Test::Var_Array in_;
68 /// inout parameter
69 Param_Test::Var_Array inout_;
71 /// out parameter
72 Param_Test::Var_Array_var out_;
74 /// return value
75 Param_Test::Var_Array_var ret_;
78 #endif /* PARAM_TEST_VAR_ARRAY_H */