2 //=============================================================================
4 * @file ub_struct_seq.h
6 * Tests unbounded struct sequence
8 * @author Aniruddha Gokhale
10 //=============================================================================
13 #ifndef PARAM_TEST_UNBOUNED_STRUCT_SEQUENCE_H
14 #define PARAM_TEST_UNBOUNED_STRUCT_SEQUENCE_H
16 #include "param_testC.h"
18 // =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
19 // test sequence of structs
20 // =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
22 class Test_Struct_Sequence
26 Test_Struct_Sequence ();
29 ~Test_Struct_Sequence ();
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
52 /// invoke DII request with appropriate exception handling.
53 void dii_req_invoke (CORBA::Request
*);
57 CORBA::Boolean
compare (const Param_Test::StructSeq
&s1
,
58 const Param_Test::StructSeq
&s2
);
60 /// print individual sequence
61 void print_sequence (const Param_Test::StructSeq
&s
);
68 Param_Test::StructSeq in_
;
70 // these need memory management
72 Param_Test::StructSeq_var inout_
;
75 Param_Test::StructSeq_var out_
;
78 Param_Test::StructSeq_var ret_
;
82 class Test_Unbounded_Struct_Sequence
86 Test_Unbounded_Struct_Sequence ();
89 ~Test_Unbounded_Struct_Sequence ();
92 int run_sii_test (Param_Test_ptr objref
);
94 /// return operation name
95 const char *opname () const;
97 /// set values for parameters
98 int init_parameters (Param_Test_ptr objref
);
100 /// reset values for CORBA
101 int reset_parameters ();
103 /// check if results are valid
104 CORBA::Boolean
check_validity ();
106 /// check if results are valid. This is used for DII results
107 CORBA::Boolean
check_validity (CORBA::Request_ptr req
);
109 /// print all the values
110 void print_values ();
112 /// invoke DII request with appropriate exception handling.
113 void dii_req_invoke (CORBA::Request
*);
117 CORBA::Boolean
compare (const Param_Test::PathSpec
&s1
,
118 const Param_Test::PathSpec
&s2
);
120 /// print individual sequence
121 void print_sequence (const Param_Test::PathSpec
&s
);
128 Param_Test::PathSpec in_
;
130 // these need memory management
132 Param_Test::PathSpec_var inout_
;
135 Param_Test::PathSpec_var out_
;
138 Param_Test::PathSpec_var ret_
;
142 #endif /* PARAM_TEST_UNBOUNED_STRUCT_SEQUENCE_H */