ACE+TAO-6_5_17
[ACE_TAO.git] / TAO / tests / Param_Test / ub_any_seq.h
blob335d49a1af7ee7af165ce58488e59020afe7a867
2 //=============================================================================
3 /**
4 * @file ub_any_seq.h
6 * Tests unbounded Any sequences
8 * @author Aniruddha Gokhale
9 */
10 //=============================================================================
13 #ifndef PARAM_TEST_UNBOUNDED_ANY_SEQUENCE_H
14 #define PARAM_TEST_UNBOUNDED_ANY_SEQUENCE_H
16 #include "param_testC.h"
18 // =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
19 // test sequences of Anys
20 // =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
21 class Test_AnySeq
23 public:
24 /// ctor
25 Test_AnySeq (void);
27 /// dtor
28 ~Test_AnySeq (void);
30 /// run the SII test
31 int run_sii_test (Param_Test_ptr objref);
33 /// return operation name
34 const char *opname (void) const;
36 /// set values for parameters
37 int init_parameters (Param_Test_ptr objref);
39 /// reset values for CORBA
40 int reset_parameters (void);
42 /// check if results are valid
43 CORBA::Boolean check_validity (void);
45 /// check if results are valid. This is used for DII results
46 CORBA::Boolean check_validity (CORBA::Request_ptr req);
48 /// print all the values
49 void print_values (void);
51 /// invoke DII request with appropriate exception handling.
52 void dii_req_invoke (CORBA::Request *);
54 protected:
55 /// compare
56 CORBA::Boolean compare (const CORBA::AnySeq &s1,
57 const Param_Test::StructSeq &s2);
59 /// print individual sequence
60 void print_sequence (const CORBA::AnySeq &s);
62 private:
63 /// operation name
64 char *opname_;
66 /// in parameter
67 CORBA::AnySeq_var in_;
69 /// inout parameter
70 CORBA::AnySeq_var inout_;
72 /// out parameter
73 CORBA::AnySeq_var out_;
75 /// return value
76 CORBA::AnySeq_var ret_;
79 #endif /* PARAM_TEST_UNBOUNDED_ANY_SEQUENCE_H */