Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Param_Test / complex_any.h
blobd21e9c17b0c741b8bb20615453d12e8bbe9fb166
2 //=============================================================================
3 /**
4 * @file complex_any.h
6 * Tests complex Anys
8 * @author Aniruddha Gokhale
9 * @author Jeff Parsons
10 * @author Frank Buschmann
12 //=============================================================================
15 #ifndef PARAM_TEST_COMPLEX_ANY_H
16 #define PARAM_TEST_COMPLEX_ANY_H
18 #include "param_testC.h"
20 // =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
21 // test complex Anys
22 // =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
23 class Test_Complex_Any
25 public:
26 /// ctor
27 Test_Complex_Any ();
29 /// dtor
30 ~Test_Complex_Any ();
32 /// run the SII test
33 int run_sii_test (Param_Test_ptr objref);
35 /// return operation name
36 const char *opname () const;
38 /// set values for parameters
39 int init_parameters (Param_Test_ptr objref);
41 /// reset values for CORBA
42 int reset_parameters ();
44 /// check if results are valid
45 CORBA::Boolean check_validity ();
47 /// check if results are valid. This is used for DII results
48 CORBA::Boolean check_validity (CORBA::Request_ptr req);
50 /// print all the values
51 void print_values ();
53 /// invoke DII request with appropriate exception handling.
54 void dii_req_invoke (CORBA::Request *);
56 private:
57 /// operation name
58 char *opname_;
60 /// test counter.
61 static size_t counter;
63 /// in parameter
64 CORBA::Any in_;
66 /// inout parameter
67 CORBA::Any inout_;
69 /// out parameter
70 CORBA::Any_var out_;
72 /// return value
73 CORBA::Any_var ret_;
75 /// Compares the sequence extracted from in_ to one of the others.
76 CORBA::Boolean comp_engine (const CORBA::AnySeq *in_seq,
77 const CORBA::AnySeq *comp_seq);
80 #endif /* PARAM_TEST_COMPLEX_ANY_H */