diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-09-13 13:10:51 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-09-13 13:10:51 +0000 |
commit | 928bbbfc8b4d9608e156335e0bdfd6052a56a9e6 (patch) | |
tree | 093bec53dad89150ecfe180637b72c2fc7abe04b /TAO/tests/Param_Test/ub_array_seq.h | |
parent | 33c228f513f8fcbfac259a7a9a95f0296639fadb (diff) | |
download | ATCD-928bbbfc8b4d9608e156335e0bdfd6052a56a9e6.tar.gz |
Support for sequences of arrays and a param test to check the
functionality.
Diffstat (limited to 'TAO/tests/Param_Test/ub_array_seq.h')
-rw-r--r-- | TAO/tests/Param_Test/ub_array_seq.h | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/TAO/tests/Param_Test/ub_array_seq.h b/TAO/tests/Param_Test/ub_array_seq.h new file mode 100644 index 00000000000..1d8b0457136 --- /dev/null +++ b/TAO/tests/Param_Test/ub_array_seq.h @@ -0,0 +1,96 @@ +// $Id$ + +// ============================================================================ +// +// = LIBRARY +// TAO/tests/Param_Test +// +// = FILENAME +// ub_array_seq.h +// +// = DESCRIPTION +// Tests unbounded array sequence +// +// = AUTHORS +// Jeff Parsons <parsons@cs.wustl.edu> +// +// ============================================================================ + +#ifndef PARAM_TEST_UNBOUNED_ARRAY_SEQUENCE_H +#define PARAM_TEST_UNBOUNED_ARRAY_SEQUENCE_H + +#include "param_testCli.h" + +// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* +// test sequence of arrays +// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* + +class Test_Array_Sequence +{ +public: + Test_Array_Sequence (void); + // ctor + + ~Test_Array_Sequence (void); + // dtor + + int run_sii_test (Param_Test_ptr objref, + CORBA::Environment &env); + // run the SII test + + int add_args (CORBA::NVList_ptr nvlist, + CORBA::NVList_ptr retval, + CORBA::Environment &env); + // add args to NVList for DII + + const char *opname (void) const; + // return operation name + + int init_parameters (Param_Test_ptr objref, + CORBA::Environment &env); + // set values for parameters + + int reset_parameters (void); + // reset values for CORBA + + CORBA::Boolean check_validity (void); + // check if results are valid + + CORBA::Boolean check_validity (CORBA::Request_ptr req); + // check if results are valid. This is used for DII results + + void print_values (void); + // print all the values + + void dii_req_invoke (CORBA::Request *, + CORBA::Environment &); + // invoke DII request with appropriate exception handling. + +protected: + CORBA::Boolean compare (const Param_Test::ArraySeq &s1, + const Param_Test::ArraySeq &s2); + // compare + + void print_sequence (const Param_Test::ArraySeq &s); + // print individual sequence + +private: + char *opname_; + // operation name + + Param_Test::ArraySeq in_; + // in parameter + + // these need memory management + Param_Test::ArraySeq_var inout_; + // inout parameter + + Param_Test::ArraySeq_var out_; + // out parameter + + Param_Test::ArraySeq_var ret_; + // return value +}; + + +#endif /* PARAM_TEST_UNBOUNED_ARRAY_SEQUENCE_H */ |