diff options
Diffstat (limited to 'TAO/tests/Param_Test/complex_any.h')
-rw-r--r-- | TAO/tests/Param_Test/complex_any.h | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/TAO/tests/Param_Test/complex_any.h b/TAO/tests/Param_Test/complex_any.h new file mode 100644 index 00000000000..58763ad6761 --- /dev/null +++ b/TAO/tests/Param_Test/complex_any.h @@ -0,0 +1,86 @@ +// $Id$ + +// ============================================================================ +// +// = LIBRARY +// TAO/tests/Param_Test +// +// = FILENAME +// complex_any.h +// +// = DESCRIPTION +// Tests complex Anys +// +// = AUTHORS +// Aniruddha Gokhale, Jeff Parsons, Frank Buschmann +// +// ============================================================================ + +#ifndef PARAM_TEST_COMPLEX_ANY_H +#define PARAM_TEST_COMPLEX_ANY_H + +#include "param_testC.h" + +// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* +// test complex Anys +// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* +class Test_Complex_Any +{ +public: + Test_Complex_Any (void); + // ctor + + ~Test_Complex_Any (void); + // dtor + + int run_sii_test (Param_Test_ptr objref + ACE_ENV_ARG_DECL); + // run the SII test + + const char *opname (void) const; + // return operation name + + int init_parameters (Param_Test_ptr objref + ACE_ENV_ARG_DECL); + // 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 * ACE_ENV_ARG_DECL_NOT_USED); + // invoke DII request with appropriate exception handling. + +private: + char *opname_; + // operation name + + static size_t counter; + // test counter. + + CORBA::Any in_; + // in parameter + + CORBA::Any inout_; + // inout parameter + + CORBA::Any_var out_; + // out parameter + + CORBA::Any_var ret_; + // return value + + CORBA::Boolean comp_engine (const CORBA::AnySeq *in_seq, + const CORBA::AnySeq *comp_seq); + // Compares the sequence extracted from in_ to one of the others. +}; + +#endif /* PARAM_TEST_COMPLEX_ANY_H */ |