Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Param_Test / objref_struct.h
blob06757a3241cad5959023207973be71abe53cdbf7
2 //=============================================================================
3 /**
4 * @file objref_struct.h
6 * Tests variable sized structures
8 * @author Aniruddha Gokhale
9 */
10 //=============================================================================
13 #ifndef PARAM_TEST_OBJREF_STRUCT_H
14 #define PARAM_TEST_OBJREF_STRUCT_H
16 #include "param_testC.h"
18 // =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
19 // test variable sized structs
20 // =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
22 class Test_Objref_Struct
24 public:
25 /// ctor
26 Test_Objref_Struct (void);
28 /// dtor
29 ~Test_Objref_Struct (void);
31 /// run the SII test
32 int run_sii_test (Param_Test_ptr objref);
34 /// return operation name
35 const char *opname (void) const;
37 /// set values for parameters
38 int init_parameters (Param_Test_ptr objref);
40 /// reset values for CORBA
41 int reset_parameters (void);
43 /// check if results are valid
44 CORBA::Boolean check_validity (void);
46 /// check if results are valid. This is used for DII results
47 CORBA::Boolean check_validity (CORBA::Request_ptr req);
49 /// print all the values
50 void print_values (void);
52 /// invoke DII request with appropriate exception handling.
53 void dii_req_invoke (CORBA::Request *);
55 private:
56 /// operation name
57 char *opname_;
59 /// in parameter
60 Param_Test::Objref_Struct in_;
62 // these need memory management
63 /// inout parameter
64 Param_Test::Objref_Struct_var inout_;
66 /// out parameter
67 Param_Test::Objref_Struct_var out_;
69 /// return value
70 Param_Test::Objref_Struct_var ret_;
73 #endif /* PARAM_TEST_OBJREF_STRUCT_H */