2 //=============================================================================
6 * Options for the Param_Test application
8 * @author Aniruddha Gokhale
10 //=============================================================================
16 #include "ace/Singleton.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "tao/Basic_Types.h"
23 #include "tao/CORBA_String.h"
24 #include "tao/orbconf.h"
39 TEST_UB_STRING_SEQUENCE
,
40 TEST_BD_STRING_SEQUENCE
,
41 TEST_UB_WSTRING_SEQUENCE
,
42 TEST_BD_WSTRING_SEQUENCE
,
45 TEST_RECURSIVE_STRUCT
,
47 TEST_UB_STRUCT_SEQUENCE
,
48 TEST_BD_STRUCT_SEQUENCE
,
49 TEST_UB_ARRAY_SEQUENCE
,
50 TEST_BD_ARRAY_SEQUENCE
,
82 /// Parses the arguments passed on the command line.
83 int parse_args (int argc
, ACE_TCHAR
**argv
);
85 /// return the IOR for the servant
86 char const * param_test_ior () const;
89 TEST_TYPE
test_type ();
91 /// whether to use SII or DII
92 INVOKE_TYPE
invoke_type ();
94 /// number of times to run the test
95 CORBA::ULong
loop_count ();
97 /// whether debug option is on or not
98 CORBA::Boolean
debug () const;
100 /// If we should request the server to shutdown.
101 CORBA::Boolean
shutdown () const;
104 /// Function to read the servant IOR from a file.
105 int read_ior (ACE_TCHAR
*filename
);
107 /// IOR for the servant
108 CORBA::String_var ior_
;
111 TEST_TYPE test_type_
;
113 /// whether SII or DII
114 INVOKE_TYPE invoke_type_
;
116 /// Number of times to do the "test_*" operations.
117 CORBA::ULong loop_count_
;
119 /// debugging output values
120 CORBA::Boolean debug_
;
122 /// server shutdown flag.
123 CORBA::Boolean shutdown_
;
126 typedef ACE_Singleton
<Options
, TAO_SYNCH_RECURSIVE_MUTEX
> OPTIONS
;
128 #endif /* OPTIONS_H */