Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Param_Test / any.h
blob13d2b14703d676471ecad76fefd0262d4361cb52
2 //=============================================================================
3 /**
4 * @file any.h
6 * Tests Anys
8 * @author Aniruddha Gokhale
9 */
10 //=============================================================================
13 #ifndef PARAM_TEST_ANY_H
14 #define PARAM_TEST_ANY_H
16 #include "param_testC.h"
18 // =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
19 // test Anys
20 // =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
21 class Test_Any
23 public:
24 /// ctor
25 Test_Any (void);
27 /// dtor
28 ~Test_Any (void);
30 enum
32 ANY_SHORT = 0,
33 ANY_STRING,
34 ANY_OBJREF,
35 ANY_ARRAY,
36 ANY_SHORT_SEQ,
37 ANY_BD_SHORT_SEQ,
38 ANY_STRUCT,
39 ANY_BIG_UNION,
40 ANY_SMALL_UNION,
41 ANY_LAST_TEST_ITEM
44 /// run the SII test
45 int run_sii_test (Param_Test_ptr objref);
47 /// return operation name
48 const char *opname (void) const;
50 /// set values for parameters
51 int init_parameters (Param_Test_ptr objref);
53 /// reset values for CORBA
54 int reset_parameters (void);
56 /// check if results are valid
57 CORBA::Boolean check_validity (void);
59 /// check if results are valid. This is used for DII results
60 CORBA::Boolean check_validity (CORBA::Request_ptr req);
62 /// print all the values
63 void print_values (void);
65 /// invoke DII request with appropriate exception handling.
66 void dii_req_invoke (CORBA::Request *);
68 private:
69 /// operation name
70 char *opname_;
72 /// Coffee object used to test Any with object.
73 Coffee_var cobj_;
75 /// test counter.
76 static size_t counter;
78 /// in parameter
79 CORBA::Any in_;
81 /// inout parameter
82 CORBA::Any inout_;
84 /// out parameter
85 CORBA::Any_var out_;
87 /// return value
88 CORBA::Any_var ret_;
91 #endif /* PARAM_TEST_ANY_H */