summaryrefslogtreecommitdiff
path: root/TAO/tests/Param_Test
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Param_Test')
-rw-r--r--TAO/tests/Param_Test/Makefile1447
-rw-r--r--TAO/tests/Param_Test/Param_Test.dsw41
-rw-r--r--TAO/tests/Param_Test/README98
-rw-r--r--TAO/tests/Param_Test/any.cpp323
-rw-r--r--TAO/tests/Param_Test/any.h101
-rw-r--r--TAO/tests/Param_Test/bd_long_seq.cpp216
-rw-r--r--TAO/tests/Param_Test/bd_long_seq.h85
-rw-r--r--TAO/tests/Param_Test/bd_short_seq.cpp218
-rw-r--r--TAO/tests/Param_Test/bd_short_seq.h85
-rw-r--r--TAO/tests/Param_Test/bd_str_seq.cpp223
-rw-r--r--TAO/tests/Param_Test/bd_str_seq.h85
-rw-r--r--TAO/tests/Param_Test/bd_string.cpp192
-rw-r--r--TAO/tests/Param_Test/bd_string.h88
-rw-r--r--TAO/tests/Param_Test/bd_struct_seq.cpp232
-rw-r--r--TAO/tests/Param_Test/bd_struct_seq.h94
-rw-r--r--TAO/tests/Param_Test/big_union.cpp541
-rw-r--r--TAO/tests/Param_Test/big_union.h94
-rw-r--r--TAO/tests/Param_Test/client.cpp267
-rw-r--r--TAO/tests/Param_Test/client.dsp459
-rw-r--r--TAO/tests/Param_Test/client.h76
-rw-r--r--TAO/tests/Param_Test/driver.cpp545
-rw-r--r--TAO/tests/Param_Test/driver.h52
-rw-r--r--TAO/tests/Param_Test/except.cpp244
-rw-r--r--TAO/tests/Param_Test/except.h80
-rw-r--r--TAO/tests/Param_Test/fixed_array.cpp189
-rw-r--r--TAO/tests/Param_Test/fixed_array.h91
-rw-r--r--TAO/tests/Param_Test/fixed_struct.cpp245
-rw-r--r--TAO/tests/Param_Test/fixed_struct.h84
-rw-r--r--TAO/tests/Param_Test/helper.cpp98
-rw-r--r--TAO/tests/Param_Test/helper.h52
-rw-r--r--TAO/tests/Param_Test/nested_struct.cpp193
-rw-r--r--TAO/tests/Param_Test/nested_struct.h86
-rw-r--r--TAO/tests/Param_Test/objref.cpp334
-rw-r--r--TAO/tests/Param_Test/objref.h96
-rw-r--r--TAO/tests/Param_Test/objref_struct.cpp211
-rw-r--r--TAO/tests/Param_Test/objref_struct.h85
-rw-r--r--TAO/tests/Param_Test/options.cpp224
-rw-r--r--TAO/tests/Param_Test/options.h123
-rw-r--r--TAO/tests/Param_Test/param_test.idl332
-rw-r--r--TAO/tests/Param_Test/param_test_i.cpp744
-rw-r--r--TAO/tests/Param_Test/param_test_i.h248
-rw-r--r--TAO/tests/Param_Test/results.cpp150
-rw-r--r--TAO/tests/Param_Test/results.h80
-rwxr-xr-xTAO/tests/Param_Test/run_test.pl117
-rw-r--r--TAO/tests/Param_Test/server.cpp178
-rw-r--r--TAO/tests/Param_Test/server.dsp229
-rw-r--r--TAO/tests/Param_Test/short.cpp161
-rw-r--r--TAO/tests/Param_Test/short.h88
-rw-r--r--TAO/tests/Param_Test/svc.conf7
-rw-r--r--TAO/tests/Param_Test/tests.h48
-rw-r--r--TAO/tests/Param_Test/tmplinst.cpp32
-rw-r--r--TAO/tests/Param_Test/typecode.cpp165
-rw-r--r--TAO/tests/Param_Test/typecode.h88
-rw-r--r--TAO/tests/Param_Test/ub_any_seq.cpp341
-rw-r--r--TAO/tests/Param_Test/ub_any_seq.h92
-rw-r--r--TAO/tests/Param_Test/ub_long_seq.cpp219
-rw-r--r--TAO/tests/Param_Test/ub_long_seq.h85
-rw-r--r--TAO/tests/Param_Test/ub_objref_seq.cpp302
-rw-r--r--TAO/tests/Param_Test/ub_objref_seq.h94
-rw-r--r--TAO/tests/Param_Test/ub_short_seq.cpp221
-rw-r--r--TAO/tests/Param_Test/ub_short_seq.h85
-rw-r--r--TAO/tests/Param_Test/ub_str_seq.cpp225
-rw-r--r--TAO/tests/Param_Test/ub_str_seq.h85
-rw-r--r--TAO/tests/Param_Test/ub_string.cpp194
-rw-r--r--TAO/tests/Param_Test/ub_string.h88
-rw-r--r--TAO/tests/Param_Test/ub_struct_seq.cpp441
-rw-r--r--TAO/tests/Param_Test/ub_struct_seq.h163
-rw-r--r--TAO/tests/Param_Test/ulonglong.cpp157
-rw-r--r--TAO/tests/Param_Test/ulonglong.h80
-rw-r--r--TAO/tests/Param_Test/var_array.cpp187
-rw-r--r--TAO/tests/Param_Test/var_array.h91
-rw-r--r--TAO/tests/Param_Test/var_struct.cpp250
-rw-r--r--TAO/tests/Param_Test/var_struct.h85
73 files changed, 0 insertions, 14149 deletions
diff --git a/TAO/tests/Param_Test/Makefile b/TAO/tests/Param_Test/Makefile
deleted file mode 100644
index 9af9178677c..00000000000
--- a/TAO/tests/Param_Test/Makefile
+++ /dev/null
@@ -1,1447 +0,0 @@
-#----------------------------------------------------------------------------
-# $Id$
-#
-# Top-level Makefile for the Param_Test test example
-#----------------------------------------------------------------------------
-
-#----------------------------------------------------------------------------
-# Local macros
-#----------------------------------------------------------------------------
-
-ifndef TAO_ROOT
- TAO_ROOT = $(ACE_ROOT)/TAO
-endif # ! TAO_ROOT
-
-LDLIBS = -lTAO
-LDFLAGS += -L$(TAO_ROOT)/tao
-
-IDL_HDR = param_testCli.h param_testSer.h
-IDL_SRC = param_testCli.cpp param_testSer.cpp
-
-SVR_FILES = param_testCli \
- param_testSer \
- server \
- param_test_i \
- tmplinst
-
-CLI_FILES = param_testCli \
- param_testSer \
- driver \
- client \
- options \
- results \
- helper \
- tmplinst \
- any \
- bd_long_seq \
- bd_short_seq \
- bd_str_seq \
- bd_string \
- bd_struct_seq \
- fixed_array \
- fixed_struct \
- nested_struct \
- objref_struct \
- objref \
- short \
- ulonglong \
- typecode \
- ub_any_seq \
- ub_long_seq \
- ub_objref_seq \
- ub_short_seq \
- ub_str_seq \
- ub_string \
- ub_struct_seq \
- var_array \
- var_struct \
- except \
- big_union
-
-PARAM_TEST_SVR_OBJS = $(addsuffix .o,$(SVR_FILES))
-PARAM_TEST_CLT_OBJS = $(addsuffix .o,$(CLI_FILES))
-SRC = $(addsuffix .cpp,$(SVR_FILES)) \
- $(addsuffix .cpp,$(CLI_FILES))
-
-BIN = server client
-BUILD = $(BIN)
-VLDLIBS = $(LDLIBS:%=%$(VAR))
-VBIN = $(BIN:%=%$(VAR))
-
-#----------------------------------------------------------------------------
-# Include macros and targets
-#----------------------------------------------------------------------------
-
-include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
-
-ifeq ($(ACE_HAS_GNUG_PRE_2_8),1)
-
- # Since older g++ cannot handle nested classes properly, this test
- # will not build on g++ prior to 2.8.0.
- all clean realclean:
- @echo tests/Param_Test is not built with older versions of g++
-
-else # ! ACE_HAS_GNUG_PRE_2_8
-
-include $(ACE_ROOT)/include/makeinclude/macros.GNU
-include $(TAO_ROOT)/rules.tao.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
-#include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
-
-override TAO_IDLFLAGS += -hc Cli.h -hs Ser.h -hT Ser_T.h \
- -cs Cli.cpp -ci Cli.i \
- -ss Ser.cpp -sT Ser_T.cpp -si Ser.i -st Ser_T.i
-
-TSS_ORB_FLAG = #-DTAO_HAS_TSS_ORBCORE
-CPPFLAGS += -I$(TAO_ROOT) $(TSS_ORB_FLAG)
-
-.PRECIOUS: $(IDL_HDR) $(IDL_SRC)
-#$(IDL_HDR) $(IDL_SRC): param_test.idl
-# $(TAO_IDL/tao_idl param_test.idl
-
-server: $(addprefix $(VDIR),$(PARAM_TEST_SVR_OBJS))
- $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK)
-
-client: $(addprefix $(VDIR),$(PARAM_TEST_CLT_OBJS))
- $(LINK.cc) $(LDFLAGS) -o $@ $^ $(VLDLIBS) $(POSTLINK)
-
-clean:
- -/bin/rm -rf $(VDIR)/*.o $(BIN) obj.* core Templates.DB .make.state
-
-realclean: clean
- -/bin/rm -rf param_testCli.* param_testSer.* param_testSer_T.*
-
-endif # ! ACE_HAS_GNUG_PRE_2_8
-
-# DO NOT DELETE THIS LINE -- g++dep uses it.
-# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
-
-.obj/param_testCli.o .obj/param_testCli.so .shobj/param_testCli.o .shobj/param_testCli.so: param_testCli.cpp param_testCli.h param_testCli.i \
- param_testSer.h param_testSer_T.h param_testSer_T.i \
- param_testSer_T.cpp param_testSer.i
-.obj/param_testSer.o .obj/param_testSer.so .shobj/param_testSer.o .shobj/param_testSer.so: param_testSer.cpp param_testSer.h param_testCli.h \
- param_testCli.i param_testSer_T.h param_testSer_T.i \
- param_testSer_T.cpp param_testSer.i
-.obj/server.o .obj/server.so .shobj/server.o .shobj/server.so: server.cpp \
- $(ACE_ROOT)/ace/Get_Opt.h \
- $(ACE_ROOT)/ace/ACE.h \
- $(ACE_ROOT)/ace/OS.h \
- $(ACE_ROOT)/ace/inc_user_config.h \
- $(ACE_ROOT)/ace/config.h \
- $(ACE_ROOT)/ace/config-sunos5.5.h \
- $(ACE_ROOT)/ace/config-g++-common.h \
- $(ACE_ROOT)/ace/streams.h \
- $(ACE_ROOT)/ace/Basic_Types.h \
- $(ACE_ROOT)/ace/Basic_Types.i \
- $(ACE_ROOT)/ace/OS.i \
- $(ACE_ROOT)/ace/Trace.h \
- $(ACE_ROOT)/ace/Log_Msg.h \
- $(ACE_ROOT)/ace/Log_Record.h \
- $(ACE_ROOT)/ace/ACE.i \
- $(ACE_ROOT)/ace/Log_Priority.h \
- $(ACE_ROOT)/ace/SString.h \
- $(ACE_ROOT)/ace/SString.i \
- $(ACE_ROOT)/ace/Malloc_Base.h \
- $(ACE_ROOT)/ace/Log_Record.i \
- $(ACE_ROOT)/ace/Get_Opt.i \
- param_test_i.h param_testSer.h param_testCli.h param_testCli.i \
- param_testSer_T.h param_testSer_T.i param_testSer_T.cpp \
- param_testSer.i
-.obj/param_test_i.o .obj/param_test_i.so .shobj/param_test_i.o .shobj/param_test_i.so: param_test_i.cpp \
- $(TAO_ROOT)/tao/corba.h \
- $(ACE_ROOT)/ace/OS.h \
- $(ACE_ROOT)/ace/inc_user_config.h \
- $(ACE_ROOT)/ace/config.h \
- $(ACE_ROOT)/ace/config-sunos5.5.h \
- $(ACE_ROOT)/ace/config-g++-common.h \
- $(ACE_ROOT)/ace/streams.h \
- $(ACE_ROOT)/ace/Basic_Types.h \
- $(ACE_ROOT)/ace/Basic_Types.i \
- $(ACE_ROOT)/ace/OS.i \
- $(ACE_ROOT)/ace/Trace.h \
- $(ACE_ROOT)/ace/Log_Msg.h \
- $(ACE_ROOT)/ace/Log_Record.h \
- $(ACE_ROOT)/ace/ACE.h \
- $(ACE_ROOT)/ace/ACE.i \
- $(ACE_ROOT)/ace/Log_Priority.h \
- $(ACE_ROOT)/ace/SString.h \
- $(ACE_ROOT)/ace/SString.i \
- $(ACE_ROOT)/ace/Malloc_Base.h \
- $(ACE_ROOT)/ace/Log_Record.i \
- $(TAO_ROOT)/tao/corbafwd.h \
- $(ACE_ROOT)/ace/CDR_Stream.h \
- $(ACE_ROOT)/ace/Message_Block.h \
- $(ACE_ROOT)/ace/Malloc.h \
- $(ACE_ROOT)/ace/Malloc.i \
- $(ACE_ROOT)/ace/Malloc_T.h \
- $(ACE_ROOT)/ace/Synch.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \
- $(ACE_ROOT)/ace/Synch.i \
- $(ACE_ROOT)/ace/Synch_T.h \
- $(ACE_ROOT)/ace/Event_Handler.h \
- $(ACE_ROOT)/ace/Event_Handler.i \
- $(ACE_ROOT)/ace/Synch_T.i \
- $(ACE_ROOT)/ace/Thread.h \
- $(ACE_ROOT)/ace/Thread.i \
- $(ACE_ROOT)/ace/Atomic_Op.i \
- $(ACE_ROOT)/ace/Synch_T.cpp \
- $(ACE_ROOT)/ace/Free_List.h \
- $(ACE_ROOT)/ace/Free_List.i \
- $(ACE_ROOT)/ace/Free_List.cpp \
- $(ACE_ROOT)/ace/Malloc_T.i \
- $(ACE_ROOT)/ace/Malloc_T.cpp \
- $(ACE_ROOT)/ace/Memory_Pool.h \
- $(ACE_ROOT)/ace/Signal.h \
- $(ACE_ROOT)/ace/Containers.h \
- $(ACE_ROOT)/ace/Containers.i \
- $(ACE_ROOT)/ace/Containers_T.h \
- $(ACE_ROOT)/ace/Containers_T.i \
- $(ACE_ROOT)/ace/Containers_T.cpp \
- $(ACE_ROOT)/ace/Signal.i \
- $(ACE_ROOT)/ace/Object_Manager.h \
- $(ACE_ROOT)/ace/Object_Manager.i \
- $(ACE_ROOT)/ace/Managed_Object.h \
- $(ACE_ROOT)/ace/Managed_Object.i \
- $(ACE_ROOT)/ace/Managed_Object.cpp \
- $(ACE_ROOT)/ace/Mem_Map.h \
- $(ACE_ROOT)/ace/Mem_Map.i \
- $(ACE_ROOT)/ace/Memory_Pool.i \
- $(ACE_ROOT)/ace/Message_Block.i \
- $(ACE_ROOT)/ace/Message_Block_T.h \
- $(ACE_ROOT)/ace/Message_Block_T.i \
- $(ACE_ROOT)/ace/Message_Block_T.cpp \
- $(ACE_ROOT)/ace/CDR_Stream.i \
- $(TAO_ROOT)/tao/try_macros.h \
- $(TAO_ROOT)/tao/orbconf.h \
- $(ACE_ROOT)/ace/CORBA_macros.h \
- $(TAO_ROOT)/tao/Environment.h \
- $(TAO_ROOT)/tao/Environment.i \
- $(TAO_ROOT)/tao/ORB.h \
- $(TAO_ROOT)/tao/Exception.h \
- $(TAO_ROOT)/tao/Exception.i \
- $(TAO_ROOT)/tao/ORB.i \
- $(TAO_ROOT)/tao/Any.h \
- $(TAO_ROOT)/tao/CDR.h \
- $(TAO_ROOT)/tao/Typecode.h \
- $(TAO_ROOT)/tao/Typecode.i \
- $(TAO_ROOT)/tao/CDR.i \
- $(TAO_ROOT)/tao/Any.i \
- $(TAO_ROOT)/tao/NVList.h \
- $(TAO_ROOT)/tao/NVList.i \
- $(TAO_ROOT)/tao/Principal.h \
- $(TAO_ROOT)/tao/Sequence.h \
- $(TAO_ROOT)/tao/Managed_Types.h \
- $(TAO_ROOT)/tao/Managed_Types.i \
- $(TAO_ROOT)/tao/Sequence.i \
- $(TAO_ROOT)/tao/Principal.i \
- $(TAO_ROOT)/tao/Request.h \
- $(TAO_ROOT)/tao/Request.i \
- $(TAO_ROOT)/tao/Server_Request.h \
- $(TAO_ROOT)/tao/Object_KeyC.h \
- $(TAO_ROOT)/tao/Object_KeyC.i \
- $(TAO_ROOT)/tao/GIOP.h \
- $(TAO_ROOT)/tao/Sequence_T.h \
- $(TAO_ROOT)/tao/Sequence_T.i \
- $(TAO_ROOT)/tao/Sequence_T.cpp \
- $(TAO_ROOT)/tao/GIOP.i \
- $(TAO_ROOT)/tao/Object.h \
- $(TAO_ROOT)/tao/Object.i \
- $(TAO_ROOT)/tao/Server_Request.i \
- $(TAO_ROOT)/tao/varout.h \
- $(TAO_ROOT)/tao/varout.i \
- $(TAO_ROOT)/tao/varout.cpp \
- $(TAO_ROOT)/tao/Marshal.h \
- $(TAO_ROOT)/tao/Marshal.i \
- $(TAO_ROOT)/tao/singletons.h \
- $(ACE_ROOT)/ace/Singleton.h \
- $(ACE_ROOT)/ace/Singleton.i \
- $(ACE_ROOT)/ace/Singleton.cpp \
- $(TAO_ROOT)/tao/PolicyC.h \
- $(TAO_ROOT)/tao/PolicyC.i \
- $(TAO_ROOT)/tao/CurrentC.h \
- $(TAO_ROOT)/tao/CurrentC.i \
- $(TAO_ROOT)/tao/POA.h \
- $(ACE_ROOT)/ace/Hash_Map_Manager.h \
- $(ACE_ROOT)/ace/Functor.h \
- $(ACE_ROOT)/ace/Functor.i \
- $(ACE_ROOT)/ace/Functor_T.h \
- $(ACE_ROOT)/ace/Functor_T.i \
- $(ACE_ROOT)/ace/Functor_T.cpp \
- $(ACE_ROOT)/ace/Hash_Map_Manager.i \
- $(ACE_ROOT)/ace/Hash_Map_Manager_T.h \
- $(ACE_ROOT)/ace/Hash_Map_Manager_T.i \
- $(ACE_ROOT)/ace/Hash_Map_Manager_T.cpp \
- $(ACE_ROOT)/ace/Service_Config.h \
- $(ACE_ROOT)/ace/Service_Object.h \
- $(ACE_ROOT)/ace/Shared_Object.h \
- $(ACE_ROOT)/ace/Shared_Object.i \
- $(ACE_ROOT)/ace/Service_Object.i \
- $(ACE_ROOT)/ace/Service_Config.i \
- $(ACE_ROOT)/ace/Reactor.h \
- $(ACE_ROOT)/ace/Handle_Set.h \
- $(ACE_ROOT)/ace/Handle_Set.i \
- $(ACE_ROOT)/ace/Timer_Queue.h \
- $(ACE_ROOT)/ace/Timer_Queue_T.h \
- $(ACE_ROOT)/ace/Timer_Queue_T.i \
- $(ACE_ROOT)/ace/Timer_Queue_T.cpp \
- $(ACE_ROOT)/ace/Reactor.i \
- $(ACE_ROOT)/ace/Reactor_Impl.h \
- $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \
- $(TAO_ROOT)/tao/POAC.h \
- $(TAO_ROOT)/tao/POAC.i \
- $(TAO_ROOT)/tao/Servant_Base.h \
- $(TAO_ROOT)/tao/Servant_Base.i \
- $(TAO_ROOT)/tao/POAS.h \
- $(TAO_ROOT)/tao/POA_CORBA.h \
- $(TAO_ROOT)/tao/DynAnyC.h \
- $(TAO_ROOT)/tao/DynAnyC.i \
- $(TAO_ROOT)/tao/POAS.i \
- $(TAO_ROOT)/tao/Active_Object_Map.h \
- $(TAO_ROOT)/tao/Active_Object_Map.i \
- $(TAO_ROOT)/tao/POA.i \
- $(TAO_ROOT)/tao/poa_macros.h \
- $(TAO_ROOT)/tao/Stub.h \
- $(TAO_ROOT)/tao/Pluggable.h \
- $(TAO_ROOT)/tao/MProfile.h \
- $(TAO_ROOT)/tao/MProfile.i \
- $(TAO_ROOT)/tao/Stub.i \
- $(TAO_ROOT)/tao/params.h \
- $(ACE_ROOT)/ace/INET_Addr.h \
- $(ACE_ROOT)/ace/Addr.h \
- $(ACE_ROOT)/ace/Addr.i \
- $(ACE_ROOT)/ace/INET_Addr.i \
- $(TAO_ROOT)/tao/params.i \
- $(TAO_ROOT)/tao/ORB_Core.h \
- $(ACE_ROOT)/ace/Strategies_T.h \
- $(ACE_ROOT)/ace/Strategies.h \
- $(ACE_ROOT)/ace/Strategies.i \
- $(ACE_ROOT)/ace/Synch_Options.h \
- $(ACE_ROOT)/ace/Synch_Options.i \
- $(ACE_ROOT)/ace/Thread_Manager.h \
- $(ACE_ROOT)/ace/Thread_Manager.i \
- $(ACE_ROOT)/ace/Strategies_T.i \
- $(ACE_ROOT)/ace/Strategies_T.cpp \
- $(ACE_ROOT)/ace/Service_Repository.h \
- $(ACE_ROOT)/ace/Service_Types.h \
- $(ACE_ROOT)/ace/Service_Types.i \
- $(ACE_ROOT)/ace/Service_Repository.i \
- $(ACE_ROOT)/ace/WFMO_Reactor.h \
- $(ACE_ROOT)/ace/Message_Queue.h \
- $(ACE_ROOT)/ace/IO_Cntl_Msg.h \
- $(ACE_ROOT)/ace/Message_Queue_T.h \
- $(ACE_ROOT)/ace/Message_Queue_T.i \
- $(ACE_ROOT)/ace/Message_Queue_T.cpp \
- $(ACE_ROOT)/ace/Message_Queue.i \
- $(ACE_ROOT)/ace/WFMO_Reactor.i \
- $(TAO_ROOT)/tao/IIOP_Connector.h \
- $(ACE_ROOT)/ace/Connector.h \
- $(ACE_ROOT)/ace/Map_Manager.h \
- $(ACE_ROOT)/ace/Map_Manager.i \
- $(ACE_ROOT)/ace/Map_Manager.cpp \
- $(ACE_ROOT)/ace/Svc_Handler.h \
- $(ACE_ROOT)/ace/Task.h \
- $(ACE_ROOT)/ace/Task.i \
- $(ACE_ROOT)/ace/Task_T.h \
- $(ACE_ROOT)/ace/Task_T.i \
- $(ACE_ROOT)/ace/Task_T.cpp \
- $(ACE_ROOT)/ace/Module.h \
- $(ACE_ROOT)/ace/Module.i \
- $(ACE_ROOT)/ace/Module.cpp \
- $(ACE_ROOT)/ace/Stream_Modules.h \
- $(ACE_ROOT)/ace/Stream_Modules.i \
- $(ACE_ROOT)/ace/Stream_Modules.cpp \
- $(ACE_ROOT)/ace/Svc_Handler.i \
- $(ACE_ROOT)/ace/Svc_Handler.cpp \
- $(ACE_ROOT)/ace/Dynamic.h \
- $(ACE_ROOT)/ace/Dynamic.i \
- $(ACE_ROOT)/ace/Connector.i \
- $(ACE_ROOT)/ace/Connector.cpp \
- $(ACE_ROOT)/ace/SOCK_Connector.h \
- $(ACE_ROOT)/ace/SOCK_Stream.h \
- $(ACE_ROOT)/ace/SOCK_IO.h \
- $(ACE_ROOT)/ace/SOCK.h \
- $(ACE_ROOT)/ace/IPC_SAP.h \
- $(ACE_ROOT)/ace/IPC_SAP.i \
- $(ACE_ROOT)/ace/SOCK.i \
- $(ACE_ROOT)/ace/SOCK_IO.i \
- $(ACE_ROOT)/ace/SOCK_Stream.i \
- $(ACE_ROOT)/ace/Time_Value.h \
- $(ACE_ROOT)/ace/SOCK_Connector.i \
- $(TAO_ROOT)/tao/Connect.h \
- $(ACE_ROOT)/ace/Acceptor.h \
- $(ACE_ROOT)/ace/Acceptor.i \
- $(ACE_ROOT)/ace/Acceptor.cpp \
- $(ACE_ROOT)/ace/SOCK_Acceptor.h \
- $(ACE_ROOT)/ace/SOCK_Acceptor.i \
- $(TAO_ROOT)/tao/Connect.i \
- $(TAO_ROOT)/tao/IIOP_Acceptor.h \
- $(TAO_ROOT)/tao/ORB_Core.i \
- $(ACE_ROOT)/ace/Dynamic_Service.h \
- $(ACE_ROOT)/ace/Dynamic_Service.cpp \
- $(TAO_ROOT)/tao/Operation_Table.h \
- $(TAO_ROOT)/tao/Client_Strategy_Factory.h \
- $(TAO_ROOT)/tao/Server_Strategy_Factory.h \
- $(TAO_ROOT)/tao/Invocation.h \
- $(TAO_ROOT)/tao/Invocation.i \
- $(TAO_ROOT)/tao/InconsistentTypeCodeC.h \
- $(TAO_ROOT)/tao/DynAny_i.h \
- $(TAO_ROOT)/tao/Union.h \
- param_test_i.h param_testSer.h param_testCli.h param_testCli.i \
- param_testSer_T.h param_testSer_T.i param_testSer_T.cpp \
- param_testSer.i
-.obj/tmplinst.o .obj/tmplinst.so .shobj/tmplinst.o .shobj/tmplinst.so: tmplinst.cpp param_testCli.h param_testCli.i
-.obj/param_testCli.o .obj/param_testCli.so .shobj/param_testCli.o .shobj/param_testCli.so: param_testCli.cpp param_testCli.h param_testCli.i \
- param_testSer.h param_testSer_T.h param_testSer_T.i \
- param_testSer_T.cpp param_testSer.i
-.obj/param_testSer.o .obj/param_testSer.so .shobj/param_testSer.o .shobj/param_testSer.so: param_testSer.cpp param_testSer.h param_testCli.h \
- param_testCli.i param_testSer_T.h param_testSer_T.i \
- param_testSer_T.cpp param_testSer.i
-.obj/driver.o .obj/driver.so .shobj/driver.o .shobj/driver.so: driver.cpp driver.h options.h \
- $(ACE_ROOT)/ace/Singleton.h \
- $(ACE_ROOT)/ace/Synch.h \
- $(ACE_ROOT)/ace/ACE.h \
- $(ACE_ROOT)/ace/OS.h \
- $(ACE_ROOT)/ace/inc_user_config.h \
- $(ACE_ROOT)/ace/config.h \
- $(ACE_ROOT)/ace/config-sunos5.5.h \
- $(ACE_ROOT)/ace/config-g++-common.h \
- $(ACE_ROOT)/ace/streams.h \
- $(ACE_ROOT)/ace/Basic_Types.h \
- $(ACE_ROOT)/ace/Basic_Types.i \
- $(ACE_ROOT)/ace/OS.i \
- $(ACE_ROOT)/ace/Trace.h \
- $(ACE_ROOT)/ace/Log_Msg.h \
- $(ACE_ROOT)/ace/Log_Record.h \
- $(ACE_ROOT)/ace/ACE.i \
- $(ACE_ROOT)/ace/Log_Priority.h \
- $(ACE_ROOT)/ace/SString.h \
- $(ACE_ROOT)/ace/SString.i \
- $(ACE_ROOT)/ace/Malloc_Base.h \
- $(ACE_ROOT)/ace/Log_Record.i \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \
- $(ACE_ROOT)/ace/Synch.i \
- $(ACE_ROOT)/ace/Synch_T.h \
- $(ACE_ROOT)/ace/Event_Handler.h \
- $(ACE_ROOT)/ace/Event_Handler.i \
- $(ACE_ROOT)/ace/Synch_T.i \
- $(ACE_ROOT)/ace/Thread.h \
- $(ACE_ROOT)/ace/Thread.i \
- $(ACE_ROOT)/ace/Atomic_Op.i \
- $(ACE_ROOT)/ace/Synch_T.cpp \
- $(ACE_ROOT)/ace/Singleton.i \
- $(ACE_ROOT)/ace/Singleton.cpp \
- $(ACE_ROOT)/ace/Object_Manager.h \
- $(ACE_ROOT)/ace/Object_Manager.i \
- $(ACE_ROOT)/ace/Managed_Object.h \
- $(ACE_ROOT)/ace/Managed_Object.i \
- $(ACE_ROOT)/ace/Managed_Object.cpp \
- $(TAO_ROOT)/tao/corba.h \
- $(TAO_ROOT)/tao/corbafwd.h \
- $(ACE_ROOT)/ace/CDR_Stream.h \
- $(ACE_ROOT)/ace/Message_Block.h \
- $(ACE_ROOT)/ace/Malloc.h \
- $(ACE_ROOT)/ace/Malloc.i \
- $(ACE_ROOT)/ace/Malloc_T.h \
- $(ACE_ROOT)/ace/Free_List.h \
- $(ACE_ROOT)/ace/Free_List.i \
- $(ACE_ROOT)/ace/Free_List.cpp \
- $(ACE_ROOT)/ace/Malloc_T.i \
- $(ACE_ROOT)/ace/Malloc_T.cpp \
- $(ACE_ROOT)/ace/Memory_Pool.h \
- $(ACE_ROOT)/ace/Signal.h \
- $(ACE_ROOT)/ace/Containers.h \
- $(ACE_ROOT)/ace/Containers.i \
- $(ACE_ROOT)/ace/Containers_T.h \
- $(ACE_ROOT)/ace/Containers_T.i \
- $(ACE_ROOT)/ace/Containers_T.cpp \
- $(ACE_ROOT)/ace/Signal.i \
- $(ACE_ROOT)/ace/Mem_Map.h \
- $(ACE_ROOT)/ace/Mem_Map.i \
- $(ACE_ROOT)/ace/Memory_Pool.i \
- $(ACE_ROOT)/ace/Message_Block.i \
- $(ACE_ROOT)/ace/Message_Block_T.h \
- $(ACE_ROOT)/ace/Message_Block_T.i \
- $(ACE_ROOT)/ace/Message_Block_T.cpp \
- $(ACE_ROOT)/ace/CDR_Stream.i \
- $(TAO_ROOT)/tao/try_macros.h \
- $(TAO_ROOT)/tao/orbconf.h \
- $(ACE_ROOT)/ace/CORBA_macros.h \
- $(TAO_ROOT)/tao/Environment.h \
- $(TAO_ROOT)/tao/Environment.i \
- $(TAO_ROOT)/tao/ORB.h \
- $(TAO_ROOT)/tao/Exception.h \
- $(TAO_ROOT)/tao/Exception.i \
- $(TAO_ROOT)/tao/ORB.i \
- $(TAO_ROOT)/tao/Any.h \
- $(TAO_ROOT)/tao/CDR.h \
- $(TAO_ROOT)/tao/Typecode.h \
- $(TAO_ROOT)/tao/Typecode.i \
- $(TAO_ROOT)/tao/CDR.i \
- $(TAO_ROOT)/tao/Any.i \
- $(TAO_ROOT)/tao/NVList.h \
- $(TAO_ROOT)/tao/NVList.i \
- $(TAO_ROOT)/tao/Principal.h \
- $(TAO_ROOT)/tao/Sequence.h \
- $(TAO_ROOT)/tao/Managed_Types.h \
- $(TAO_ROOT)/tao/Managed_Types.i \
- $(TAO_ROOT)/tao/Sequence.i \
- $(TAO_ROOT)/tao/Principal.i \
- $(TAO_ROOT)/tao/Request.h \
- $(TAO_ROOT)/tao/Request.i \
- $(TAO_ROOT)/tao/Server_Request.h \
- $(TAO_ROOT)/tao/Object_KeyC.h \
- $(TAO_ROOT)/tao/Object_KeyC.i \
- $(TAO_ROOT)/tao/GIOP.h \
- $(TAO_ROOT)/tao/Sequence_T.h \
- $(TAO_ROOT)/tao/Sequence_T.i \
- $(TAO_ROOT)/tao/Sequence_T.cpp \
- $(TAO_ROOT)/tao/GIOP.i \
- $(TAO_ROOT)/tao/Object.h \
- $(TAO_ROOT)/tao/Object.i \
- $(TAO_ROOT)/tao/Server_Request.i \
- $(TAO_ROOT)/tao/varout.h \
- $(TAO_ROOT)/tao/varout.i \
- $(TAO_ROOT)/tao/varout.cpp \
- $(TAO_ROOT)/tao/Marshal.h \
- $(TAO_ROOT)/tao/Marshal.i \
- $(TAO_ROOT)/tao/singletons.h \
- $(TAO_ROOT)/tao/PolicyC.h \
- $(TAO_ROOT)/tao/PolicyC.i \
- $(TAO_ROOT)/tao/CurrentC.h \
- $(TAO_ROOT)/tao/CurrentC.i \
- $(TAO_ROOT)/tao/POA.h \
- $(ACE_ROOT)/ace/Hash_Map_Manager.h \
- $(ACE_ROOT)/ace/Functor.h \
- $(ACE_ROOT)/ace/Functor.i \
- $(ACE_ROOT)/ace/Functor_T.h \
- $(ACE_ROOT)/ace/Functor_T.i \
- $(ACE_ROOT)/ace/Functor_T.cpp \
- $(ACE_ROOT)/ace/Hash_Map_Manager.i \
- $(ACE_ROOT)/ace/Hash_Map_Manager_T.h \
- $(ACE_ROOT)/ace/Hash_Map_Manager_T.i \
- $(ACE_ROOT)/ace/Hash_Map_Manager_T.cpp \
- $(ACE_ROOT)/ace/Service_Config.h \
- $(ACE_ROOT)/ace/Service_Object.h \
- $(ACE_ROOT)/ace/Shared_Object.h \
- $(ACE_ROOT)/ace/Shared_Object.i \
- $(ACE_ROOT)/ace/Service_Object.i \
- $(ACE_ROOT)/ace/Service_Config.i \
- $(ACE_ROOT)/ace/Reactor.h \
- $(ACE_ROOT)/ace/Handle_Set.h \
- $(ACE_ROOT)/ace/Handle_Set.i \
- $(ACE_ROOT)/ace/Timer_Queue.h \
- $(ACE_ROOT)/ace/Timer_Queue_T.h \
- $(ACE_ROOT)/ace/Timer_Queue_T.i \
- $(ACE_ROOT)/ace/Timer_Queue_T.cpp \
- $(ACE_ROOT)/ace/Reactor.i \
- $(ACE_ROOT)/ace/Reactor_Impl.h \
- $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \
- $(TAO_ROOT)/tao/POAC.h \
- $(TAO_ROOT)/tao/POAC.i \
- $(TAO_ROOT)/tao/Servant_Base.h \
- $(TAO_ROOT)/tao/Servant_Base.i \
- $(TAO_ROOT)/tao/POAS.h \
- $(TAO_ROOT)/tao/POA_CORBA.h \
- $(TAO_ROOT)/tao/DynAnyC.h \
- $(TAO_ROOT)/tao/DynAnyC.i \
- $(TAO_ROOT)/tao/POAS.i \
- $(TAO_ROOT)/tao/Active_Object_Map.h \
- $(TAO_ROOT)/tao/Active_Object_Map.i \
- $(TAO_ROOT)/tao/POA.i \
- $(TAO_ROOT)/tao/poa_macros.h \
- $(TAO_ROOT)/tao/Stub.h \
- $(TAO_ROOT)/tao/Pluggable.h \
- $(TAO_ROOT)/tao/MProfile.h \
- $(TAO_ROOT)/tao/MProfile.i \
- $(TAO_ROOT)/tao/Stub.i \
- $(TAO_ROOT)/tao/params.h \
- $(ACE_ROOT)/ace/INET_Addr.h \
- $(ACE_ROOT)/ace/Addr.h \
- $(ACE_ROOT)/ace/Addr.i \
- $(ACE_ROOT)/ace/INET_Addr.i \
- $(TAO_ROOT)/tao/params.i \
- $(TAO_ROOT)/tao/ORB_Core.h \
- $(ACE_ROOT)/ace/Strategies_T.h \
- $(ACE_ROOT)/ace/Strategies.h \
- $(ACE_ROOT)/ace/Strategies.i \
- $(ACE_ROOT)/ace/Synch_Options.h \
- $(ACE_ROOT)/ace/Synch_Options.i \
- $(ACE_ROOT)/ace/Thread_Manager.h \
- $(ACE_ROOT)/ace/Thread_Manager.i \
- $(ACE_ROOT)/ace/Strategies_T.i \
- $(ACE_ROOT)/ace/Strategies_T.cpp \
- $(ACE_ROOT)/ace/Service_Repository.h \
- $(ACE_ROOT)/ace/Service_Types.h \
- $(ACE_ROOT)/ace/Service_Types.i \
- $(ACE_ROOT)/ace/Service_Repository.i \
- $(ACE_ROOT)/ace/WFMO_Reactor.h \
- $(ACE_ROOT)/ace/Message_Queue.h \
- $(ACE_ROOT)/ace/IO_Cntl_Msg.h \
- $(ACE_ROOT)/ace/Message_Queue_T.h \
- $(ACE_ROOT)/ace/Message_Queue_T.i \
- $(ACE_ROOT)/ace/Message_Queue_T.cpp \
- $(ACE_ROOT)/ace/Message_Queue.i \
- $(ACE_ROOT)/ace/WFMO_Reactor.i \
- $(TAO_ROOT)/tao/IIOP_Connector.h \
- $(ACE_ROOT)/ace/Connector.h \
- $(ACE_ROOT)/ace/Map_Manager.h \
- $(ACE_ROOT)/ace/Map_Manager.i \
- $(ACE_ROOT)/ace/Map_Manager.cpp \
- $(ACE_ROOT)/ace/Svc_Handler.h \
- $(ACE_ROOT)/ace/Task.h \
- $(ACE_ROOT)/ace/Task.i \
- $(ACE_ROOT)/ace/Task_T.h \
- $(ACE_ROOT)/ace/Task_T.i \
- $(ACE_ROOT)/ace/Task_T.cpp \
- $(ACE_ROOT)/ace/Module.h \
- $(ACE_ROOT)/ace/Module.i \
- $(ACE_ROOT)/ace/Module.cpp \
- $(ACE_ROOT)/ace/Stream_Modules.h \
- $(ACE_ROOT)/ace/Stream_Modules.i \
- $(ACE_ROOT)/ace/Stream_Modules.cpp \
- $(ACE_ROOT)/ace/Svc_Handler.i \
- $(ACE_ROOT)/ace/Svc_Handler.cpp \
- $(ACE_ROOT)/ace/Dynamic.h \
- $(ACE_ROOT)/ace/Dynamic.i \
- $(ACE_ROOT)/ace/Connector.i \
- $(ACE_ROOT)/ace/Connector.cpp \
- $(ACE_ROOT)/ace/SOCK_Connector.h \
- $(ACE_ROOT)/ace/SOCK_Stream.h \
- $(ACE_ROOT)/ace/SOCK_IO.h \
- $(ACE_ROOT)/ace/SOCK.h \
- $(ACE_ROOT)/ace/IPC_SAP.h \
- $(ACE_ROOT)/ace/IPC_SAP.i \
- $(ACE_ROOT)/ace/SOCK.i \
- $(ACE_ROOT)/ace/SOCK_IO.i \
- $(ACE_ROOT)/ace/SOCK_Stream.i \
- $(ACE_ROOT)/ace/Time_Value.h \
- $(ACE_ROOT)/ace/SOCK_Connector.i \
- $(TAO_ROOT)/tao/Connect.h \
- $(ACE_ROOT)/ace/Acceptor.h \
- $(ACE_ROOT)/ace/Acceptor.i \
- $(ACE_ROOT)/ace/Acceptor.cpp \
- $(ACE_ROOT)/ace/SOCK_Acceptor.h \
- $(ACE_ROOT)/ace/SOCK_Acceptor.i \
- $(TAO_ROOT)/tao/Connect.i \
- $(TAO_ROOT)/tao/IIOP_Acceptor.h \
- $(TAO_ROOT)/tao/ORB_Core.i \
- $(ACE_ROOT)/ace/Dynamic_Service.h \
- $(ACE_ROOT)/ace/Dynamic_Service.cpp \
- $(TAO_ROOT)/tao/Operation_Table.h \
- $(TAO_ROOT)/tao/Client_Strategy_Factory.h \
- $(TAO_ROOT)/tao/Server_Strategy_Factory.h \
- $(TAO_ROOT)/tao/Invocation.h \
- $(TAO_ROOT)/tao/Invocation.i \
- $(TAO_ROOT)/tao/InconsistentTypeCodeC.h \
- $(TAO_ROOT)/tao/DynAny_i.h \
- $(TAO_ROOT)/tao/Union.h \
- param_testCli.h param_testCli.i results.h \
- $(ACE_ROOT)/ace/Profile_Timer.h \
- $(ACE_ROOT)/ace/High_Res_Timer.h \
- $(ACE_ROOT)/ace/High_Res_Timer.i \
- $(ACE_ROOT)/ace/Profile_Timer.i \
- client.h client.cpp tests.h any.h bd_long_seq.h bd_short_seq.h \
- bd_str_seq.h bd_string.h bd_struct_seq.h fixed_array.h fixed_struct.h \
- nested_struct.h objref_struct.h objref.h short.h ulonglong.h \
- typecode.h ub_any_seq.h ub_long_seq.h ub_objref_seq.h ub_short_seq.h \
- ub_str_seq.h ub_string.h ub_struct_seq.h var_array.h var_struct.h \
- except.h big_union.h \
- $(ACE_ROOT)/ace/Get_Opt.h \
- $(ACE_ROOT)/ace/Get_Opt.i
-.obj/client.o .obj/client.so .shobj/client.o .shobj/client.so: client.cpp options.h \
- $(ACE_ROOT)/ace/Singleton.h \
- $(ACE_ROOT)/ace/Synch.h \
- $(ACE_ROOT)/ace/ACE.h \
- $(ACE_ROOT)/ace/OS.h \
- $(ACE_ROOT)/ace/inc_user_config.h \
- $(ACE_ROOT)/ace/config.h \
- $(ACE_ROOT)/ace/config-sunos5.5.h \
- $(ACE_ROOT)/ace/config-g++-common.h \
- $(ACE_ROOT)/ace/streams.h \
- $(ACE_ROOT)/ace/Basic_Types.h \
- $(ACE_ROOT)/ace/Basic_Types.i \
- $(ACE_ROOT)/ace/OS.i \
- $(ACE_ROOT)/ace/Trace.h \
- $(ACE_ROOT)/ace/Log_Msg.h \
- $(ACE_ROOT)/ace/Log_Record.h \
- $(ACE_ROOT)/ace/ACE.i \
- $(ACE_ROOT)/ace/Log_Priority.h \
- $(ACE_ROOT)/ace/SString.h \
- $(ACE_ROOT)/ace/SString.i \
- $(ACE_ROOT)/ace/Malloc_Base.h \
- $(ACE_ROOT)/ace/Log_Record.i \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \
- $(ACE_ROOT)/ace/Synch.i \
- $(ACE_ROOT)/ace/Synch_T.h \
- $(ACE_ROOT)/ace/Event_Handler.h \
- $(ACE_ROOT)/ace/Event_Handler.i \
- $(ACE_ROOT)/ace/Synch_T.i \
- $(ACE_ROOT)/ace/Thread.h \
- $(ACE_ROOT)/ace/Thread.i \
- $(ACE_ROOT)/ace/Atomic_Op.i \
- $(ACE_ROOT)/ace/Synch_T.cpp \
- $(ACE_ROOT)/ace/Singleton.i \
- $(ACE_ROOT)/ace/Singleton.cpp \
- $(ACE_ROOT)/ace/Object_Manager.h \
- $(ACE_ROOT)/ace/Object_Manager.i \
- $(ACE_ROOT)/ace/Managed_Object.h \
- $(ACE_ROOT)/ace/Managed_Object.i \
- $(ACE_ROOT)/ace/Managed_Object.cpp \
- $(TAO_ROOT)/tao/corba.h \
- $(TAO_ROOT)/tao/corbafwd.h \
- $(ACE_ROOT)/ace/CDR_Stream.h \
- $(ACE_ROOT)/ace/Message_Block.h \
- $(ACE_ROOT)/ace/Malloc.h \
- $(ACE_ROOT)/ace/Malloc.i \
- $(ACE_ROOT)/ace/Malloc_T.h \
- $(ACE_ROOT)/ace/Free_List.h \
- $(ACE_ROOT)/ace/Free_List.i \
- $(ACE_ROOT)/ace/Free_List.cpp \
- $(ACE_ROOT)/ace/Malloc_T.i \
- $(ACE_ROOT)/ace/Malloc_T.cpp \
- $(ACE_ROOT)/ace/Memory_Pool.h \
- $(ACE_ROOT)/ace/Signal.h \
- $(ACE_ROOT)/ace/Containers.h \
- $(ACE_ROOT)/ace/Containers.i \
- $(ACE_ROOT)/ace/Containers_T.h \
- $(ACE_ROOT)/ace/Containers_T.i \
- $(ACE_ROOT)/ace/Containers_T.cpp \
- $(ACE_ROOT)/ace/Signal.i \
- $(ACE_ROOT)/ace/Mem_Map.h \
- $(ACE_ROOT)/ace/Mem_Map.i \
- $(ACE_ROOT)/ace/Memory_Pool.i \
- $(ACE_ROOT)/ace/Message_Block.i \
- $(ACE_ROOT)/ace/Message_Block_T.h \
- $(ACE_ROOT)/ace/Message_Block_T.i \
- $(ACE_ROOT)/ace/Message_Block_T.cpp \
- $(ACE_ROOT)/ace/CDR_Stream.i \
- $(TAO_ROOT)/tao/try_macros.h \
- $(TAO_ROOT)/tao/orbconf.h \
- $(ACE_ROOT)/ace/CORBA_macros.h \
- $(TAO_ROOT)/tao/Environment.h \
- $(TAO_ROOT)/tao/Environment.i \
- $(TAO_ROOT)/tao/ORB.h \
- $(TAO_ROOT)/tao/Exception.h \
- $(TAO_ROOT)/tao/Exception.i \
- $(TAO_ROOT)/tao/ORB.i \
- $(TAO_ROOT)/tao/Any.h \
- $(TAO_ROOT)/tao/CDR.h \
- $(TAO_ROOT)/tao/Typecode.h \
- $(TAO_ROOT)/tao/Typecode.i \
- $(TAO_ROOT)/tao/CDR.i \
- $(TAO_ROOT)/tao/Any.i \
- $(TAO_ROOT)/tao/NVList.h \
- $(TAO_ROOT)/tao/NVList.i \
- $(TAO_ROOT)/tao/Principal.h \
- $(TAO_ROOT)/tao/Sequence.h \
- $(TAO_ROOT)/tao/Managed_Types.h \
- $(TAO_ROOT)/tao/Managed_Types.i \
- $(TAO_ROOT)/tao/Sequence.i \
- $(TAO_ROOT)/tao/Principal.i \
- $(TAO_ROOT)/tao/Request.h \
- $(TAO_ROOT)/tao/Request.i \
- $(TAO_ROOT)/tao/Server_Request.h \
- $(TAO_ROOT)/tao/Object_KeyC.h \
- $(TAO_ROOT)/tao/Object_KeyC.i \
- $(TAO_ROOT)/tao/GIOP.h \
- $(TAO_ROOT)/tao/Sequence_T.h \
- $(TAO_ROOT)/tao/Sequence_T.i \
- $(TAO_ROOT)/tao/Sequence_T.cpp \
- $(TAO_ROOT)/tao/GIOP.i \
- $(TAO_ROOT)/tao/Object.h \
- $(TAO_ROOT)/tao/Object.i \
- $(TAO_ROOT)/tao/Server_Request.i \
- $(TAO_ROOT)/tao/varout.h \
- $(TAO_ROOT)/tao/varout.i \
- $(TAO_ROOT)/tao/varout.cpp \
- $(TAO_ROOT)/tao/Marshal.h \
- $(TAO_ROOT)/tao/Marshal.i \
- $(TAO_ROOT)/tao/singletons.h \
- $(TAO_ROOT)/tao/PolicyC.h \
- $(TAO_ROOT)/tao/PolicyC.i \
- $(TAO_ROOT)/tao/CurrentC.h \
- $(TAO_ROOT)/tao/CurrentC.i \
- $(TAO_ROOT)/tao/POA.h \
- $(ACE_ROOT)/ace/Hash_Map_Manager.h \
- $(ACE_ROOT)/ace/Functor.h \
- $(ACE_ROOT)/ace/Functor.i \
- $(ACE_ROOT)/ace/Functor_T.h \
- $(ACE_ROOT)/ace/Functor_T.i \
- $(ACE_ROOT)/ace/Functor_T.cpp \
- $(ACE_ROOT)/ace/Hash_Map_Manager.i \
- $(ACE_ROOT)/ace/Hash_Map_Manager_T.h \
- $(ACE_ROOT)/ace/Hash_Map_Manager_T.i \
- $(ACE_ROOT)/ace/Hash_Map_Manager_T.cpp \
- $(ACE_ROOT)/ace/Service_Config.h \
- $(ACE_ROOT)/ace/Service_Object.h \
- $(ACE_ROOT)/ace/Shared_Object.h \
- $(ACE_ROOT)/ace/Shared_Object.i \
- $(ACE_ROOT)/ace/Service_Object.i \
- $(ACE_ROOT)/ace/Service_Config.i \
- $(ACE_ROOT)/ace/Reactor.h \
- $(ACE_ROOT)/ace/Handle_Set.h \
- $(ACE_ROOT)/ace/Handle_Set.i \
- $(ACE_ROOT)/ace/Timer_Queue.h \
- $(ACE_ROOT)/ace/Timer_Queue_T.h \
- $(ACE_ROOT)/ace/Timer_Queue_T.i \
- $(ACE_ROOT)/ace/Timer_Queue_T.cpp \
- $(ACE_ROOT)/ace/Reactor.i \
- $(ACE_ROOT)/ace/Reactor_Impl.h \
- $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \
- $(TAO_ROOT)/tao/POAC.h \
- $(TAO_ROOT)/tao/POAC.i \
- $(TAO_ROOT)/tao/Servant_Base.h \
- $(TAO_ROOT)/tao/Servant_Base.i \
- $(TAO_ROOT)/tao/POAS.h \
- $(TAO_ROOT)/tao/POA_CORBA.h \
- $(TAO_ROOT)/tao/DynAnyC.h \
- $(TAO_ROOT)/tao/DynAnyC.i \
- $(TAO_ROOT)/tao/POAS.i \
- $(TAO_ROOT)/tao/Active_Object_Map.h \
- $(TAO_ROOT)/tao/Active_Object_Map.i \
- $(TAO_ROOT)/tao/POA.i \
- $(TAO_ROOT)/tao/poa_macros.h \
- $(TAO_ROOT)/tao/Stub.h \
- $(TAO_ROOT)/tao/Pluggable.h \
- $(TAO_ROOT)/tao/MProfile.h \
- $(TAO_ROOT)/tao/MProfile.i \
- $(TAO_ROOT)/tao/Stub.i \
- $(TAO_ROOT)/tao/params.h \
- $(ACE_ROOT)/ace/INET_Addr.h \
- $(ACE_ROOT)/ace/Addr.h \
- $(ACE_ROOT)/ace/Addr.i \
- $(ACE_ROOT)/ace/INET_Addr.i \
- $(TAO_ROOT)/tao/params.i \
- $(TAO_ROOT)/tao/ORB_Core.h \
- $(ACE_ROOT)/ace/Strategies_T.h \
- $(ACE_ROOT)/ace/Strategies.h \
- $(ACE_ROOT)/ace/Strategies.i \
- $(ACE_ROOT)/ace/Synch_Options.h \
- $(ACE_ROOT)/ace/Synch_Options.i \
- $(ACE_ROOT)/ace/Thread_Manager.h \
- $(ACE_ROOT)/ace/Thread_Manager.i \
- $(ACE_ROOT)/ace/Strategies_T.i \
- $(ACE_ROOT)/ace/Strategies_T.cpp \
- $(ACE_ROOT)/ace/Service_Repository.h \
- $(ACE_ROOT)/ace/Service_Types.h \
- $(ACE_ROOT)/ace/Service_Types.i \
- $(ACE_ROOT)/ace/Service_Repository.i \
- $(ACE_ROOT)/ace/WFMO_Reactor.h \
- $(ACE_ROOT)/ace/Message_Queue.h \
- $(ACE_ROOT)/ace/IO_Cntl_Msg.h \
- $(ACE_ROOT)/ace/Message_Queue_T.h \
- $(ACE_ROOT)/ace/Message_Queue_T.i \
- $(ACE_ROOT)/ace/Message_Queue_T.cpp \
- $(ACE_ROOT)/ace/Message_Queue.i \
- $(ACE_ROOT)/ace/WFMO_Reactor.i \
- $(TAO_ROOT)/tao/IIOP_Connector.h \
- $(ACE_ROOT)/ace/Connector.h \
- $(ACE_ROOT)/ace/Map_Manager.h \
- $(ACE_ROOT)/ace/Map_Manager.i \
- $(ACE_ROOT)/ace/Map_Manager.cpp \
- $(ACE_ROOT)/ace/Svc_Handler.h \
- $(ACE_ROOT)/ace/Task.h \
- $(ACE_ROOT)/ace/Task.i \
- $(ACE_ROOT)/ace/Task_T.h \
- $(ACE_ROOT)/ace/Task_T.i \
- $(ACE_ROOT)/ace/Task_T.cpp \
- $(ACE_ROOT)/ace/Module.h \
- $(ACE_ROOT)/ace/Module.i \
- $(ACE_ROOT)/ace/Module.cpp \
- $(ACE_ROOT)/ace/Stream_Modules.h \
- $(ACE_ROOT)/ace/Stream_Modules.i \
- $(ACE_ROOT)/ace/Stream_Modules.cpp \
- $(ACE_ROOT)/ace/Svc_Handler.i \
- $(ACE_ROOT)/ace/Svc_Handler.cpp \
- $(ACE_ROOT)/ace/Dynamic.h \
- $(ACE_ROOT)/ace/Dynamic.i \
- $(ACE_ROOT)/ace/Connector.i \
- $(ACE_ROOT)/ace/Connector.cpp \
- $(ACE_ROOT)/ace/SOCK_Connector.h \
- $(ACE_ROOT)/ace/SOCK_Stream.h \
- $(ACE_ROOT)/ace/SOCK_IO.h \
- $(ACE_ROOT)/ace/SOCK.h \
- $(ACE_ROOT)/ace/IPC_SAP.h \
- $(ACE_ROOT)/ace/IPC_SAP.i \
- $(ACE_ROOT)/ace/SOCK.i \
- $(ACE_ROOT)/ace/SOCK_IO.i \
- $(ACE_ROOT)/ace/SOCK_Stream.i \
- $(ACE_ROOT)/ace/Time_Value.h \
- $(ACE_ROOT)/ace/SOCK_Connector.i \
- $(TAO_ROOT)/tao/Connect.h \
- $(ACE_ROOT)/ace/Acceptor.h \
- $(ACE_ROOT)/ace/Acceptor.i \
- $(ACE_ROOT)/ace/Acceptor.cpp \
- $(ACE_ROOT)/ace/SOCK_Acceptor.h \
- $(ACE_ROOT)/ace/SOCK_Acceptor.i \
- $(TAO_ROOT)/tao/Connect.i \
- $(TAO_ROOT)/tao/IIOP_Acceptor.h \
- $(TAO_ROOT)/tao/ORB_Core.i \
- $(ACE_ROOT)/ace/Dynamic_Service.h \
- $(ACE_ROOT)/ace/Dynamic_Service.cpp \
- $(TAO_ROOT)/tao/Operation_Table.h \
- $(TAO_ROOT)/tao/Client_Strategy_Factory.h \
- $(TAO_ROOT)/tao/Server_Strategy_Factory.h \
- $(TAO_ROOT)/tao/Invocation.h \
- $(TAO_ROOT)/tao/Invocation.i \
- $(TAO_ROOT)/tao/InconsistentTypeCodeC.h \
- $(TAO_ROOT)/tao/DynAny_i.h \
- $(TAO_ROOT)/tao/Union.h results.h \
- $(ACE_ROOT)/ace/Profile_Timer.h \
- $(ACE_ROOT)/ace/High_Res_Timer.h \
- $(ACE_ROOT)/ace/High_Res_Timer.i \
- $(ACE_ROOT)/ace/Profile_Timer.i \
- client.h param_testCli.h param_testCli.i client.cpp
-.obj/options.o .obj/options.so .shobj/options.o .shobj/options.so: options.cpp \
- $(ACE_ROOT)/ace/Read_Buffer.h \
- $(ACE_ROOT)/ace/ACE.h \
- $(ACE_ROOT)/ace/OS.h \
- $(ACE_ROOT)/ace/inc_user_config.h \
- $(ACE_ROOT)/ace/config.h \
- $(ACE_ROOT)/ace/config-sunos5.5.h \
- $(ACE_ROOT)/ace/config-g++-common.h \
- $(ACE_ROOT)/ace/streams.h \
- $(ACE_ROOT)/ace/Basic_Types.h \
- $(ACE_ROOT)/ace/Basic_Types.i \
- $(ACE_ROOT)/ace/OS.i \
- $(ACE_ROOT)/ace/Trace.h \
- $(ACE_ROOT)/ace/Log_Msg.h \
- $(ACE_ROOT)/ace/Log_Record.h \
- $(ACE_ROOT)/ace/ACE.i \
- $(ACE_ROOT)/ace/Log_Priority.h \
- $(ACE_ROOT)/ace/SString.h \
- $(ACE_ROOT)/ace/SString.i \
- $(ACE_ROOT)/ace/Malloc_Base.h \
- $(ACE_ROOT)/ace/Log_Record.i \
- $(ACE_ROOT)/ace/Malloc.h \
- $(ACE_ROOT)/ace/Malloc.i \
- $(ACE_ROOT)/ace/Malloc_T.h \
- $(ACE_ROOT)/ace/Synch.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \
- $(ACE_ROOT)/ace/Synch.i \
- $(ACE_ROOT)/ace/Synch_T.h \
- $(ACE_ROOT)/ace/Event_Handler.h \
- $(ACE_ROOT)/ace/Event_Handler.i \
- $(ACE_ROOT)/ace/Synch_T.i \
- $(ACE_ROOT)/ace/Thread.h \
- $(ACE_ROOT)/ace/Thread.i \
- $(ACE_ROOT)/ace/Atomic_Op.i \
- $(ACE_ROOT)/ace/Synch_T.cpp \
- $(ACE_ROOT)/ace/Free_List.h \
- $(ACE_ROOT)/ace/Free_List.i \
- $(ACE_ROOT)/ace/Free_List.cpp \
- $(ACE_ROOT)/ace/Malloc_T.i \
- $(ACE_ROOT)/ace/Malloc_T.cpp \
- $(ACE_ROOT)/ace/Memory_Pool.h \
- $(ACE_ROOT)/ace/Signal.h \
- $(ACE_ROOT)/ace/Containers.h \
- $(ACE_ROOT)/ace/Containers.i \
- $(ACE_ROOT)/ace/Containers_T.h \
- $(ACE_ROOT)/ace/Containers_T.i \
- $(ACE_ROOT)/ace/Containers_T.cpp \
- $(ACE_ROOT)/ace/Signal.i \
- $(ACE_ROOT)/ace/Object_Manager.h \
- $(ACE_ROOT)/ace/Object_Manager.i \
- $(ACE_ROOT)/ace/Managed_Object.h \
- $(ACE_ROOT)/ace/Managed_Object.i \
- $(ACE_ROOT)/ace/Managed_Object.cpp \
- $(ACE_ROOT)/ace/Mem_Map.h \
- $(ACE_ROOT)/ace/Mem_Map.i \
- $(ACE_ROOT)/ace/Memory_Pool.i \
- $(ACE_ROOT)/ace/Read_Buffer.i \
- $(ACE_ROOT)/ace/Get_Opt.h \
- $(ACE_ROOT)/ace/Get_Opt.i options.h \
- $(ACE_ROOT)/ace/Singleton.h \
- $(ACE_ROOT)/ace/Singleton.i \
- $(ACE_ROOT)/ace/Singleton.cpp \
- $(TAO_ROOT)/tao/corba.h \
- $(TAO_ROOT)/tao/corbafwd.h \
- $(ACE_ROOT)/ace/CDR_Stream.h \
- $(ACE_ROOT)/ace/Message_Block.h \
- $(ACE_ROOT)/ace/Message_Block.i \
- $(ACE_ROOT)/ace/Message_Block_T.h \
- $(ACE_ROOT)/ace/Message_Block_T.i \
- $(ACE_ROOT)/ace/Message_Block_T.cpp \
- $(ACE_ROOT)/ace/CDR_Stream.i \
- $(TAO_ROOT)/tao/try_macros.h \
- $(TAO_ROOT)/tao/orbconf.h \
- $(ACE_ROOT)/ace/CORBA_macros.h \
- $(TAO_ROOT)/tao/Environment.h \
- $(TAO_ROOT)/tao/Environment.i \
- $(TAO_ROOT)/tao/ORB.h \
- $(TAO_ROOT)/tao/Exception.h \
- $(TAO_ROOT)/tao/Exception.i \
- $(TAO_ROOT)/tao/ORB.i \
- $(TAO_ROOT)/tao/Any.h \
- $(TAO_ROOT)/tao/CDR.h \
- $(TAO_ROOT)/tao/Typecode.h \
- $(TAO_ROOT)/tao/Typecode.i \
- $(TAO_ROOT)/tao/CDR.i \
- $(TAO_ROOT)/tao/Any.i \
- $(TAO_ROOT)/tao/NVList.h \
- $(TAO_ROOT)/tao/NVList.i \
- $(TAO_ROOT)/tao/Principal.h \
- $(TAO_ROOT)/tao/Sequence.h \
- $(TAO_ROOT)/tao/Managed_Types.h \
- $(TAO_ROOT)/tao/Managed_Types.i \
- $(TAO_ROOT)/tao/Sequence.i \
- $(TAO_ROOT)/tao/Principal.i \
- $(TAO_ROOT)/tao/Request.h \
- $(TAO_ROOT)/tao/Request.i \
- $(TAO_ROOT)/tao/Server_Request.h \
- $(TAO_ROOT)/tao/Object_KeyC.h \
- $(TAO_ROOT)/tao/Object_KeyC.i \
- $(TAO_ROOT)/tao/GIOP.h \
- $(TAO_ROOT)/tao/Sequence_T.h \
- $(TAO_ROOT)/tao/Sequence_T.i \
- $(TAO_ROOT)/tao/Sequence_T.cpp \
- $(TAO_ROOT)/tao/GIOP.i \
- $(TAO_ROOT)/tao/Object.h \
- $(TAO_ROOT)/tao/Object.i \
- $(TAO_ROOT)/tao/Server_Request.i \
- $(TAO_ROOT)/tao/varout.h \
- $(TAO_ROOT)/tao/varout.i \
- $(TAO_ROOT)/tao/varout.cpp \
- $(TAO_ROOT)/tao/Marshal.h \
- $(TAO_ROOT)/tao/Marshal.i \
- $(TAO_ROOT)/tao/singletons.h \
- $(TAO_ROOT)/tao/PolicyC.h \
- $(TAO_ROOT)/tao/PolicyC.i \
- $(TAO_ROOT)/tao/CurrentC.h \
- $(TAO_ROOT)/tao/CurrentC.i \
- $(TAO_ROOT)/tao/POA.h \
- $(ACE_ROOT)/ace/Hash_Map_Manager.h \
- $(ACE_ROOT)/ace/Functor.h \
- $(ACE_ROOT)/ace/Functor.i \
- $(ACE_ROOT)/ace/Functor_T.h \
- $(ACE_ROOT)/ace/Functor_T.i \
- $(ACE_ROOT)/ace/Functor_T.cpp \
- $(ACE_ROOT)/ace/Hash_Map_Manager.i \
- $(ACE_ROOT)/ace/Hash_Map_Manager_T.h \
- $(ACE_ROOT)/ace/Hash_Map_Manager_T.i \
- $(ACE_ROOT)/ace/Hash_Map_Manager_T.cpp \
- $(ACE_ROOT)/ace/Service_Config.h \
- $(ACE_ROOT)/ace/Service_Object.h \
- $(ACE_ROOT)/ace/Shared_Object.h \
- $(ACE_ROOT)/ace/Shared_Object.i \
- $(ACE_ROOT)/ace/Service_Object.i \
- $(ACE_ROOT)/ace/Service_Config.i \
- $(ACE_ROOT)/ace/Reactor.h \
- $(ACE_ROOT)/ace/Handle_Set.h \
- $(ACE_ROOT)/ace/Handle_Set.i \
- $(ACE_ROOT)/ace/Timer_Queue.h \
- $(ACE_ROOT)/ace/Timer_Queue_T.h \
- $(ACE_ROOT)/ace/Timer_Queue_T.i \
- $(ACE_ROOT)/ace/Timer_Queue_T.cpp \
- $(ACE_ROOT)/ace/Reactor.i \
- $(ACE_ROOT)/ace/Reactor_Impl.h \
- $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \
- $(TAO_ROOT)/tao/POAC.h \
- $(TAO_ROOT)/tao/POAC.i \
- $(TAO_ROOT)/tao/Servant_Base.h \
- $(TAO_ROOT)/tao/Servant_Base.i \
- $(TAO_ROOT)/tao/POAS.h \
- $(TAO_ROOT)/tao/POA_CORBA.h \
- $(TAO_ROOT)/tao/DynAnyC.h \
- $(TAO_ROOT)/tao/DynAnyC.i \
- $(TAO_ROOT)/tao/POAS.i \
- $(TAO_ROOT)/tao/Active_Object_Map.h \
- $(TAO_ROOT)/tao/Active_Object_Map.i \
- $(TAO_ROOT)/tao/POA.i \
- $(TAO_ROOT)/tao/poa_macros.h \
- $(TAO_ROOT)/tao/Stub.h \
- $(TAO_ROOT)/tao/Pluggable.h \
- $(TAO_ROOT)/tao/MProfile.h \
- $(TAO_ROOT)/tao/MProfile.i \
- $(TAO_ROOT)/tao/Stub.i \
- $(TAO_ROOT)/tao/params.h \
- $(ACE_ROOT)/ace/INET_Addr.h \
- $(ACE_ROOT)/ace/Addr.h \
- $(ACE_ROOT)/ace/Addr.i \
- $(ACE_ROOT)/ace/INET_Addr.i \
- $(TAO_ROOT)/tao/params.i \
- $(TAO_ROOT)/tao/ORB_Core.h \
- $(ACE_ROOT)/ace/Strategies_T.h \
- $(ACE_ROOT)/ace/Strategies.h \
- $(ACE_ROOT)/ace/Strategies.i \
- $(ACE_ROOT)/ace/Synch_Options.h \
- $(ACE_ROOT)/ace/Synch_Options.i \
- $(ACE_ROOT)/ace/Thread_Manager.h \
- $(ACE_ROOT)/ace/Thread_Manager.i \
- $(ACE_ROOT)/ace/Strategies_T.i \
- $(ACE_ROOT)/ace/Strategies_T.cpp \
- $(ACE_ROOT)/ace/Service_Repository.h \
- $(ACE_ROOT)/ace/Service_Types.h \
- $(ACE_ROOT)/ace/Service_Types.i \
- $(ACE_ROOT)/ace/Service_Repository.i \
- $(ACE_ROOT)/ace/WFMO_Reactor.h \
- $(ACE_ROOT)/ace/Message_Queue.h \
- $(ACE_ROOT)/ace/IO_Cntl_Msg.h \
- $(ACE_ROOT)/ace/Message_Queue_T.h \
- $(ACE_ROOT)/ace/Message_Queue_T.i \
- $(ACE_ROOT)/ace/Message_Queue_T.cpp \
- $(ACE_ROOT)/ace/Message_Queue.i \
- $(ACE_ROOT)/ace/WFMO_Reactor.i \
- $(TAO_ROOT)/tao/IIOP_Connector.h \
- $(ACE_ROOT)/ace/Connector.h \
- $(ACE_ROOT)/ace/Map_Manager.h \
- $(ACE_ROOT)/ace/Map_Manager.i \
- $(ACE_ROOT)/ace/Map_Manager.cpp \
- $(ACE_ROOT)/ace/Svc_Handler.h \
- $(ACE_ROOT)/ace/Task.h \
- $(ACE_ROOT)/ace/Task.i \
- $(ACE_ROOT)/ace/Task_T.h \
- $(ACE_ROOT)/ace/Task_T.i \
- $(ACE_ROOT)/ace/Task_T.cpp \
- $(ACE_ROOT)/ace/Module.h \
- $(ACE_ROOT)/ace/Module.i \
- $(ACE_ROOT)/ace/Module.cpp \
- $(ACE_ROOT)/ace/Stream_Modules.h \
- $(ACE_ROOT)/ace/Stream_Modules.i \
- $(ACE_ROOT)/ace/Stream_Modules.cpp \
- $(ACE_ROOT)/ace/Svc_Handler.i \
- $(ACE_ROOT)/ace/Svc_Handler.cpp \
- $(ACE_ROOT)/ace/Dynamic.h \
- $(ACE_ROOT)/ace/Dynamic.i \
- $(ACE_ROOT)/ace/Connector.i \
- $(ACE_ROOT)/ace/Connector.cpp \
- $(ACE_ROOT)/ace/SOCK_Connector.h \
- $(ACE_ROOT)/ace/SOCK_Stream.h \
- $(ACE_ROOT)/ace/SOCK_IO.h \
- $(ACE_ROOT)/ace/SOCK.h \
- $(ACE_ROOT)/ace/IPC_SAP.h \
- $(ACE_ROOT)/ace/IPC_SAP.i \
- $(ACE_ROOT)/ace/SOCK.i \
- $(ACE_ROOT)/ace/SOCK_IO.i \
- $(ACE_ROOT)/ace/SOCK_Stream.i \
- $(ACE_ROOT)/ace/Time_Value.h \
- $(ACE_ROOT)/ace/SOCK_Connector.i \
- $(TAO_ROOT)/tao/Connect.h \
- $(ACE_ROOT)/ace/Acceptor.h \
- $(ACE_ROOT)/ace/Acceptor.i \
- $(ACE_ROOT)/ace/Acceptor.cpp \
- $(ACE_ROOT)/ace/SOCK_Acceptor.h \
- $(ACE_ROOT)/ace/SOCK_Acceptor.i \
- $(TAO_ROOT)/tao/Connect.i \
- $(TAO_ROOT)/tao/IIOP_Acceptor.h \
- $(TAO_ROOT)/tao/ORB_Core.i \
- $(ACE_ROOT)/ace/Dynamic_Service.h \
- $(ACE_ROOT)/ace/Dynamic_Service.cpp \
- $(TAO_ROOT)/tao/Operation_Table.h \
- $(TAO_ROOT)/tao/Client_Strategy_Factory.h \
- $(TAO_ROOT)/tao/Server_Strategy_Factory.h \
- $(TAO_ROOT)/tao/Invocation.h \
- $(TAO_ROOT)/tao/Invocation.i \
- $(TAO_ROOT)/tao/InconsistentTypeCodeC.h \
- $(TAO_ROOT)/tao/DynAny_i.h \
- $(TAO_ROOT)/tao/Union.h
-.obj/results.o .obj/results.so .shobj/results.o .shobj/results.so: results.cpp \
- $(ACE_ROOT)/ace/Log_Msg.h \
- $(ACE_ROOT)/ace/Log_Record.h \
- $(ACE_ROOT)/ace/ACE.h \
- $(ACE_ROOT)/ace/OS.h \
- $(ACE_ROOT)/ace/inc_user_config.h \
- $(ACE_ROOT)/ace/config.h \
- $(ACE_ROOT)/ace/config-sunos5.5.h \
- $(ACE_ROOT)/ace/config-g++-common.h \
- $(ACE_ROOT)/ace/streams.h \
- $(ACE_ROOT)/ace/Basic_Types.h \
- $(ACE_ROOT)/ace/Basic_Types.i \
- $(ACE_ROOT)/ace/OS.i \
- $(ACE_ROOT)/ace/Trace.h \
- $(ACE_ROOT)/ace/ACE.i \
- $(ACE_ROOT)/ace/Log_Priority.h \
- $(ACE_ROOT)/ace/SString.h \
- $(ACE_ROOT)/ace/SString.i \
- $(ACE_ROOT)/ace/Malloc_Base.h \
- $(ACE_ROOT)/ace/Log_Record.i results.h \
- $(TAO_ROOT)/tao/corba.h \
- $(TAO_ROOT)/tao/corbafwd.h \
- $(ACE_ROOT)/ace/CDR_Stream.h \
- $(ACE_ROOT)/ace/Message_Block.h \
- $(ACE_ROOT)/ace/Malloc.h \
- $(ACE_ROOT)/ace/Malloc.i \
- $(ACE_ROOT)/ace/Malloc_T.h \
- $(ACE_ROOT)/ace/Synch.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \
- $(ACE_ROOT)/ace/Synch.i \
- $(ACE_ROOT)/ace/Synch_T.h \
- $(ACE_ROOT)/ace/Event_Handler.h \
- $(ACE_ROOT)/ace/Event_Handler.i \
- $(ACE_ROOT)/ace/Synch_T.i \
- $(ACE_ROOT)/ace/Thread.h \
- $(ACE_ROOT)/ace/Thread.i \
- $(ACE_ROOT)/ace/Atomic_Op.i \
- $(ACE_ROOT)/ace/Synch_T.cpp \
- $(ACE_ROOT)/ace/Free_List.h \
- $(ACE_ROOT)/ace/Free_List.i \
- $(ACE_ROOT)/ace/Free_List.cpp \
- $(ACE_ROOT)/ace/Malloc_T.i \
- $(ACE_ROOT)/ace/Malloc_T.cpp \
- $(ACE_ROOT)/ace/Memory_Pool.h \
- $(ACE_ROOT)/ace/Signal.h \
- $(ACE_ROOT)/ace/Containers.h \
- $(ACE_ROOT)/ace/Containers.i \
- $(ACE_ROOT)/ace/Containers_T.h \
- $(ACE_ROOT)/ace/Containers_T.i \
- $(ACE_ROOT)/ace/Containers_T.cpp \
- $(ACE_ROOT)/ace/Signal.i \
- $(ACE_ROOT)/ace/Object_Manager.h \
- $(ACE_ROOT)/ace/Object_Manager.i \
- $(ACE_ROOT)/ace/Managed_Object.h \
- $(ACE_ROOT)/ace/Managed_Object.i \
- $(ACE_ROOT)/ace/Managed_Object.cpp \
- $(ACE_ROOT)/ace/Mem_Map.h \
- $(ACE_ROOT)/ace/Mem_Map.i \
- $(ACE_ROOT)/ace/Memory_Pool.i \
- $(ACE_ROOT)/ace/Message_Block.i \
- $(ACE_ROOT)/ace/Message_Block_T.h \
- $(ACE_ROOT)/ace/Message_Block_T.i \
- $(ACE_ROOT)/ace/Message_Block_T.cpp \
- $(ACE_ROOT)/ace/CDR_Stream.i \
- $(TAO_ROOT)/tao/try_macros.h \
- $(TAO_ROOT)/tao/orbconf.h \
- $(ACE_ROOT)/ace/CORBA_macros.h \
- $(TAO_ROOT)/tao/Environment.h \
- $(TAO_ROOT)/tao/Environment.i \
- $(TAO_ROOT)/tao/ORB.h \
- $(TAO_ROOT)/tao/Exception.h \
- $(TAO_ROOT)/tao/Exception.i \
- $(TAO_ROOT)/tao/ORB.i \
- $(TAO_ROOT)/tao/Any.h \
- $(TAO_ROOT)/tao/CDR.h \
- $(TAO_ROOT)/tao/Typecode.h \
- $(TAO_ROOT)/tao/Typecode.i \
- $(TAO_ROOT)/tao/CDR.i \
- $(TAO_ROOT)/tao/Any.i \
- $(TAO_ROOT)/tao/NVList.h \
- $(TAO_ROOT)/tao/NVList.i \
- $(TAO_ROOT)/tao/Principal.h \
- $(TAO_ROOT)/tao/Sequence.h \
- $(TAO_ROOT)/tao/Managed_Types.h \
- $(TAO_ROOT)/tao/Managed_Types.i \
- $(TAO_ROOT)/tao/Sequence.i \
- $(TAO_ROOT)/tao/Principal.i \
- $(TAO_ROOT)/tao/Request.h \
- $(TAO_ROOT)/tao/Request.i \
- $(TAO_ROOT)/tao/Server_Request.h \
- $(TAO_ROOT)/tao/Object_KeyC.h \
- $(TAO_ROOT)/tao/Object_KeyC.i \
- $(TAO_ROOT)/tao/GIOP.h \
- $(TAO_ROOT)/tao/Sequence_T.h \
- $(TAO_ROOT)/tao/Sequence_T.i \
- $(TAO_ROOT)/tao/Sequence_T.cpp \
- $(TAO_ROOT)/tao/GIOP.i \
- $(TAO_ROOT)/tao/Object.h \
- $(TAO_ROOT)/tao/Object.i \
- $(TAO_ROOT)/tao/Server_Request.i \
- $(TAO_ROOT)/tao/varout.h \
- $(TAO_ROOT)/tao/varout.i \
- $(TAO_ROOT)/tao/varout.cpp \
- $(TAO_ROOT)/tao/Marshal.h \
- $(TAO_ROOT)/tao/Marshal.i \
- $(TAO_ROOT)/tao/singletons.h \
- $(ACE_ROOT)/ace/Singleton.h \
- $(ACE_ROOT)/ace/Singleton.i \
- $(ACE_ROOT)/ace/Singleton.cpp \
- $(TAO_ROOT)/tao/PolicyC.h \
- $(TAO_ROOT)/tao/PolicyC.i \
- $(TAO_ROOT)/tao/CurrentC.h \
- $(TAO_ROOT)/tao/CurrentC.i \
- $(TAO_ROOT)/tao/POA.h \
- $(ACE_ROOT)/ace/Hash_Map_Manager.h \
- $(ACE_ROOT)/ace/Functor.h \
- $(ACE_ROOT)/ace/Functor.i \
- $(ACE_ROOT)/ace/Functor_T.h \
- $(ACE_ROOT)/ace/Functor_T.i \
- $(ACE_ROOT)/ace/Functor_T.cpp \
- $(ACE_ROOT)/ace/Hash_Map_Manager.i \
- $(ACE_ROOT)/ace/Hash_Map_Manager_T.h \
- $(ACE_ROOT)/ace/Hash_Map_Manager_T.i \
- $(ACE_ROOT)/ace/Hash_Map_Manager_T.cpp \
- $(ACE_ROOT)/ace/Service_Config.h \
- $(ACE_ROOT)/ace/Service_Object.h \
- $(ACE_ROOT)/ace/Shared_Object.h \
- $(ACE_ROOT)/ace/Shared_Object.i \
- $(ACE_ROOT)/ace/Service_Object.i \
- $(ACE_ROOT)/ace/Service_Config.i \
- $(ACE_ROOT)/ace/Reactor.h \
- $(ACE_ROOT)/ace/Handle_Set.h \
- $(ACE_ROOT)/ace/Handle_Set.i \
- $(ACE_ROOT)/ace/Timer_Queue.h \
- $(ACE_ROOT)/ace/Timer_Queue_T.h \
- $(ACE_ROOT)/ace/Timer_Queue_T.i \
- $(ACE_ROOT)/ace/Timer_Queue_T.cpp \
- $(ACE_ROOT)/ace/Reactor.i \
- $(ACE_ROOT)/ace/Reactor_Impl.h \
- $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \
- $(TAO_ROOT)/tao/POAC.h \
- $(TAO_ROOT)/tao/POAC.i \
- $(TAO_ROOT)/tao/Servant_Base.h \
- $(TAO_ROOT)/tao/Servant_Base.i \
- $(TAO_ROOT)/tao/POAS.h \
- $(TAO_ROOT)/tao/POA_CORBA.h \
- $(TAO_ROOT)/tao/DynAnyC.h \
- $(TAO_ROOT)/tao/DynAnyC.i \
- $(TAO_ROOT)/tao/POAS.i \
- $(TAO_ROOT)/tao/Active_Object_Map.h \
- $(TAO_ROOT)/tao/Active_Object_Map.i \
- $(TAO_ROOT)/tao/POA.i \
- $(TAO_ROOT)/tao/poa_macros.h \
- $(TAO_ROOT)/tao/Stub.h \
- $(TAO_ROOT)/tao/Pluggable.h \
- $(TAO_ROOT)/tao/MProfile.h \
- $(TAO_ROOT)/tao/MProfile.i \
- $(TAO_ROOT)/tao/Stub.i \
- $(TAO_ROOT)/tao/params.h \
- $(ACE_ROOT)/ace/INET_Addr.h \
- $(ACE_ROOT)/ace/Addr.h \
- $(ACE_ROOT)/ace/Addr.i \
- $(ACE_ROOT)/ace/INET_Addr.i \
- $(TAO_ROOT)/tao/params.i \
- $(TAO_ROOT)/tao/ORB_Core.h \
- $(ACE_ROOT)/ace/Strategies_T.h \
- $(ACE_ROOT)/ace/Strategies.h \
- $(ACE_ROOT)/ace/Strategies.i \
- $(ACE_ROOT)/ace/Synch_Options.h \
- $(ACE_ROOT)/ace/Synch_Options.i \
- $(ACE_ROOT)/ace/Thread_Manager.h \
- $(ACE_ROOT)/ace/Thread_Manager.i \
- $(ACE_ROOT)/ace/Strategies_T.i \
- $(ACE_ROOT)/ace/Strategies_T.cpp \
- $(ACE_ROOT)/ace/Service_Repository.h \
- $(ACE_ROOT)/ace/Service_Types.h \
- $(ACE_ROOT)/ace/Service_Types.i \
- $(ACE_ROOT)/ace/Service_Repository.i \
- $(ACE_ROOT)/ace/WFMO_Reactor.h \
- $(ACE_ROOT)/ace/Message_Queue.h \
- $(ACE_ROOT)/ace/IO_Cntl_Msg.h \
- $(ACE_ROOT)/ace/Message_Queue_T.h \
- $(ACE_ROOT)/ace/Message_Queue_T.i \
- $(ACE_ROOT)/ace/Message_Queue_T.cpp \
- $(ACE_ROOT)/ace/Message_Queue.i \
- $(ACE_ROOT)/ace/WFMO_Reactor.i \
- $(TAO_ROOT)/tao/IIOP_Connector.h \
- $(ACE_ROOT)/ace/Connector.h \
- $(ACE_ROOT)/ace/Map_Manager.h \
- $(ACE_ROOT)/ace/Map_Manager.i \
- $(ACE_ROOT)/ace/Map_Manager.cpp \
- $(ACE_ROOT)/ace/Svc_Handler.h \
- $(ACE_ROOT)/ace/Task.h \
- $(ACE_ROOT)/ace/Task.i \
- $(ACE_ROOT)/ace/Task_T.h \
- $(ACE_ROOT)/ace/Task_T.i \
- $(ACE_ROOT)/ace/Task_T.cpp \
- $(ACE_ROOT)/ace/Module.h \
- $(ACE_ROOT)/ace/Module.i \
- $(ACE_ROOT)/ace/Module.cpp \
- $(ACE_ROOT)/ace/Stream_Modules.h \
- $(ACE_ROOT)/ace/Stream_Modules.i \
- $(ACE_ROOT)/ace/Stream_Modules.cpp \
- $(ACE_ROOT)/ace/Svc_Handler.i \
- $(ACE_ROOT)/ace/Svc_Handler.cpp \
- $(ACE_ROOT)/ace/Dynamic.h \
- $(ACE_ROOT)/ace/Dynamic.i \
- $(ACE_ROOT)/ace/Connector.i \
- $(ACE_ROOT)/ace/Connector.cpp \
- $(ACE_ROOT)/ace/SOCK_Connector.h \
- $(ACE_ROOT)/ace/SOCK_Stream.h \
- $(ACE_ROOT)/ace/SOCK_IO.h \
- $(ACE_ROOT)/ace/SOCK.h \
- $(ACE_ROOT)/ace/IPC_SAP.h \
- $(ACE_ROOT)/ace/IPC_SAP.i \
- $(ACE_ROOT)/ace/SOCK.i \
- $(ACE_ROOT)/ace/SOCK_IO.i \
- $(ACE_ROOT)/ace/SOCK_Stream.i \
- $(ACE_ROOT)/ace/Time_Value.h \
- $(ACE_ROOT)/ace/SOCK_Connector.i \
- $(TAO_ROOT)/tao/Connect.h \
- $(ACE_ROOT)/ace/Acceptor.h \
- $(ACE_ROOT)/ace/Acceptor.i \
- $(ACE_ROOT)/ace/Acceptor.cpp \
- $(ACE_ROOT)/ace/SOCK_Acceptor.h \
- $(ACE_ROOT)/ace/SOCK_Acceptor.i \
- $(TAO_ROOT)/tao/Connect.i \
- $(TAO_ROOT)/tao/IIOP_Acceptor.h \
- $(TAO_ROOT)/tao/ORB_Core.i \
- $(ACE_ROOT)/ace/Dynamic_Service.h \
- $(ACE_ROOT)/ace/Dynamic_Service.cpp \
- $(TAO_ROOT)/tao/Operation_Table.h \
- $(TAO_ROOT)/tao/Client_Strategy_Factory.h \
- $(TAO_ROOT)/tao/Server_Strategy_Factory.h \
- $(TAO_ROOT)/tao/Invocation.h \
- $(TAO_ROOT)/tao/Invocation.i \
- $(TAO_ROOT)/tao/InconsistentTypeCodeC.h \
- $(TAO_ROOT)/tao/DynAny_i.h \
- $(TAO_ROOT)/tao/Union.h \
- $(ACE_ROOT)/ace/Profile_Timer.h \
- $(ACE_ROOT)/ace/High_Res_Timer.h \
- $(ACE_ROOT)/ace/High_Res_Timer.i \
- $(ACE_ROOT)/ace/Profile_Timer.i
-.obj/helper.o .obj/helper.so .shobj/helper.o .shobj/helper.so: helper.cpp helper.h param_testCli.h param_testCli.i
-.obj/tmplinst.o .obj/tmplinst.so .shobj/tmplinst.o .shobj/tmplinst.so: tmplinst.cpp param_testCli.h param_testCli.i
-.obj/any.o .obj/any.so .shobj/any.o .shobj/any.so: any.cpp helper.h param_testCli.h param_testCli.i any.h
-.obj/bd_long_seq.o .obj/bd_long_seq.so .shobj/bd_long_seq.o .shobj/bd_long_seq.so: bd_long_seq.cpp helper.h param_testCli.h \
- param_testCli.i bd_long_seq.h
-.obj/bd_short_seq.o .obj/bd_short_seq.so .shobj/bd_short_seq.o .shobj/bd_short_seq.so: bd_short_seq.cpp helper.h param_testCli.h \
- param_testCli.i bd_short_seq.h
-.obj/bd_str_seq.o .obj/bd_str_seq.so .shobj/bd_str_seq.o .shobj/bd_str_seq.so: bd_str_seq.cpp helper.h param_testCli.h param_testCli.i \
- bd_str_seq.h
-.obj/bd_string.o .obj/bd_string.so .shobj/bd_string.o .shobj/bd_string.so: bd_string.cpp helper.h param_testCli.h param_testCli.i \
- bd_string.h
-.obj/bd_struct_seq.o .obj/bd_struct_seq.so .shobj/bd_struct_seq.o .shobj/bd_struct_seq.so: bd_struct_seq.cpp helper.h param_testCli.h \
- param_testCli.i bd_struct_seq.h
-.obj/fixed_array.o .obj/fixed_array.so .shobj/fixed_array.o .shobj/fixed_array.so: fixed_array.cpp helper.h param_testCli.h \
- param_testCli.i fixed_array.h
-.obj/fixed_struct.o .obj/fixed_struct.so .shobj/fixed_struct.o .shobj/fixed_struct.so: fixed_struct.cpp helper.h param_testCli.h \
- param_testCli.i fixed_struct.h
-.obj/nested_struct.o .obj/nested_struct.so .shobj/nested_struct.o .shobj/nested_struct.so: nested_struct.cpp helper.h param_testCli.h \
- param_testCli.i nested_struct.h
-.obj/objref_struct.o .obj/objref_struct.so .shobj/objref_struct.o .shobj/objref_struct.so: objref_struct.cpp helper.h param_testCli.h \
- param_testCli.i objref_struct.h
-.obj/objref.o .obj/objref.so .shobj/objref.o .shobj/objref.so: objref.cpp helper.h param_testCli.h param_testCli.i objref.h
-.obj/short.o .obj/short.so .shobj/short.o .shobj/short.so: short.cpp helper.h param_testCli.h param_testCli.i short.h
-.obj/ulonglong.o .obj/ulonglong.so .shobj/ulonglong.o .shobj/ulonglong.so: ulonglong.cpp helper.h param_testCli.h param_testCli.i \
- ulonglong.h
-.obj/typecode.o .obj/typecode.so .shobj/typecode.o .shobj/typecode.so: typecode.cpp helper.h param_testCli.h param_testCli.i \
- typecode.h
-.obj/ub_any_seq.o .obj/ub_any_seq.so .shobj/ub_any_seq.o .shobj/ub_any_seq.so: ub_any_seq.cpp helper.h param_testCli.h param_testCli.i \
- ub_any_seq.h
-.obj/ub_long_seq.o .obj/ub_long_seq.so .shobj/ub_long_seq.o .shobj/ub_long_seq.so: ub_long_seq.cpp helper.h param_testCli.h \
- param_testCli.i ub_long_seq.h
-.obj/ub_objref_seq.o .obj/ub_objref_seq.so .shobj/ub_objref_seq.o .shobj/ub_objref_seq.so: ub_objref_seq.cpp helper.h param_testCli.h \
- param_testCli.i ub_objref_seq.h
-.obj/ub_short_seq.o .obj/ub_short_seq.so .shobj/ub_short_seq.o .shobj/ub_short_seq.so: ub_short_seq.cpp helper.h param_testCli.h \
- param_testCli.i ub_short_seq.h
-.obj/ub_str_seq.o .obj/ub_str_seq.so .shobj/ub_str_seq.o .shobj/ub_str_seq.so: ub_str_seq.cpp helper.h param_testCli.h param_testCli.i \
- ub_str_seq.h
-.obj/ub_string.o .obj/ub_string.so .shobj/ub_string.o .shobj/ub_string.so: ub_string.cpp helper.h param_testCli.h param_testCli.i \
- ub_string.h
-.obj/ub_struct_seq.o .obj/ub_struct_seq.so .shobj/ub_struct_seq.o .shobj/ub_struct_seq.so: ub_struct_seq.cpp helper.h param_testCli.h \
- param_testCli.i ub_struct_seq.h
-.obj/var_array.o .obj/var_array.so .shobj/var_array.o .shobj/var_array.so: var_array.cpp helper.h param_testCli.h param_testCli.i \
- var_array.h
-.obj/var_struct.o .obj/var_struct.so .shobj/var_struct.o .shobj/var_struct.so: var_struct.cpp helper.h param_testCli.h param_testCli.i \
- var_struct.h
-.obj/except.o .obj/except.so .shobj/except.o .shobj/except.so: except.cpp helper.h param_testCli.h param_testCli.i except.h
-.obj/big_union.o .obj/big_union.so .shobj/big_union.o .shobj/big_union.so: big_union.cpp helper.h param_testCli.h param_testCli.i \
- big_union.h
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
diff --git a/TAO/tests/Param_Test/Param_Test.dsw b/TAO/tests/Param_Test/Param_Test.dsw
deleted file mode 100644
index d17cf7c9604..00000000000
--- a/TAO/tests/Param_Test/Param_Test.dsw
+++ /dev/null
@@ -1,41 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "client"=.\client.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "server"=.\server.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/TAO/tests/Param_Test/README b/TAO/tests/Param_Test/README
deleted file mode 100644
index d1aab93a07e..00000000000
--- a/TAO/tests/Param_Test/README
+++ /dev/null
@@ -1,98 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// README
-//
-// = AUTHOR
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-This directory contains an application that tests all the parameter
-passing conventions in CORBA for a number of OMG IDL data types.
-
-Type "make" to make the application. The server executable is called
-"server" and the client executable is called "client".
-
-You should have the TAO IDL compiler and the TAO library installed
-before using this application.
-
-To run the server, type
-
- server [arguments to ORB_init] [-d] [-o <ior_output_file>]
-
- arguments to ORB_init start with the letters -ORB. Please
- see TAO documentattion on all the supported arguments
-
- -d for debugging.
- -o <ior_output_file> for outputting the servant IOR to a file.
-
-To run the client, type
-
- client [arguments to ORB_init] [options for this application]
-
- Supported options are:
-
- [-d] debugging
- [-n loopcount] number of times to run the test
- [-f servant-IOR-file] reads the servant-IOR from the
- specified file.
- [-k Param_Test-obj-ref-key] object key of Param_Test object
- [-i invocation (sii/dii)] default is static invocation
- interface. To use DII, type
- -i dii
- [-t data type]
- Data types supported in this version are:
-
- short for shorts
- ulonglong for unsigned long long
- ubstring for unbounded string
- bdstring for bounded string
- fixed_struct for fixed sized structs
- ub_strseq for sequences of strings
- bd_strseq for bounded sequences of strings
- var_struct for variable structs
- nested_struct for nested structs
- objref_struct for object references inside structures
- ub_struct_seq for sequences of structs
- bd_struct_seq for bounded sequences of structs
- any for Any
- objref for object references
- objref_sequence for sequences object references
- any_sequence for sequences of Any
- ub_short_sequence for sequences of shorts
- ub_long_sequence for sequences of shorts
- bd_short_sequence for bounded sequences of shorts
- bd_long_sequence for bounded sequences of shorts
- fixed_array for arrays of fixed sized types (longs)
- var_array for arrays of var sized types (strings)
- typecode for typecode
- exception for exceptions
-
-
- There are 2 options of giving the Param_obj-ref-key i.e IOR to
-the client:
-
- 1. Using the -f option to read the IOR from a file.
-
- 2. Using the -k option to read the IOR from the
- command line.
-
-run_test.pl:
------------
- There is a perl script in this directory named run_test.pl to
- test all the types. It starts the server first and then runs
- the client with the different data type parameters. The
- arguments it takes are:
-
- -n num -- runs the client num times (default is 5)
- -d -- runs each in debug mode
- -onewin -- keeps all tests in one window on NT
- -h -- prints this information
- -t type -- runs only one type of param test
- -i (dii|sii) -- Changes the type of invocation (default is sii)
diff --git a/TAO/tests/Param_Test/any.cpp b/TAO/tests/Param_Test/any.cpp
deleted file mode 100644
index 354d009c6bb..00000000000
--- a/TAO/tests/Param_Test/any.cpp
+++ /dev/null
@@ -1,323 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// any.cpp
-//
-// = DESCRIPTION
-// tests Anys
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "helper.h"
-#include "any.h"
-
-ACE_RCSID(Param_Test, any, "$Id$")
-
-// ************************************************************************
-// Test_Any
-// ************************************************************************
-
-size_t Test_Any::counter = 0;
-
-Test_Any::Test_Any (void)
- : opname_ (CORBA::string_dup ("test_any")),
- out_ (new CORBA::Any),
- ret_ (new CORBA::Any)
-{
-}
-
-Test_Any::~Test_Any (void)
-{
- CORBA::string_free (this->opname_);
- this->opname_ = 0;
-}
-
-const char *
-Test_Any::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_Any::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-#if 0 /* any_table isn't currently used */
-static const CORBA::TypeCode_ptr any_table [] =
-{
- // primitive parameterless typecodes
- CORBA::_tc_short,
- // typecode with a simple parameter
- CORBA::_tc_string,
- // complex typecodes
- _tc_Coffee,
- Param_Test::_tc_StrSeq,
- Param_Test::_tc_StructSeq,
- Param_Test::_tc_Nested_Struct
-};
-#endif /* any_table isn't currently used */
-
-int
-Test_Any::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- TAO_TRY
- {
- // get access to a Coffee Object
- this->cobj_ = objref->make_coffee (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- }
- TAO_CATCH (CORBA::SystemException, sysex)
- {
- ACE_UNUSED_ARG (sysex);
- TAO_TRY_ENV.print_exception ("System Exception doing make_coffee");
- return -1;
- }
- TAO_ENDTRY;
-
- this->reset_parameters ();
- return 0;
-}
-
-int
-Test_Any::reset_parameters (void)
-{
- Generator *gen = GENERATOR::instance (); // value generator
- CORBA::ULong index = (counter++ % Test_Any::ANY_LAST_TEST_ITEM);
-
- switch (index)
- {
- case Test_Any::ANY_SHORT:
- {
- CORBA::Short s;
- s = gen->gen_short ();
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "setting short = %d\n", s));
- this->in_ <<= s;
- this->inout_ <<= s;
- }
- break;
- case Test_Any::ANY_STRING:
- {
- char *str = gen->gen_string ();
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "setting string = %s\n", str));
- this->in_ <<= str;
- this->inout_ <<= str;
- }
- break;
- case Test_Any::ANY_OBJREF:
- {
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "Testing any with Coffee object.\n"));
-
- // insert the coffee object into the Any
- this->in_ <<= this->cobj_.in ();
- this->inout_ <<= this->cobj_.in ();
- }
- break;
- case Test_Any::ANY_ARRAY:
- // test array
- {
- Param_Test::Fixed_Array array;
- for (size_t i = 0; i < Param_Test::DIM1; i++)
- array[i] = i;
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "Setting Fixed_Array\n"));
- this->in_ <<= Param_Test::Fixed_Array_forany (array);
- this->inout_ <<= Param_Test::Fixed_Array_forany (array);
- }
- break;
- case Test_Any::ANY_BD_SHORT_SEQ:
- {
- Param_Test::Bounded_Short_Seq seq;
- seq.length (gen->gen_short () % seq.maximum ());
- for (size_t i = 0; i < seq.length (); i++)
- seq[i] = gen->gen_short ();
- this->in_ <<= seq;
- this->inout_ <<= seq;
- }
- break;
- case Test_Any::ANY_STRUCT:
- {
- Param_Test::Fixed_Struct structure;
- structure = gen->gen_fixed_struct ();
- this->in_ <<= structure;
- this->inout_ <<= structure;
- }
- break;
- }
- return 0;
-}
-
-int
-Test_Any::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- CORBA::Any_out out (this->out_.out ());
- this->ret_ = objref->test_any (this->in_,
- this->inout_,
- out,
- env);
- return (env.exception () ? -1:0);
-}
-
-int
-Test_Any::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- CORBA::Any in_arg (CORBA::_tc_any,
- &this->in_,
- 0);
-
- CORBA::Any inout_arg (CORBA::_tc_any,
- &this->inout_,
- 0);
-
- CORBA::Any out_arg (CORBA::_tc_any,
- &this->out_.inout (), // .out () causes crash
- 0);
-
- // add parameters
- param_list->add_value ("o1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("o2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("o3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value
- retval->item (0, env)->value ()->replace (CORBA::_tc_any,
- &this->ret_.inout (), // see above
- 0, // does not own
- env);
- return 0;
-}
-
-CORBA::Boolean
-Test_Any::check_validity (void)
-{
- CORBA::Short short_in, short_inout, short_out, short_ret;
- char *str_in, *str_inout, *str_out, *str_ret;
- Coffee_ptr obj_in, obj_inout, obj_out, obj_ret;
- Param_Test::Fixed_Array_forany array_in, array_inout, array_out, array_ret;
- Param_Test::Bounded_Short_Seq *bdss_in, *bdss_inout, *bdss_out, *bdss_ret;
- Param_Test::Fixed_Struct *fs_in, *fs_inout, *fs_out, *fs_ret;
-
- if ((this->in_ >>= short_in) &&
- (this->inout_ >>= short_inout) &&
- (this->out_.in () >>= short_out) &&
- (this->ret_.in () >>= short_ret))
- {
- ACE_DEBUG ((LM_DEBUG, "Received shorts: in = %d, "
- "inout = %d, out = %d, ret = %d\n",
- short_in, short_inout, short_out, short_ret));
-
- if ((short_in == short_inout) &&
- (short_in == short_out) &&
- (short_in == short_ret))
- return 1;
- else
- {
- ACE_DEBUG ((LM_DEBUG, "mismatch of short values\n"));
- return 0;
- }
- }
- else if ((this->in_ >>= str_in) &&
- (this->inout_ >>= str_inout) &&
- (this->out_.in () >>= str_out) &&
- (this->ret_.in () >>= str_ret))
- {
- if (!ACE_OS::strcmp (str_in, str_inout) &&
- !ACE_OS::strcmp (str_in, str_out) &&
- !ACE_OS::strcmp (str_in, str_ret))
- return 1;
- else
- {
- ACE_DEBUG ((LM_DEBUG, "mismatch of string values\n"));
- return 0;
- }
- }
- else if ((this->in_ >>= obj_in) &&
- (this->inout_ >>= obj_inout) &&
- (this->out_.in () >>= obj_out) &&
- (this->ret_.in () >>= obj_ret))
- {
- // all the >>= operators returned true so we are OK.
- return 1;
- }
- else if ((this->in_ >>= array_in) &&
- (this->inout_ >>= array_inout) &&
- (this->out_.in () >>= array_out) &&
- (this->ret_.in () >>= array_ret))
- {
- for (size_t i = 0; i < Param_Test::DIM1; i ++)
- {
- ssize_t ii = i;
- ssize_t square = i * i;
- if (array_in[i] != ii ||
- array_out[i] != ii ||
- array_inout[i] != square ||
- array_ret[i] != square)
- return 0;
- }
- return 1;
- }
- else if ((this->in_ >>= bdss_in) &&
- (this->inout_ >>= bdss_inout) &&
- (this->out_.in () >>= bdss_out) &&
- (this->ret_.in () >>= bdss_ret))
- {
- for (size_t i = 0; i < bdss_in->length (); i ++)
- {
- ssize_t square = i * i;
- if ((*bdss_in)[i] != (*bdss_out)[i] ||
- (*bdss_inout)[i] != square ||
- (*bdss_inout)[i] != (*bdss_ret)[i])
- return 0;
- }
- return 1;
- }
- else if ((this->in_ >>= fs_in) &&
- (this->inout_ >>= fs_inout) &&
- (this->out_.in () >>= fs_out) &&
- (this->ret_.in () >>= fs_ret))
- {
- // @@ Added test for data validity here.
- return 1;
- }
- else
- return 0;
-}
-
-CORBA::Boolean
-Test_Any::check_validity (CORBA::Request_ptr req)
-{
- ACE_UNUSED_ARG (req);
- return this->check_validity ();
-}
-
-void
-Test_Any::print_values (void)
-{
-}
diff --git a/TAO/tests/Param_Test/any.h b/TAO/tests/Param_Test/any.h
deleted file mode 100644
index 1a6777e2ca9..00000000000
--- a/TAO/tests/Param_Test/any.h
+++ /dev/null
@@ -1,101 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// any.h
-//
-// = DESCRIPTION
-// Tests Anys
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_ANY_H
-#define PARAM_TEST_ANY_H
-
-#include "param_testCli.h"
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test Anys
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-class Test_Any
-{
-public:
- Test_Any (void);
- // ctor
-
- ~Test_Any (void);
- // dtor
-
- enum
- {
- ANY_SHORT = 0,
- ANY_STRING,
- ANY_OBJREF,
- ANY_ARRAY,
- ANY_BD_SHORT_SEQ,
- ANY_STRUCT,
- ANY_LAST_TEST_ITEM
- };
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-private:
- char *opname_;
- // operation name
-
- Coffee_var cobj_;
- // Coffee object used to test Any with object.
-
- static size_t counter;
- // test counter.
-
- CORBA::Any in_;
- // in parameter
-
- CORBA::Any inout_;
- // inout parameter
-
- CORBA::Any_var out_;
- // out parameter
-
- CORBA::Any_var ret_;
- // return value
-};
-
-#endif /* PARAM_TEST_ANY_H */
diff --git a/TAO/tests/Param_Test/bd_long_seq.cpp b/TAO/tests/Param_Test/bd_long_seq.cpp
deleted file mode 100644
index 7f728049d8a..00000000000
--- a/TAO/tests/Param_Test/bd_long_seq.cpp
+++ /dev/null
@@ -1,216 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// bd_long_seq.cpp
-//
-// = DESCRIPTION
-// tests bounded long sequences
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "helper.h"
-#include "bd_long_seq.h"
-
-ACE_RCSID(Param_Test, bd_long_seq, "$Id$")
-
-// ************************************************************************
-// Test_Bounded_Long_Sequence
-// ************************************************************************
-
-Test_Bounded_Long_Sequence::Test_Bounded_Long_Sequence (void)
- : opname_ (CORBA::string_dup ("test_bounded_long_sequence")),
- in_ (new Param_Test::Bounded_Long_Seq),
- inout_ (new Param_Test::Bounded_Long_Seq),
- out_ (new Param_Test::Bounded_Long_Seq),
- ret_ (new Param_Test::Bounded_Long_Seq)
-{
-}
-
-Test_Bounded_Long_Sequence::~Test_Bounded_Long_Sequence (void)
-{
- CORBA::string_free (this->opname_);
- this->opname_ = 0;
-}
-
-const char *
-Test_Bounded_Long_Sequence::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_Bounded_Long_Sequence::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-int
-Test_Bounded_Long_Sequence::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- ACE_UNUSED_ARG (objref);
- ACE_UNUSED_ARG (env);
-
- // get some sequence length (32 in this case)
- CORBA::ULong len = this->in_->maximum ();
-
- // set the length of the sequence
- this->in_->length (len);
- // now set each individual element
- for (CORBA::ULong i=0; i < this->in_->maximum (); i++)
- {
- this->in_[i] = i;
- this->inout_[i] = i+1; // different from in_
- }
- return 0;
-}
-
-int
-Test_Bounded_Long_Sequence::reset_parameters (void)
-{
- this->inout_ = new Param_Test::Bounded_Long_Seq; // delete the previous ones
- this->out_ = new Param_Test::Bounded_Long_Seq;
- this->ret_ = new Param_Test::Bounded_Long_Seq;
- return 0;
-}
-
-int
-Test_Bounded_Long_Sequence::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Param_Test::Bounded_Long_Seq_out out (this->out_.out ());
- this->ret_ = objref->test_bounded_long_sequence (this->in_.in (),
- this->inout_.inout (),
- out,
- env);
- return (env.exception () ? -1:0);
-}
-
-int
-Test_Bounded_Long_Sequence::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- CORBA::Any in_arg (Param_Test::_tc_Bounded_Long_Seq,
- (void *) &this->in_.in (),
- 0);
-
- CORBA::Any inout_arg (Param_Test::_tc_Bounded_Long_Seq,
- &this->inout_.inout (),
- 0);
-
- CORBA::Any out_arg (Param_Test::_tc_Bounded_Long_Seq,
- &this->out_.inout (), // .out () causes crash
- 0);
-
- // add parameters
- param_list->add_value ("s1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("s2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("s3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value type
- retval->item (0, env)->value ()->replace (Param_Test::_tc_Bounded_Long_Seq,
- &this->ret_.inout (), // see above
- 0, // does not own
- env);
- return 0;
-}
-
-CORBA::Boolean
-Test_Bounded_Long_Sequence::check_validity (void)
-{
- CORBA::Boolean flag = 0;
- if ((this->in_->length () == this->inout_->length ()) &&
- (this->in_->length () == this->out_->length ()) &&
- (this->in_->length () == this->ret_->length ()))
- {
- flag = 1; // assume all are equal
- // lengths are same. Now compare the contents
- for (CORBA::ULong i=0; i < this->in_->length () && flag; i++)
- {
- if (this->in_[i] != this->inout_[i] ||
- this->in_[i] != this->out_[i] ||
- this->in_[i] != this->ret_[i])
- // not equal
- flag = 0;
- }
- }
- return flag;
-}
-
-CORBA::Boolean
-Test_Bounded_Long_Sequence::check_validity (CORBA::Request_ptr req)
-{
- ACE_UNUSED_ARG (req);
- return this->check_validity ();
-}
-
-void
-Test_Bounded_Long_Sequence::print_values (void)
-{
- CORBA::ULong i;
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->in_.ptr () && (i < this->in_->length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- this->in_[i]? (const char *)this->in_[i]:"<nul>"));
- }
- if (!this->in_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\nin sequence is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->inout_.ptr () && (i < this->inout_->length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- (this->inout_[i]? (const char *)this->inout_[i]:"<nul>")));
- }
- if (!this->inout_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\ninout sequence is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->out_.ptr () && (i < this->out_->length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- (this->out_[i]? (const char *)this->out_[i]:"<nul>")));
- }
- if (!this->out_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\nout sequence is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->ret_.ptr () && (i < this->ret_->length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- (this->ret_[i]? (const char *)this->ret_[i]:"<nul>")));
- }
- if (!this->ret_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\nin sequence is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
-}
diff --git a/TAO/tests/Param_Test/bd_long_seq.h b/TAO/tests/Param_Test/bd_long_seq.h
deleted file mode 100644
index 2f7dc633067..00000000000
--- a/TAO/tests/Param_Test/bd_long_seq.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// bd_long_seq.h
-//
-// = DESCRIPTION
-// Tests bounded long sequences
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_BOUNDED_LONG_SEQUENCE_H
-#define PARAM_TEST_BOUNDED_LONG_SEQUENCE_H
-
-#include "param_testCli.h"
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test bounded sequences of longs
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-
-class Test_Bounded_Long_Sequence
-{
-public:
- Test_Bounded_Long_Sequence (void);
- // ctor
-
- ~Test_Bounded_Long_Sequence (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-private:
- char *opname_;
- // operation name
-
- Param_Test::Bounded_Long_Seq_var in_;
- // in parameter
-
- Param_Test::Bounded_Long_Seq_var inout_;
- // inout parameter
-
- Param_Test::Bounded_Long_Seq_var out_;
- // out parameter
-
- Param_Test::Bounded_Long_Seq_var ret_;
- // return value
-};
-
-#endif /* PARAM_TEST_BOUNDED_LONG_SEQUENCE_H */
diff --git a/TAO/tests/Param_Test/bd_short_seq.cpp b/TAO/tests/Param_Test/bd_short_seq.cpp
deleted file mode 100644
index 85016c109c1..00000000000
--- a/TAO/tests/Param_Test/bd_short_seq.cpp
+++ /dev/null
@@ -1,218 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// bd_short_seq.cpp
-//
-// = DESCRIPTION
-// tests bounded short sequences
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "helper.h"
-#include "bd_short_seq.h"
-
-ACE_RCSID(Param_Test, bd_short_seq, "$Id$")
-
-// ************************************************************************
-// Test_Bounded_Short_Sequence
-// ************************************************************************
-
-Test_Bounded_Short_Sequence::Test_Bounded_Short_Sequence (void)
- : opname_ (CORBA::string_dup ("test_bounded_short_sequence")),
- in_ (new Param_Test::Bounded_Short_Seq),
- inout_ (new Param_Test::Bounded_Short_Seq),
- out_ (new Param_Test::Bounded_Short_Seq),
- ret_ (new Param_Test::Bounded_Short_Seq)
-{
-}
-
-Test_Bounded_Short_Sequence::~Test_Bounded_Short_Sequence (void)
-{
- CORBA::string_free (this->opname_);
- this->opname_ = 0;
-}
-
-const char *
-Test_Bounded_Short_Sequence::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_Bounded_Short_Sequence::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-int
-Test_Bounded_Short_Sequence::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- ACE_UNUSED_ARG (objref);
- ACE_UNUSED_ARG (env);
-
- // get some sequence length (32 in this case)
- CORBA::ULong len = this->in_->maximum ();
-
- // set the length of the sequence
- this->in_->length (len);
- // now set each individual element
- for (CORBA::ULong i=0; i < this->in_->maximum (); i++)
- {
- // generate some arbitrary string to be filled into the ith location in
- // the sequence
- this->in_[i] = i;
- this->inout_[i] = i+1; // different from in_
- }
- return 0;
-}
-
-int
-Test_Bounded_Short_Sequence::reset_parameters (void)
-{
- this->inout_ = new Param_Test::Bounded_Short_Seq; // delete the previous ones
- this->out_ = new Param_Test::Bounded_Short_Seq;
- this->ret_ = new Param_Test::Bounded_Short_Seq;
- return 0;
-}
-
-int
-Test_Bounded_Short_Sequence::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Param_Test::Bounded_Short_Seq_out out (this->out_.out ());
- this->ret_ = objref->test_bounded_short_sequence (this->in_.in (),
- this->inout_.inout (),
- out,
- env);
- return (env.exception () ? -1:0);
-}
-
-int
-Test_Bounded_Short_Sequence::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- CORBA::Any in_arg (Param_Test::_tc_Bounded_Short_Seq,
- (void *) &this->in_.in (),
- 0);
-
- CORBA::Any inout_arg (Param_Test::_tc_Bounded_Short_Seq,
- &this->inout_.inout (),
- 0);
-
- CORBA::Any out_arg (Param_Test::_tc_Bounded_Short_Seq,
- &this->out_.inout (), // .out () causes crash
- 0);
-
- // add parameters
- param_list->add_value ("s1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("s2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("s3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value type
- retval->item (0, env)->value ()->replace (Param_Test::_tc_Bounded_Short_Seq,
- &this->ret_.inout (), // see above
- 0, // does not own
- env);
- return 0;
-}
-
-CORBA::Boolean
-Test_Bounded_Short_Sequence::check_validity (void)
-{
- CORBA::Boolean flag = 0;
- if ((this->in_->length () == this->inout_->length ()) &&
- (this->in_->length () == this->out_->length ()) &&
- (this->in_->length () == this->ret_->length ()))
- {
- flag = 1; // assume all are equal
- // lengths are same. Now compare the contents
- for (CORBA::ULong i=0; i < this->in_->length () && flag; i++)
- {
- if (this->in_[i] != this->inout_[i] ||
- this->in_[i] != this->out_[i] ||
- this->in_[i] != this->ret_[i])
- // not equal
- flag = 0;
- }
- }
- return flag;
-}
-
-CORBA::Boolean
-Test_Bounded_Short_Sequence::check_validity (CORBA::Request_ptr req)
-{
- ACE_UNUSED_ARG (req);
- return this->check_validity ();
-}
-
-void
-Test_Bounded_Short_Sequence::print_values (void)
-{
- CORBA::ULong i;
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->in_.ptr () && (i < this->in_->length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- this->in_[i]? (const char *)this->in_[i]:"<nul>"));
- }
- if (!this->in_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\nin sequence is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->inout_.ptr () && (i < this->inout_->length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- (this->inout_[i]? (const char *)this->inout_[i]:"<nul>")));
- }
- if (!this->inout_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\ninout sequence is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->out_.ptr () && (i < this->out_->length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- (this->out_[i]? (const char *)this->out_[i]:"<nul>")));
- }
- if (!this->out_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\nout sequence is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->ret_.ptr () && (i < this->ret_->length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- (this->ret_[i]? (const char *)this->ret_[i]:"<nul>")));
- }
- if (!this->ret_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\nin sequence is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
-}
diff --git a/TAO/tests/Param_Test/bd_short_seq.h b/TAO/tests/Param_Test/bd_short_seq.h
deleted file mode 100644
index 798687a9fb5..00000000000
--- a/TAO/tests/Param_Test/bd_short_seq.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// bd_short_seq.h
-//
-// = DESCRIPTION
-// Tests bounded short sequence
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_BOUNDED_SHORT_SEQUENCE_H
-#define PARAM_TEST_BOUNDED_SHORT_SEQUENCE_H
-
-#include "param_testCli.h"
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test bounded sequences of shorts
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-
-class Test_Bounded_Short_Sequence
-{
-public:
- Test_Bounded_Short_Sequence (void);
- // ctor
-
- ~Test_Bounded_Short_Sequence (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-private:
- char *opname_;
- // operation name
-
- Param_Test::Bounded_Short_Seq_var in_;
- // in parameter
-
- Param_Test::Bounded_Short_Seq_var inout_;
- // inout parameter
-
- Param_Test::Bounded_Short_Seq_var out_;
- // out parameter
-
- Param_Test::Bounded_Short_Seq_var ret_;
- // return value
-};
-
-#endif /* PARAM_TEST_BOUNDED_SHORT_SEQUENCE_H */
diff --git a/TAO/tests/Param_Test/bd_str_seq.cpp b/TAO/tests/Param_Test/bd_str_seq.cpp
deleted file mode 100644
index 6c057e99247..00000000000
--- a/TAO/tests/Param_Test/bd_str_seq.cpp
+++ /dev/null
@@ -1,223 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// bd_str_seq.cpp
-//
-// = DESCRIPTION
-// tests bounded string sequences
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "helper.h"
-#include "bd_str_seq.h"
-
-ACE_RCSID(Param_Test, bd_str_seq, "$Id$")
-
-// ************************************************************************
-// Test_Bounded_String_Sequence
-// ************************************************************************
-
-Test_Bounded_String_Sequence::Test_Bounded_String_Sequence (void)
- : opname_ (CORBA::string_dup ("test_bounded_strseq")),
- in_ (new Param_Test::Bounded_StrSeq),
- inout_ (new Param_Test::Bounded_StrSeq),
- out_ (new Param_Test::Bounded_StrSeq),
- ret_ (new Param_Test::Bounded_StrSeq)
-{
-}
-
-Test_Bounded_String_Sequence::~Test_Bounded_String_Sequence (void)
-{
- CORBA::string_free (this->opname_);
- this->opname_ = 0;
-}
-
-const char *
-Test_Bounded_String_Sequence::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_Bounded_String_Sequence::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-int
-Test_Bounded_String_Sequence::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- ACE_UNUSED_ARG (objref);
- ACE_UNUSED_ARG (env);
-
- const char *choiceList[] =
- {
- "one",
- "two",
- "three"
- };
-
- CORBA::ULong len = this->in_->maximum ();
-
- // set the length of the sequence
- this->in_->length (len);
- this->inout_->length (len);
- // now set each individual element
- for (CORBA::ULong i=0; i < this->in_->length (); i++)
- {
- this->in_[i] = choiceList[i%3];
- this->inout_[i] = choiceList[(i+1)%3]; // different from in_
- }
- return 0;
-}
-
-int
-Test_Bounded_String_Sequence::reset_parameters (void)
-{
- this->inout_ = new Param_Test::Bounded_StrSeq; // delete the previous ones
- this->out_ = new Param_Test::Bounded_StrSeq;
- this->ret_ = new Param_Test::Bounded_StrSeq;
- return 0;
-}
-
-int
-Test_Bounded_String_Sequence::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Param_Test::Bounded_StrSeq_out out (this->out_.out ());
- this->ret_ = objref->test_bounded_strseq (this->in_.in (),
- this->inout_.inout (),
- out,
- env);
- return (env.exception () ? -1:0);
-}
-
-int
-Test_Bounded_String_Sequence::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- CORBA::Any in_arg (Param_Test::_tc_Bounded_StrSeq,
- (void *) &this->in_.in (),
- 0);
-
- CORBA::Any inout_arg (Param_Test::_tc_Bounded_StrSeq,
- &this->inout_.inout (),
- 0);
-
- CORBA::Any out_arg (Param_Test::_tc_Bounded_StrSeq,
- &this->out_.inout (), // .out () causes crash
- 0);
-
- // add parameters
- param_list->add_value ("s1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("s2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("s3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value type
- retval->item (0, env)->value ()->replace (Param_Test::_tc_Bounded_StrSeq,
- &this->ret_.inout (), // see above
- 0, // does not own
- env);
- return 0;
-}
-
-CORBA::Boolean
-Test_Bounded_String_Sequence::check_validity (void)
-{
- CORBA::Boolean flag = 0;
- if ((this->in_->length () == this->inout_->length ()) &&
- (this->in_->length () == this->out_->length ()) &&
- (this->in_->length () == this->ret_->length ()))
- {
- flag = 1; // assume all are equal
- // lengths are same. Now compare the contents
- for (CORBA::ULong i=0; i < this->in_->length () && flag; i++)
- {
- if (ACE_OS::strcmp(this->in_[i], this->inout_[i]) ||
- ACE_OS::strcmp(this->in_[i], this->out_[i]) ||
- ACE_OS::strcmp(this->in_[i], this->ret_[i]))
- // not equal
- flag = 0;
- }
- }
- return flag;
-}
-
-CORBA::Boolean
-Test_Bounded_String_Sequence::check_validity (CORBA::Request_ptr req)
-{
- ACE_UNUSED_ARG (req);
- return this->check_validity ();
-}
-
-void
-Test_Bounded_String_Sequence::print_values (void)
-{
- CORBA::ULong i;
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->in_.ptr () && (i < this->in_->length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- this->in_[i]? (const char *)this->in_[i]:"<nul>"));
- }
- if (!this->in_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\nin sequence is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->inout_.ptr () && (i < this->inout_->length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- (this->inout_[i]? (const char *)this->inout_[i]:"<nul>")));
- }
- if (!this->inout_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\ninout sequence is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->out_.ptr () && (i < this->out_->length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- (this->out_[i]? (const char *)this->out_[i]:"<nul>")));
- }
- if (!this->out_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\nout sequence is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->ret_.ptr () && (i < this->ret_->length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- (this->ret_[i]? (const char *)this->ret_[i]:"<nul>")));
- }
- if (!this->ret_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\nin sequence is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
-}
diff --git a/TAO/tests/Param_Test/bd_str_seq.h b/TAO/tests/Param_Test/bd_str_seq.h
deleted file mode 100644
index 43f89e42f37..00000000000
--- a/TAO/tests/Param_Test/bd_str_seq.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// bd_str_seq.h
-//
-// = DESCRIPTION
-// Tests bounded sequences of strings
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_BOUNDED_STRING_SEQUENCE_H
-#define PARAM_TEST_BOUNDED_STRING_SEQUENCE_H
-
-#include "param_testCli.h"
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test typedefed sequences (in our case, sequences of strings)
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-
-class Test_Bounded_String_Sequence
-{
-public:
- Test_Bounded_String_Sequence (void);
- // ctor
-
- ~Test_Bounded_String_Sequence (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-private:
- char *opname_;
- // operation name
-
- Param_Test::Bounded_StrSeq_var in_;
- // in parameter
-
- Param_Test::Bounded_StrSeq_var inout_;
- // inout parameter
-
- Param_Test::Bounded_StrSeq_var out_;
- // out parameter
-
- Param_Test::Bounded_StrSeq_var ret_;
- // return value
-};
-
-#endif /* PARAM_TEST_BOUNDED_STRING_SEQUENCE_H */
diff --git a/TAO/tests/Param_Test/bd_string.cpp b/TAO/tests/Param_Test/bd_string.cpp
deleted file mode 100644
index 350e9e7355a..00000000000
--- a/TAO/tests/Param_Test/bd_string.cpp
+++ /dev/null
@@ -1,192 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// bd_string.cpp
-//
-// = DESCRIPTION
-// tests bounded strings
-//
-// = AUTHORS
-// Carlos O'Ryan
-//
-// ============================================================================
-
-#include "helper.h"
-#include "bd_string.h"
-
-ACE_RCSID(Param_Test, bd_string, "$Id$")
-
-// ************************************************************************
-// Test_Bounded_String
-// ************************************************************************
-
-Test_Bounded_String::Test_Bounded_String (void)
- : opname_ (CORBA::string_dup ("test_bounded_string")),
- in_ (0),
- inout_ (0),
- out_ (0),
- ret_ (0)
-{
-}
-
-Test_Bounded_String::~Test_Bounded_String (void)
-{
- CORBA::string_free (this->opname_);
- CORBA::string_free (this->in_);
- CORBA::string_free (this->inout_);
- CORBA::string_free (this->out_);
- CORBA::string_free (this->ret_);
- this->opname_ = 0;
- this->in_ = 0;
- this->inout_ = 0;
- this->out_ = 0;
- this->ret_ = 0;
-}
-
-const char *
-Test_Bounded_String::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_Bounded_String::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-int
-Test_Bounded_String::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Generator *gen = GENERATOR::instance (); // value generator
- ACE_UNUSED_ARG (objref);
- ACE_UNUSED_ARG (env);
-
- // release any previously occupied values
- CORBA::string_free (this->in_);
- CORBA::string_free (this->inout_);
- CORBA::string_free (this->out_);
- CORBA::string_free (this->ret_);
- this->in_ = 0;
- this->inout_ = 0;
- this->out_ = 0;
- this->ret_ = 0;
-
- this->in_ = gen->gen_string (32);
- this->inout_ = CORBA::string_dup (this->in_);
- return 0;
-}
-
-int
-Test_Bounded_String::reset_parameters (void)
-{
- // release any previously occupied values
- this->inout_ = 0;
- this->out_ = 0;
- this->ret_ = 0;
-
- this->inout_ = CORBA::string_dup (this->in_);
- return 0;
-}
-
-int
-Test_Bounded_String::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- CORBA::String_out str_out (this->out_);
- this->ret_ = objref->test_unbounded_string (this->in_,
- this->inout_,
- str_out,
- env);
- return (env.exception () ? -1:0);
-}
-
-int
-Test_Bounded_String::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- // create the parameters
- CORBA::Any in_arg (CORBA::_tc_string,
- &this->in_,
- 0);
-
- CORBA::Any inout_arg (CORBA::_tc_string,
- &this->inout_,
- 0);
-
- CORBA::Any out_arg (CORBA::_tc_string,
- &this->out_,
- 0);
-
- // add parameters
- param_list->add_value ("s1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("s2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("s3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value
- retval->item (0, env)->value ()->replace (CORBA::_tc_string,
- &this->ret_,
- 0, // does not own
- env);
- return 0;
-}
-
-CORBA::Boolean
-Test_Bounded_String::check_validity (void)
-{
- CORBA::ULong len = ACE_OS::strlen (this->in_);
-
- if (!ACE_OS::strcmp (this->in_, this->out_) &&
- !ACE_OS::strcmp (this->in_, this->ret_) &&
- ACE_OS::strlen (this->inout_) == 2*len &&
- !ACE_OS::strncmp (this->in_, this->inout_, len) &&
- !ACE_OS::strncmp (this->in_, &this->inout_[len], len))
- return 1;
-
- return 0; // otherwise
-}
-
-CORBA::Boolean
-Test_Bounded_String::check_validity (CORBA::Request_ptr req)
-{
- ACE_UNUSED_ARG (req);
- return this->check_validity ();
-}
-
-void
-Test_Bounded_String::print_values (void)
-{
- ACE_DEBUG ((LM_DEBUG,
- "\n=*=*=*=*=*=*\n"
- "in with len (%d) = %s\n"
- "inout with len (%d) = %s\n"
- "out with len (%d) = %s\n"
- "ret with len (%d) = %s\n"
- "\n=*=*=*=*=*=*\n",
- (this->in_ ? ACE_OS::strlen (this->in_):0),
- (this->in_ ? this->in_:"<nul string>"),
- (this->inout_ ? ACE_OS::strlen (this->inout_):0),
- (this->inout_ ? this->inout_:"<nul string>"),
- (this->out_ ? ACE_OS::strlen (this->out_):0),
- (this->out_ ? this->out_:"<nul string>"),
- (this->ret_ ? ACE_OS::strlen (this->ret_):0),
- (this->ret_ ? this->ret_:"<nul string>")));
-}
diff --git a/TAO/tests/Param_Test/bd_string.h b/TAO/tests/Param_Test/bd_string.h
deleted file mode 100644
index c4e5677e65a..00000000000
--- a/TAO/tests/Param_Test/bd_string.h
+++ /dev/null
@@ -1,88 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// bd_string.h
-//
-// = DESCRIPTION
-// Tests bounded string
-//
-// = AUTHORS
-// Carlos O'Ryan
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_BOUNDED_STRING_H
-#define PARAM_TEST_BOUNDED_STRING_H
-
-#include "param_testCli.h"
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test unbounded strings
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-class Test_Bounded_String
-{
-public:
- Test_Bounded_String (void);
- // ctor
-
- ~Test_Bounded_String (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- int add_args (CORBA::Request_ptr &req,
- CORBA::Environment &env);
- // add args to NVList using << operator
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-private:
- char *opname_;
- // operation name
-
- char *in_;
- // in parameter
-
- char *inout_;
- // inout parameter
-
- char *out_;
- // out parameter
-
- char *ret_;
- // return value
-};
-
-#endif /* PARAM_TEST_BOUNDED_STRING_H */
diff --git a/TAO/tests/Param_Test/bd_struct_seq.cpp b/TAO/tests/Param_Test/bd_struct_seq.cpp
deleted file mode 100644
index 8f99ebcde40..00000000000
--- a/TAO/tests/Param_Test/bd_struct_seq.cpp
+++ /dev/null
@@ -1,232 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// bd_struct_seq.cpp
-//
-// = DESCRIPTION
-// tests bounded struct sequences
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "helper.h"
-#include "bd_struct_seq.h"
-
-ACE_RCSID(Param_Test, bd_struct_seq, "$Id$")
-
-const CORBA::ULong MAX_STRUCTSEQ_LEN = 1;
-
-// ************************************************************************
-// Test_Bounded_Struct_Sequence
-// ************************************************************************
-
-Test_Bounded_Struct_Sequence::Test_Bounded_Struct_Sequence (void)
- : opname_ (CORBA::string_dup ("test_bounded_struct_sequence")),
- inout_ (new Param_Test::Bounded_StructSeq),
- out_ (new Param_Test::Bounded_StructSeq),
- ret_ (new Param_Test::Bounded_StructSeq)
-{
-}
-
-Test_Bounded_Struct_Sequence::~Test_Bounded_Struct_Sequence (void)
-{
- CORBA::string_free (this->opname_);
- this->opname_ = 0;
- // the other data members will be freed as they are "_var"s and objects
- // (rather than pointers to objects)
-}
-
-const char *
-Test_Bounded_Struct_Sequence::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_Bounded_Struct_Sequence::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-int
-Test_Bounded_Struct_Sequence::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Generator *gen = GENERATOR::instance (); // value generator
-
- ACE_UNUSED_ARG (objref);
- ACE_UNUSED_ARG (env);
-
- // set the length of the sequence
- this->in_.length (MAX_STRUCTSEQ_LEN);
- // now set each individual element
- for (CORBA::ULong i = 0; i < this->in_.length (); i++)
- {
- // generate some arbitrary string to be filled into the ith location in
- // the sequence
- this->in_[i] = gen->gen_fixed_struct ();
- }
- return 0;
-}
-
-int
-Test_Bounded_Struct_Sequence::reset_parameters (void)
-{
- this->inout_ = new Param_Test::Bounded_StructSeq; // delete the previous ones
- this->out_ = new Param_Test::Bounded_StructSeq;
- this->ret_ = new Param_Test::Bounded_StructSeq;
- return 0;
-}
-
-int
-Test_Bounded_Struct_Sequence::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Param_Test::Bounded_StructSeq_out out (this->out_.out ());
- this->ret_ = objref->test_bounded_struct_sequence (this->in_,
- this->inout_.inout (),
- out,
- env);
- return (env.exception () ? -1:0);
-}
-
-int
-Test_Bounded_Struct_Sequence::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- CORBA::Any in_arg (Param_Test::_tc_Bounded_StructSeq,
- &this->in_,
- 0);
-
- CORBA::Any inout_arg (Param_Test::_tc_Bounded_StructSeq,
- &this->inout_.inout (),
- 0);
-
- CORBA::Any out_arg (Param_Test::_tc_Bounded_StructSeq,
- &this->out_.inout (), // .out () causes crash
- 0);
-
- // add parameters
- param_list->add_value ("s1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("s2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("s3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value type
- retval->item (0, env)->value ()->replace (Param_Test::_tc_Bounded_StructSeq,
- &this->ret_.inout (), // see above
- 0, // does not own
- env);
- return 0;
-}
-
-CORBA::Boolean
-Test_Bounded_Struct_Sequence::check_validity (void)
-{
- if (this->compare (this->in_, this->inout_.in ()) &&
- this->compare (this->in_, this->out_.in ()) &&
- this->compare (this->in_, this->ret_.in ()))
- return 1;
- else
- return 0;
-}
-
-CORBA::Boolean
-Test_Bounded_Struct_Sequence::check_validity (CORBA::Request_ptr req)
-{
- ACE_UNUSED_ARG (req);
- return this->check_validity ();
-}
-
-void
-Test_Bounded_Struct_Sequence::print_values (void)
-{
- ACE_DEBUG ((LM_DEBUG,
- "*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*\n"
- "IN sequence\n"));
- this->print_sequence (this->in_);
- ACE_DEBUG ((LM_DEBUG,
- "*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*\n"
- "INOUT sequence\n"));
- this->print_sequence (this->inout_.in ());
- ACE_DEBUG ((LM_DEBUG,
- "*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*\n"
- "OUT sequence\n"));
- this->print_sequence (this->out_.in ());
- ACE_DEBUG ((LM_DEBUG,
- "*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*\n"
- "RET sequence\n"));
- this->print_sequence (this->ret_.in ());
-}
-
-CORBA::Boolean
-Test_Bounded_Struct_Sequence::compare (const Param_Test::Bounded_StructSeq &s1,
- const Param_Test::Bounded_StructSeq &s2)
-{
- if (s1.maximum () != s2.maximum ())
- return 0;
- if (s1.length () != s2.length ())
- return 0;
-
- for (CORBA::ULong i=0; i < s1.length (); i++)
- {
- const Param_Test::Fixed_Struct& vs1 = s1[i];
- const Param_Test::Fixed_Struct& vs2 = s2[i];
-
- if (vs1.l != vs2.l
- || vs1.c != vs2.c
- || vs1.s != vs2.s
- || vs1.o != vs2.o
- || vs1.f != vs2.f
- || vs1.b != vs2.b
- || vs1.d != vs2.d )
- return 0;
- }
-
- return 1; // success
-}
-
-void
-Test_Bounded_Struct_Sequence::print_sequence (const Param_Test::Bounded_StructSeq &s)
-{
- ACE_DEBUG ((LM_DEBUG,
- "maximum = %d\n"
- "length = %d\n",
- s.maximum (),
- s.length ()));
- ACE_DEBUG ((LM_DEBUG, "Elements -\n"));
- for (CORBA::ULong i=0; i < s.length (); i++)
- {
- const Param_Test::Fixed_Struct& vs = s[i];
-
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "\tl = %d\n"
- "\tc = %c\n"
- "\ts = %d\n"
- "\to = %x\n"
- "\tf = %f\n"
- "\tb = %d\n"
- "\td = %f\n",
- i,
- vs.l, vs.c, vs.s, vs.o, vs.f, vs.b, vs.d));
- }
-}
diff --git a/TAO/tests/Param_Test/bd_struct_seq.h b/TAO/tests/Param_Test/bd_struct_seq.h
deleted file mode 100644
index 138a8ec8032..00000000000
--- a/TAO/tests/Param_Test/bd_struct_seq.h
+++ /dev/null
@@ -1,94 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// bd_struct_seq.h
-//
-// = DESCRIPTION
-// Tests bounded struct sequence
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_BOUNDED_STRUCT_SEQUENCE_H
-#define PARAM_TEST_BOUNDED_STRUCT_SEQUENCE_H
-
-#include "param_testCli.h"
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test bounded sequence of structs
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-
-class Test_Bounded_Struct_Sequence
-{
-public:
- Test_Bounded_Struct_Sequence (void);
- // ctor
-
- ~Test_Bounded_Struct_Sequence (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-protected:
- CORBA::Boolean compare (const Param_Test::Bounded_StructSeq &s1,
- const Param_Test::Bounded_StructSeq &s2);
- // compare
-
- void print_sequence (const Param_Test::Bounded_StructSeq &s);
- // print individual sequence
-
-private:
- char *opname_;
- // operation name
-
- Param_Test::Bounded_StructSeq in_;
- // in parameter
-
- // these need memory management
- Param_Test::Bounded_StructSeq_var inout_;
- // inout parameter
-
- Param_Test::Bounded_StructSeq_var out_;
- // out parameter
-
- Param_Test::Bounded_StructSeq_var ret_;
- // return value
-};
-
-#endif /* PARAM_TEST_BOUNDED_STRUCT_SEQUENCE_H */
diff --git a/TAO/tests/Param_Test/big_union.cpp b/TAO/tests/Param_Test/big_union.cpp
deleted file mode 100644
index b23ab40bccc..00000000000
--- a/TAO/tests/Param_Test/big_union.cpp
+++ /dev/null
@@ -1,541 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// big_union.cpp
-//
-// = DESCRIPTION
-// tests Big_Unions
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "helper.h"
-#include "big_union.h"
-
-ACE_RCSID(Param_Test, big_union, "$Id$")
-
-// ************************************************************************
-// Test_Big_Union
-// ************************************************************************
-
-size_t Test_Big_Union::counter = 0;
-
-Test_Big_Union::Test_Big_Union (void)
- : opname_ (CORBA::string_dup ("test_big_union"))
-{
-}
-
-Test_Big_Union::~Test_Big_Union (void)
-{
- CORBA::string_free (this->opname_);
- this->opname_ = 0;
-}
-
-const char *
-Test_Big_Union::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_Big_Union::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-int
-Test_Big_Union::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- TAO_TRY
- {
- // get access to a Coffee Object
- this->cobj_ = objref->make_coffee (TAO_TRY_ENV);
- TAO_CHECK_ENV;
- }
- TAO_CATCH (CORBA::SystemException, sysex)
- {
- ACE_UNUSED_ARG (sysex);
- TAO_TRY_ENV.print_exception ("System Exception doing make_coffee");
- return -1;
- }
- TAO_ENDTRY;
-
- this->reset_parameters ();
- return 0;
-}
-
-int
-Test_Big_Union::reset_parameters (void)
-{
- Generator *gen = GENERATOR::instance (); // value generator
- CORBA::ULong index = (counter++ % Test_Big_Union::BIG_UNION_N_BRANCHES);
-
- switch (index)
- {
- case 0:
- {
- Param_Test::Fixed_Array x;
- for (CORBA::ULong i = 0; i < Param_Test::DIM1; ++i)
- {
- x[i] = gen->gen_long ();
- }
- this->in_.the_array (x);
- this->inout_.the_array (x);
- }
- break;
- case 1:
- {
- this->in_.the_interface (this->cobj_.in ());
- this->inout_.the_interface (this->cobj_.in ());
- }
- break;
- case 2:
- {
- CORBA::Long x = gen->gen_long ();
- this->in_.the_long (x);
- this->inout_.the_long (x);
- }
- break;
- case 3:
- {
- Param_Test::Big_Union::_another_array x;
- for (int i = 0; i < 32; ++i)
- {
- x[i] = gen->gen_short ();
- }
- this->in_.another_array (x);
- this->inout_.another_array (x);
- }
- break;
- case 4:
- {
- CORBA::String_var str = gen->gen_string ();
- this->in_.the_string (str);
- this->inout_.the_string (str);
- }
- break;
- case 5:
- {
- Param_Test::Short_Seq seq;
- seq.length (gen->gen_short () % 50);
- for (size_t i = 0; i < seq.length (); i++)
- seq[i] = gen->gen_short ();
- this->in_.the_sequence (seq);
- this->inout_.the_sequence (seq);
- }
- break;
- case 6:
- {
- CORBA::Any any;
- any <<= CORBA::Short (25);
- this->in_.the_any (any);
- this->inout_.the_any (any);
- }
- break;
- case 7:
- {
- CORBA::Octet octet = gen->gen_short () % 255;
- this->in_.the_octet (octet);
- this->inout_.the_octet (octet);
- }
- break;
- case 8:
- {
- CORBA::Char x = '@';
- this->in_.the_char (x);
- this->inout_.the_char (x);
- }
- break;
- case 9:
- {
- CORBA::Boolean x = gen->gen_short () % 2;
- this->in_.the_boolean (x);
- this->inout_.the_boolean (x);
- }
- break;
- case 10:
- {
- Param_Test::Var_Struct var_struct;
- var_struct.dummy1 = gen->gen_string ();
- var_struct.dummy2 = gen->gen_string ();
- CORBA::ULong len = gen->gen_long () % 10 + 1;
- var_struct.seq.length (len);
- for (CORBA::ULong i = 0; i != len; ++i)
- {
- var_struct.seq[i] = gen->gen_string ();
- }
- this->in_.the_var_struct (var_struct);
- this->inout_.the_var_struct (var_struct);
- }
- break;
- case 11:
- {
- Param_Test::Fixed_Struct fixed_struct;
- fixed_struct.l = gen->gen_long ();
- fixed_struct.c = gen->gen_long () % 255;
- fixed_struct.s = gen->gen_long () % 32768;
- fixed_struct.o = gen->gen_long () % 255;
- fixed_struct.f = gen->gen_short () / 255.0;
- fixed_struct.b = gen->gen_long () % 2;
- fixed_struct.d = gen->gen_short () / 255.0;
- this->in_.the_fixed_struct (fixed_struct);
- this->inout_.the_fixed_struct (fixed_struct);
- }
- break;
- }
- return 0;
-}
-
-int
-Test_Big_Union::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- this->ret_ = objref->test_big_union (this->in_,
- this->inout_,
- this->out_,
- env);
- return (env.exception () ? -1:0);
-}
-
-int
-Test_Big_Union::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- CORBA::Any in_arg (Param_Test::_tc_Big_Union,
- &this->in_,
- 0);
-
- CORBA::Any inout_arg (Param_Test::_tc_Big_Union,
- &this->inout_,
- 0);
-
- CORBA::Any out_arg (Param_Test::_tc_Big_Union,
- &this->out_,
- 0);
-
- // add parameters
- param_list->add_value ("u1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("u2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("u3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value
- retval->item (0, env)->value ()->replace (Param_Test::_tc_Big_Union,
- &this->ret_,
- 0,
- env);
- return 0;
-}
-
-CORBA::Boolean
-Test_Big_Union::check_validity (void)
-{
- if (this->in_._d () != this->inout_._d ()
- || this->in_._d () != this->out_->_d ()
- || this->in_._d () != this->ret_->_d ())
- {
- ACE_DEBUG ((LM_DEBUG, "mismatch of discriminators\n"));
- return 0;
- }
-
-
- switch (this->in_._d ())
- {
- case 0:
- {
- Param_Test::Fixed_Array_slice* in_array = this->in_.the_array ();
- Param_Test::Fixed_Array_slice* inout_array = this->inout_.the_array ();
- Param_Test::Fixed_Array_slice* out_array = this->out_->the_array ();
- Param_Test::Fixed_Array_slice* ret_array = this->ret_->the_array ();
- for (CORBA::ULong i = 0; i < Param_Test::DIM1; ++i)
- {
- if (in_array[i] != inout_array[i]
- || in_array[i] != out_array[i]
- || in_array[i] != ret_array[i])
- return 0;
- }
- }
- break;
- case 1:
- {
- ACE_TRY_NEW_ENV
- {
- Coffee_ptr in = this->in_.the_interface ();
- Coffee_ptr inout = this->inout_.the_interface ();
- Coffee_ptr out = this->out_->the_interface ();
- Coffee_ptr ret = this->ret_->the_interface ();
-
- if (CORBA::is_nil (in)
- || CORBA::is_nil (inout)
- || CORBA::is_nil (out)
- || CORBA::is_nil (ret))
- return 0;
-
- Coffee::Desc_var in_desc =
- in->description (ACE_TRY_ENV);
- ACE_TRY_CHECK;
- Coffee::Desc_var inout_desc =
- inout->description (ACE_TRY_ENV);
- ACE_TRY_CHECK;
- Coffee::Desc_var out_desc =
- out->description (ACE_TRY_ENV);
- ACE_TRY_CHECK;
- Coffee::Desc_var ret_desc =
- ret->description (ACE_TRY_ENV);
- ACE_TRY_CHECK;
-
- if (ACE_OS::strcmp (in_desc->name.in (),
- inout_desc->name.in ())
- || ACE_OS::strcmp (in_desc->name.in (),
- out_desc->name.in ())
- || ACE_OS::strcmp (in_desc->name.in (),
- ret_desc->name.in ()))
- return 0;
- }
- ACE_CATCHANY
- {
- return 0;
- }
- ACE_ENDTRY;
- }
- break;
- case 2:
- {
- CORBA::Long in = this->in_.the_long ();
- CORBA::Long inout = this->inout_.the_long ();
- CORBA::Long out = this->out_->the_long ();
- CORBA::Long ret = this->ret_->the_long ();
- if (in != out || in != inout || in != ret)
- return 0;
- }
- break;
-
- case 3:
- {
- Param_Test::Big_Union::_another_array_slice* in_array =
- this->in_.another_array ();
- Param_Test::Big_Union::_another_array_slice* inout_array =
- this->inout_.another_array ();
- Param_Test::Big_Union::_another_array_slice* out_array =
- this->out_->another_array ();
- Param_Test::Big_Union::_another_array_slice* ret_array =
- this->ret_->another_array ();
- for (int i = 0; i != 32; ++i)
- {
- if (in_array[i] != inout_array[i]
- || in_array[i] != out_array[i]
- || in_array[i] != ret_array[i])
- return 0;
- }
- }
- break;
-
- case 4:
- {
- const char* in = this->in_.the_string ();
- const char* inout = this->inout_.the_string ();
- const char* out = this->out_->the_string ();
- const char* ret = this->ret_->the_string ();
- if (ACE_OS::strcmp (in,out)
- || ACE_OS::strcmp (in,inout)
- || ACE_OS::strcmp (in,ret))
- return 0;
- }
- break;
-
- case 5:
- {
- const Param_Test::Short_Seq& in =
- this->in_.the_sequence ();
- const Param_Test::Short_Seq& inout =
- this->inout_.the_sequence ();
- const Param_Test::Short_Seq& out =
- this->out_->the_sequence ();
- const Param_Test::Short_Seq& ret =
- this->ret_->the_sequence ();
-
- if (in.length () != out.length ()
- || in.length () != inout.length ()
- || in.length () != ret.length ())
- return 0;
-
- for (CORBA::ULong i = 0; i != in.length (); ++i)
- {
- if (in[i] != out[i]
- || in[i] != inout[i]
- || in[i] != ret[i])
- return 0;
- }
- }
- break;
-
- case 6:
- {
- CORBA::Any in = this->in_.the_any ();
- CORBA::Any inout = this->inout_.the_any ();
- CORBA::Any out = this->out_->the_any ();
- CORBA::Any ret = this->ret_->the_any ();
-
- CORBA::Short in_short;
- CORBA::Short inout_short;
- CORBA::Short out_short;
- CORBA::Short ret_short;
- if (!(in >>= in_short)
- || !(inout >>= inout_short)
- || !(out >>= out_short)
- || !(ret >>= ret_short))
- return 0;
-
- if (in_short != inout_short
- || in_short != out_short
- || in_short != ret_short)
- return 0;
- }
- break;
-
- case 7:
- {
- CORBA::Octet in = this->in_.the_octet ();
- CORBA::Octet inout = this->inout_.the_octet ();
- CORBA::Octet out = this->out_->the_octet ();
- CORBA::Octet ret = this->ret_->the_octet ();
- if (in != out || in != inout || in != ret)
- return 0;
- }
- break;
-
- case 8:
- {
- CORBA::Char in = this->in_.the_char ();
- CORBA::Char inout = this->inout_.the_char ();
- CORBA::Char out = this->out_->the_char ();
- CORBA::Char ret = this->ret_->the_char ();
- if (in != out || in != inout || in != ret)
- return 0;
- }
- break;
-
- case 9:
- {
- CORBA::Boolean in = this->in_.the_boolean ();
- CORBA::Boolean inout = this->inout_.the_boolean ();
- CORBA::Boolean out = this->out_->the_boolean ();
- CORBA::Boolean ret = this->ret_->the_boolean ();
- if (in != out || in != inout || in != ret)
- return 0;
- }
- break;
-
- case 10:
- {
- const Param_Test::Var_Struct& in =
- this->in_.the_var_struct ();
- const Param_Test::Var_Struct& inout =
- this->inout_.the_var_struct ();
- const Param_Test::Var_Struct& out =
- this->out_->the_var_struct ();
- const Param_Test::Var_Struct& ret =
- this->ret_->the_var_struct ();
-
- if (!(ACE_OS::strcmp (in.dummy1.in (),
- inout.dummy1.in ()) == 0
- && ACE_OS::strcmp (in.dummy2.in (),
- inout.dummy2.in ()) == 0)
- || !(ACE_OS::strcmp (in.dummy1.in (),
- out.dummy1.in ()) == 0
- && ACE_OS::strcmp (in.dummy2.in (),
- out.dummy2.in ()) == 0)
- || !(ACE_OS::strcmp (in.dummy1.in (),
- ret.dummy1.in ()) == 0
- && ACE_OS::strcmp (in.dummy2.in (),
- ret.dummy2.in ()) == 0))
- return 0;
-
- if (in.seq.length () != inout.seq.length ()
- || in.seq.length () != out.seq.length ()
- || in.seq.length () != ret.seq.length ())
- return 0;
-
- CORBA::ULong len = in.seq.length ();
- for (CORBA::ULong i = 0; i != len; ++i)
- {
- if (ACE_OS::strcmp (in.seq[i].in (),
- inout.seq[i].in ())
- || ACE_OS::strcmp (in.seq[i].in (),
- out.seq[i].in ())
- || ACE_OS::strcmp (in.seq[i].in (),
- ret.seq[i].in ()))
- return 0;
- }
- }
- break;
- case 11:
- {
- const Param_Test::Fixed_Struct& in =
- this->in_.the_fixed_struct ();
- const Param_Test::Fixed_Struct& inout =
- this->inout_.the_fixed_struct ();
- const Param_Test::Fixed_Struct& out =
- this->out_->the_fixed_struct ();
- const Param_Test::Fixed_Struct& ret =
- this->ret_->the_fixed_struct ();
-
- if (! (in.l == inout.l
- && in.c == inout.c
- && in.s == inout.s
- && in.o == inout.o
- && in.f == inout.f
- && in.b == inout.b
- && in.d == inout.d)
- || !(in.l == out.l
- && in.c == out.c
- && in.s == out.s
- && in.o == out.o
- && in.f == out.f
- && in.b == out.b
- && in.d == out.d)
- || !(in.l == ret.l
- && in.c == ret.c
- && in.s == ret.s
- && in.o == ret.o
- && in.f == ret.f
- && in.b == ret.b
- && in.d == ret.d))
- return 0;
- }
- break;
- }
-
- return 1;
-}
-
-CORBA::Boolean
-Test_Big_Union::check_validity (CORBA::Request_ptr req)
-{
- ACE_UNUSED_ARG (req);
- return this->check_validity ();
-}
-
-void
-Test_Big_Union::print_values (void)
-{
-}
diff --git a/TAO/tests/Param_Test/big_union.h b/TAO/tests/Param_Test/big_union.h
deleted file mode 100644
index fe7ded6b525..00000000000
--- a/TAO/tests/Param_Test/big_union.h
+++ /dev/null
@@ -1,94 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// big_union.h
-//
-// = DESCRIPTION
-// Tests Anys
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_BIG_UNION_H
-#define PARAM_TEST_BIG_UNION_H
-
-#include "param_testCli.h"
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test Anys
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-class Test_Big_Union
-{
-public:
- Test_Big_Union (void);
- // ctor
-
- ~Test_Big_Union (void);
- // dtor
-
- enum {
- BIG_UNION_N_BRANCHES = 12
- };
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-private:
- char *opname_;
- // operation name
-
- Coffee_var cobj_;
- // Coffee object used to test Big_Union with object.
-
- static size_t counter;
- // test counter.
-
- Param_Test::Big_Union in_;
- // in parameter
-
- Param_Test::Big_Union inout_;
- // inout parameter
-
- Param_Test::Big_Union_var out_;
- // out parameter
-
- Param_Test::Big_Union_var ret_;
- // return value
-};
-
-#endif /* PARAM_TEST_BIG_UNION_H */
diff --git a/TAO/tests/Param_Test/client.cpp b/TAO/tests/Param_Test/client.cpp
deleted file mode 100644
index c464dc580fd..00000000000
--- a/TAO/tests/Param_Test/client.cpp
+++ /dev/null
@@ -1,267 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// client.cpp
-//
-// = DESCRIPTION
-// This file contains the implementation of the client-side of the
-// Param_Test application.
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#if !defined (CLIENT_CPP)
-#define CLIENT_CPP
-
-#include "options.h"
-#include "results.h"
-#include "client.h"
-
-ACE_RCSID(Param_Test, client, "$Id$")
-
-// Constructor.p
-template <class T>
-Param_Test_Client<T>::Param_Test_Client (CORBA::ORB_ptr orb,
- Param_Test_ptr objref,
- T *t)
- : orb_ (orb),
- param_test_ (objref),
- test_object_ (t)
-{
-}
-
-// destructor
-template <class T>
-Param_Test_Client<T>::~Param_Test_Client (void)
-{
- delete this->test_object_;
-}
-
-// All the individual tests.
-template <class T> int
-Param_Test_Client<T>::run_sii_test (void)
-{
- CORBA::ULong i; // loop index
- CORBA::Environment env; // to track errors
- Options *opt = OPTIONS::instance (); // get the options
- const char *opname = this->test_object_->opname (); // operation
-
- ACE_DEBUG ((LM_DEBUG,
- "********** %s SII *********\n",
- opname));
-
- // Initialize call count and error count.
- this->results_.call_count (0);
- this->results_.error_count (0);
- this->results_.iterations (opt->loop_count ());
-
- // Initialize parameters for the test.
- if (this->test_object_->init_parameters (this->param_test_, env) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "(%N:%l) client.cpp - run_sii_test:"
- "init_parameters failed for opname - %s",
- opname), -1);
-
- // Make the calls in a loop.
- for (i = 0; i < opt->loop_count (); i++)
- {
- this->results_.call_count (this->results_.call_count () + 1);
- if (opt->debug ())
- ACE_DEBUG ((LM_DEBUG, "\n****** Before call values *****\n"));
-
- // start the timing
- this->results_.start_timer ();
-
- // make the call
- if (this->test_object_->run_sii_test (this->param_test_, env) == -1)
- {
- this->results_.error_count (this->results_.error_count () + 1);
- env.print_exception (opname);
- ACE_ERROR ((LM_ERROR,
- "(%N:%l) client.cpp - run_sii_test:"
- "run_sii_test exception in iteration %d",
- i));
- continue;
- }
- // stop the timer.
- this->results_.stop_timer ();
-
- // now check if the values returned are as expected
- if (opt->debug ())
- {
- ACE_DEBUG ((LM_DEBUG, "\n****** After call values *****\n"));
- this->test_object_->print_values ();
- }
-
- if (!this->test_object_->check_validity ())
- {
- this->results_.error_count (this->results_.error_count () + 1);
- ACE_ERROR ((LM_ERROR,
- "(%N:%l) client.cpp - run_sii_test: "
- "Invalid results in iteration %d - ",
- i));
- continue;
- }
- // reset parameters for the test.
- if (this->test_object_->reset_parameters () == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "(%N:%l) client.cpp - run_sii_test:"
- "init_parameters failed for opname - %s",
- opname), -1);
- }
-
- // print statistics
- this->results_.print_stats ();
- if (this->results_.error_count () != 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "********** Error running %s SII *********\n",
- opname));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG,
- "********** Finished running %s SII *********\n",
- opname));
- }
- return this->results_.error_count ()? -1:0;
-}
-
-// use DII
-template <class T> int
-Param_Test_Client<T>::run_dii_test (void)
-{
- const char *opname = this->test_object_->opname ();
- Options *opt = OPTIONS::instance ();
- CORBA::Environment env; // environment
-
- ACE_DEBUG ((LM_DEBUG,
- "********** %s DII *********\n",
- opname));
-
- // initialize call count and error count
- this->results_.call_count (0);
- this->results_.error_count (0);
- this->results_.iterations (opt->loop_count ());
-
- // initialize parameters for the test
- if (this->test_object_->init_parameters (this->param_test_, env) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "(%N:%l) client.cpp - run_dii_test:"
- "init_parameters failed for opname - %s",
- opname), -1);
-
- // Make the calls in a loop.
- for (CORBA::ULong i = 0; i < opt->loop_count (); i++)
- {
- this->results_.call_count (this->results_.call_count () + 1);
-
- // start the timing. We measure the entire overhead of DII, including the
- // time required to create and populate the NVList
- this->results_.start_timer ();
-
- // first create the argument list (length 0 because args are *added*)
- CORBA::NVList_ptr nvlist;
-
- this->orb_->create_list (0, nvlist);
-
- // then the result holder (length 1 because value is *replaced*)
- CORBA::NVList_var retval;
- this->orb_->create_list (1, retval.out ());
-
- // add arguments and typecode for return valueto the NVList
- if (this->test_object_->add_args (nvlist,
- retval.in (),
- env) == -1)
- {
- this->results_.error_count (this->results_.error_count () + 1);
- env.print_exception (opname);
- ACE_ERROR ((LM_ERROR,
- "(%N:%l) client.cpp - "
- "Failed to add args in iteration %d",
- i));
- continue;
- }
-
- // create the request
- CORBA::Request_var req;
- CORBA::NamedValue_ptr result =
- CORBA::NamedValue::_duplicate (retval->item (0, env));
- this->param_test_->_create_request (opname,
- nvlist,
- result,
- req.out (),
- 0, //CORBA::OUT_LIST_MEMORY,
- env);
- // The OUT_LIST_MEMORY is to be used when the ORB assumes that
- // we will provide the top-level storage. With 0, the returned
- // values for ret, inout, and out parameters are all owned by
- // the ORB and hence we must not free them explicitly.
-
- if (opt->debug ())
- ACE_DEBUG ((LM_DEBUG, "\n****** Before call values *****\n"));
-
- // Make the invocation, verify the result.
- TAO_TRY_VAR (*req->env ())
- {
- this->test_object_->dii_req_invoke (req);
- TAO_CHECK_ENV;
- }
- TAO_CATCHANY
- {
- this->results_.error_count (this->results_.error_count () + 1);
- req->env ()->print_exception (opname);
- continue;
- }
- TAO_ENDTRY;
-
- if (opt->debug ())
- {
- ACE_DEBUG ((LM_DEBUG, "\n****** After call values *****\n"));
- this->test_object_->print_values ();
- }
- // now check if the values returned are as expected
- if (!this->test_object_->check_validity (req.in ()))
- {
- this->results_.error_count (this->results_.error_count () + 1);
- ACE_ERROR ((LM_ERROR,
- "(%N:%l) client.cpp - "
- "Invalid results in run_dii_test in iteration %d",
- i));
- continue;
- }
-
- // stop the this->results_.
- this->results_.stop_timer ();
-
- // reset parameters for the test
- this->test_object_->reset_parameters ();
-
- } // for loop
-
- // print statistics
- this->results_.print_stats ();
- if (this->results_.error_count () != 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "********** Error running %s DII *********\n",
- opname));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG,
- "********** Finished running %s DII *********\n",
- opname));
- }
- return this->results_.error_count ()? -1:0;
-}
-
-
-#endif /* CLIENT_CPP */
diff --git a/TAO/tests/Param_Test/client.dsp b/TAO/tests/Param_Test/client.dsp
deleted file mode 100644
index 0785393dc85..00000000000
--- a/TAO/tests/Param_Test/client.dsp
+++ /dev/null
@@ -1,459 +0,0 @@
-# Microsoft Developer Studio Project File - Name="Param_Test Client" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=Param_Test Client - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "client.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "client.mak" CFG="Param_Test Client - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "Param_Test Client - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Param_Test Client - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "Param_Test Client - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\..\\" /I "..\..\..\\" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX"helper.h" /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 ace.lib tao.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\tao" /libpath:"..\..\..\ace"
-
-!ELSEIF "$(CFG)" == "Param_Test Client - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Debug\client"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\\" /I "..\..\..\\" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX"helper.h" /FD /c
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 TAOd.lib aced.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\tao" /libpath:"..\..\..\ace"
-
-!ENDIF
-
-# Begin Target
-
-# Name "Param_Test Client - Win32 Release"
-# Name "Param_Test Client - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter ".cpp"
-# Begin Source File
-
-SOURCE=.\any.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\bd_long_seq.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\bd_short_seq.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\bd_str_seq.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\bd_string.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\bd_struct_seq.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\big_union.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\client.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\driver.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\except.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\fixed_array.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\fixed_struct.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\helper.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\nested_struct.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\objref.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\objref_struct.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\options.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\param_testCli.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\param_testSer.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\results.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\short.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\tmplinst.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\typecode.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\ub_any_seq.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\ub_long_seq.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\ub_objref_seq.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\ub_short_seq.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\ub_str_seq.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\ub_string.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\ub_struct_seq.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\ulonglong.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\var_array.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\var_struct.cpp
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter ".h"
-# Begin Source File
-
-SOURCE=.\any.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\bd_long_seq.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\bd_short_seq.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\bd_str_seq.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\bd_string.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\bd_struct_seq.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\big_union.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\client.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\driver.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\except.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\fixed_array.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\fixed_struct.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\helper.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\longlong.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\nested_struct.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\objref.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\objref_struct.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\options.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\Param_TestCli.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\Param_TestSer.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\results.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\short.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\typecode.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ub_any_seq.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ub_long_seq.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ub_objref_seq.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ub_short_seq.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ub_str_seq.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ub_string.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ub_struct_seq.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\ulonglong.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\var_array.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\var_struct.h
-# End Source File
-# End Group
-# Begin Group "Inline Files"
-
-# PROP Default_Filter ".i"
-# Begin Source File
-
-SOURCE=.\Param_TestC.i
-# End Source File
-# Begin Source File
-
-SOURCE=.\Param_TestS.i
-# End Source File
-# End Group
-# Begin Group "IDL Files"
-
-# PROP Default_Filter ".idl"
-# Begin Source File
-
-SOURCE=.\param_test.idl
-
-!IF "$(CFG)" == "Param_Test Client - Win32 Release"
-
-# PROP Ignore_Default_Tool 1
-USERDEP__PARAM="..\..\..\bin\Release\tao_idl.exe"
-# Begin Custom Build - Invoking TAO_IDL Compiler
-InputPath=.\param_test.idl
-InputName=param_test
-
-BuildCmds= \
- tao_idl -hc Cli.h -hs Ser.h -hT Ser_T.h -cs Cli.cpp -ci Cli.i -ss Ser.cpp -sT Ser_T.cpp -si Ser.i -st Ser_T.i $(InputName).idl
-
-"$(InputName)Cli.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Cli.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Cli.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Ser.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Ser.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Ser.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Ser_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Ser_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Ser_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-# End Custom Build
-
-!ELSEIF "$(CFG)" == "Param_Test Client - Win32 Debug"
-
-# PROP Ignore_Default_Tool 1
-USERDEP__PARAM="..\..\..\bin\tao_idl.exe"
-# Begin Custom Build - Invoking TAO_IDL Compiler
-InputPath=.\param_test.idl
-InputName=param_test
-
-BuildCmds= \
- tao_idl -hc Cli.h -hs Ser.h -hT Ser_T.h -cs Cli.cpp -ci Cli.i -ss Ser.cpp -sT Ser_T.cpp -si Ser.i -st Ser_T.i $(InputName).idl
-
-"$(InputName)Cli.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Cli.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Cli.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Ser.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Ser.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Ser.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Ser_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Ser_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Ser_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-# End Custom Build
-
-!ENDIF
-
-# End Source File
-# End Group
-# End Target
-# End Project
diff --git a/TAO/tests/Param_Test/client.h b/TAO/tests/Param_Test/client.h
deleted file mode 100644
index adab6ad81fc..00000000000
--- a/TAO/tests/Param_Test/client.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// -*- c++ -*-
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// client.h
-//
-// = DESCRIPTION
-// Header file for the Param_Test client application.
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_CLIENT_H
-#define PARAM_TEST_CLIENT_H
-
-#include "param_testCli.h"
-#include "results.h"
-
-template <class T>
-class Param_Test_Client
-{
- // = TITLE
- // Param_Test_Client
- //
- // = DESCRIPTION
- // This class declares an interface to run the example client for
- // Param_Test CORBA server. All the complexity for initializing
- // the client is hidden in the class. Just the run () interface
- // is needed. The template class does the specific work of making
- // the request of the desired data type
-public:
- typedef T TEST_OBJECT;
-
- // = Constructor and destructor.
- Param_Test_Client (CORBA::ORB_ptr orb,
- Param_Test_ptr objref,
- T *);
-
- ~Param_Test_Client (void);
-
- int run_sii_test (void);
- // run the SII test
-
- int run_dii_test (void);
- // run the DII test
-
-private:
- CORBA::ORB_ptr orb_;
- // underlying ORB
-
- Param_Test_ptr param_test_;
- // param test object reference
-
- TEST_OBJECT *test_object_;
- // object doing the actual work
-
- Results results_;
- // results
-};
-
-#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
-#include "client.cpp"
-#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
-
-#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
-#pragma implementation ("client.cpp")
-#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
-
-#endif /* CLIENTS_H */
diff --git a/TAO/tests/Param_Test/driver.cpp b/TAO/tests/Param_Test/driver.cpp
deleted file mode 100644
index ba33b194b12..00000000000
--- a/TAO/tests/Param_Test/driver.cpp
+++ /dev/null
@@ -1,545 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// driver.cpp
-//
-// = DESCRIPTION
-// Driver program
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "driver.h"
-#include "results.h"
-#include "client.h"
-#include "tests.h"
-#include "ace/Get_Opt.h"
-
-ACE_RCSID(Param_Test, driver, "$Id$")
-
-// This function runs the test (main program)
-int
-main (int argc, char **argv)
-{
- // get an instance of the driver object
- Driver drv;
-
- // initialize the driver
- if (drv.init (argc, argv) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "(%N:%l) driver.cpp - "
- "Driver initialization failed\n"),
- -1);
-
- // run various tests
- if (drv.run () == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "(%N:%l) driver.cpp - "
- "tests failed\n"),
- -1);
- return 0;
-}
-
-// constructor
-Driver::Driver (void)
-{
-}
-
-Driver::~Driver (void)
-{
-}
-
-// initialize the driver
-int
-Driver::init (int argc, char **argv)
-{
- // environment to track exceptions
- CORBA::Environment env;
-
- // retrieve the instance of Options
- Options *opt = OPTIONS::instance ();
-
- // Retrieve the underlying ORB
- this->orb_ = CORBA::ORB_init (argc,
- argv,
- "internet",
- env);
-
- if (env.exception () != 0)
- {
- env.print_exception ("ORB initialization");
- return -1;
- }
-
- // Parse command line and verify parameters.
- if (opt->parse_args (argc, argv) == -1)
- ACE_ERROR_RETURN ((LM_ERROR,
- "(%N:%l) driver.cpp - "
- "parse_args failed\n"),
- -1);
-
- // Retrieve a Param_Test object reference
- CORBA::Object_var temp =
- this->orb_->string_to_object (opt->param_test_ior (), env);
- if (env.exception () != 0)
- {
- env.print_exception ("ORB::string_to_object() failed.");
- return -1;
- }
-
- if (CORBA::is_nil (temp.in()))
- ACE_ERROR_RETURN ((LM_ERROR,
- "ORB::string_to_object() returned null object for IOR <%s>\n",
- opt->param_test_ior ()),
- -1);
-
- this->objref_ = Param_Test::_narrow (temp.in(), env);
- if (env.exception () != 0)
- {
- env.print_exception ("Param_Test::_narrow failed");
- return -1;
- }
-
- return 0;
-}
-
-int
-Driver::run (void)
-{
- // serves as a factory of Param_Client objects. It is also responsible to
- // start the test
-
- Options *opt = OPTIONS::instance (); // get the options object
- int retstatus = -1;
-
- switch (opt->test_type ())
- {
- case Options::TEST_SHORT:
- {
- Param_Test_Client<Test_Short> *client = new
- Param_Test_Client<Test_Short> (this->orb_.in (),
- this->objref_.in(),
- new Test_Short);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
- }
- break;
- case Options::TEST_ULONGLONG:
- {
- Param_Test_Client<Test_ULongLong> *client = new
- Param_Test_Client<Test_ULongLong> (this->orb_.in (),
- this->objref_.in(),
- new Test_ULongLong);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
- }
- break;
- case Options::TEST_UB_STRING:
- {
- Param_Test_Client<Test_Unbounded_String> *client = new
- Param_Test_Client<Test_Unbounded_String> (this->orb_.in (),
- this->objref_.in(),
- new Test_Unbounded_String);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
- }
- break;
- case Options::TEST_BD_STRING:
- {
- Param_Test_Client<Test_Bounded_String> *client = new
- Param_Test_Client<Test_Bounded_String> (this->orb_.in (),
- this->objref_.in(),
- new Test_Bounded_String);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
- }
- break;
- case Options::TEST_FIXED_STRUCT:
- {
- Param_Test_Client<Test_Fixed_Struct> *client = new
- Param_Test_Client<Test_Fixed_Struct> (this->orb_.in (),
- this->objref_.in(),
- new Test_Fixed_Struct);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
- }
- break;
- case Options::TEST_UB_STRING_SEQUENCE:
- {
- Param_Test_Client<Test_String_Sequence> *client = new
- Param_Test_Client<Test_String_Sequence> (this->orb_.in (),
- this->objref_.in(),
- new Test_String_Sequence);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
- }
- break;
- case Options::TEST_BD_STRING_SEQUENCE:
- {
- Param_Test_Client<Test_Bounded_String_Sequence> *client = new
- Param_Test_Client<Test_Bounded_String_Sequence> (this->orb_.in (),
- this->objref_.in(),
- new Test_Bounded_String_Sequence);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
- }
- break;
- case Options::TEST_VAR_STRUCT:
- {
- Param_Test_Client<Test_Var_Struct> *client = new
- Param_Test_Client<Test_Var_Struct> (this->orb_.in (),
- this->objref_.in(),
- new Test_Var_Struct);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
- }
- break;
- case Options::TEST_NESTED_STRUCT:
- {
- Param_Test_Client<Test_Nested_Struct> *client = new
- Param_Test_Client<Test_Nested_Struct> (this->orb_.in (),
- this->objref_.in(),
- new Test_Nested_Struct);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
- }
- break;
-
- case Options::TEST_OBJREF_STRUCT:
- {
- Param_Test_Client<Test_Objref_Struct> *client = new
- Param_Test_Client<Test_Objref_Struct> (this->orb_.in (),
- this->objref_.in(),
- new Test_Objref_Struct);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
- }
- break;
-
- case Options::TEST_UB_STRUCT_SEQUENCE:
- {
- Param_Test_Client<Test_Struct_Sequence> *client = new
- Param_Test_Client<Test_Struct_Sequence> (this->orb_.in (),
- this->objref_.in(),
- new Test_Struct_Sequence);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
-
- Param_Test_Client<Test_Unbounded_Struct_Sequence> *client2 = new
- Param_Test_Client<Test_Unbounded_Struct_Sequence>
- (this->orb_.in (),
- this->objref_.in(),
- new Test_Unbounded_Struct_Sequence);
-
- if (opt->invoke_type () == Options::SII)
- retstatus = client2->run_sii_test ();
- else
- retstatus = client2->run_dii_test ();
- delete client2;
- }
- break;
- case Options::TEST_BD_STRUCT_SEQUENCE:
- {
- Param_Test_Client<Test_Bounded_Struct_Sequence> *client = new
- Param_Test_Client<Test_Bounded_Struct_Sequence> (this->orb_.in (),
- this->objref_.in(),
- new Test_Bounded_Struct_Sequence);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
- }
- break;
- case Options::TEST_OBJREF:
- {
- Param_Test_Client<Test_ObjRef> *client = new
- Param_Test_Client<Test_ObjRef> (this->orb_.in (),
- this->objref_.in(),
- new Test_ObjRef);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
- }
- break;
- case Options::TEST_TYPECODE:
- {
- Param_Test_Client<Test_TypeCode> *client = new
- Param_Test_Client<Test_TypeCode> (this->orb_.in (),
- this->objref_.in(),
- new Test_TypeCode);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
- }
- break;
- case Options::TEST_ANY:
- {
- Param_Test_Client<Test_Any> *client = new
- Param_Test_Client<Test_Any> (this->orb_.in (),
- this->objref_.in(),
- new Test_Any);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
- }
- break;
- case Options::TEST_OBJREF_SEQUENCE:
- {
- Param_Test_Client<Test_ObjRef_Sequence> *client = new
- Param_Test_Client<Test_ObjRef_Sequence> (this->orb_.in (),
- this->objref_.in(),
- new Test_ObjRef_Sequence);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
- }
- break;
- case Options::TEST_ANYSEQ:
- {
- Param_Test_Client<Test_AnySeq> *client = new
- Param_Test_Client<Test_AnySeq> (this->orb_.in (),
- this->objref_.in(),
- new Test_AnySeq);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
- }
- break;
- case Options::TEST_UB_SHORTSEQ:
- {
- Param_Test_Client<Test_Short_Sequence> *client = new
- Param_Test_Client<Test_Short_Sequence> (this->orb_.in (),
- this->objref_.in(),
- new Test_Short_Sequence);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
- }
- break;
- case Options::TEST_BD_SHORTSEQ:
- {
- Param_Test_Client<Test_Bounded_Short_Sequence> *client = new
- Param_Test_Client<Test_Bounded_Short_Sequence> (this->orb_.in (),
- this->objref_.in(),
- new Test_Bounded_Short_Sequence);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
- }
- break;
- case Options::TEST_UB_LONGSEQ:
- {
- Param_Test_Client<Test_Long_Sequence> *client = new
- Param_Test_Client<Test_Long_Sequence> (this->orb_.in (),
- this->objref_.in(),
- new Test_Long_Sequence);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
- }
- break;
- case Options::TEST_BD_LONGSEQ:
- {
- Param_Test_Client<Test_Bounded_Long_Sequence> *client = new
- Param_Test_Client<Test_Bounded_Long_Sequence> (this->orb_.in (),
- this->objref_.in(),
- new Test_Bounded_Long_Sequence);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
- }
- break;
- case Options::TEST_FIXED_ARRAY:
- {
- Param_Test_Client<Test_Fixed_Array> *client = new
- Param_Test_Client<Test_Fixed_Array> (this->orb_.in (),
- this->objref_.in(),
- new Test_Fixed_Array);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
- }
- break;
- case Options::TEST_VAR_ARRAY:
- {
- Param_Test_Client<Test_Var_Array> *client = new
- Param_Test_Client<Test_Var_Array> (this->orb_.in (),
- this->objref_.in(),
- new Test_Var_Array);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
- }
- break;
-
- case Options::TEST_EXCEPTION:
- {
- Param_Test_Client<Test_Exception> *client = new
- Param_Test_Client<Test_Exception> (this->orb_.in (),
- this->objref_.in(),
- new Test_Exception);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
- }
- break;
-
- case Options::TEST_BIG_UNION:
- {
- Param_Test_Client<Test_Big_Union> *client = new
- Param_Test_Client<Test_Big_Union> (this->orb_.in (),
- this->objref_.in(),
- new Test_Big_Union);
- if (opt->invoke_type () == Options::SII)
- retstatus = client->run_sii_test ();
- else
- retstatus = client->run_dii_test ();
- delete client;
- }
- break;
-
- default:
- break;
- }
-
- TAO_TRY
- {
- if (opt->shutdown ())
- {
- this->objref_->shutdown (TAO_TRY_ENV);
- TAO_CHECK_ENV;
- }
- }
- TAO_CATCHANY
- {
- TAO_TRY_ENV.print_exception ("during shutdown");
- }
- TAO_ENDTRY;
-
- return retstatus;
-}
-
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-
-template class Param_Test_Client<Test_Short>;
-template class Param_Test_Client<Test_ULongLong>;
-template class Param_Test_Client<Test_Unbounded_String>;
-template class Param_Test_Client<Test_Bounded_String>;
-template class Param_Test_Client<Test_Fixed_Struct>;
-template class Param_Test_Client<Test_String_Sequence>;
-template class Param_Test_Client<Test_Bounded_String_Sequence>;
-template class Param_Test_Client<Test_Var_Struct>;
-template class Param_Test_Client<Test_Nested_Struct>;
-template class Param_Test_Client<Test_Objref_Struct>;
-template class Param_Test_Client<Test_Struct_Sequence>;
-template class Param_Test_Client<Test_Unbounded_Struct_Sequence>;
-template class Param_Test_Client<Test_Bounded_Struct_Sequence>;
-template class Param_Test_Client<Test_ObjRef>;
-template class Param_Test_Client<Test_ObjRef_Sequence>;
-template class Param_Test_Client<Test_TypeCode>;
-template class Param_Test_Client<Test_Any>;
-template class Param_Test_Client<Test_AnySeq>;
-template class Param_Test_Client<Test_Short_Sequence>;
-template class Param_Test_Client<Test_Bounded_Short_Sequence>;
-template class Param_Test_Client<Test_Long_Sequence>;
-template class Param_Test_Client<Test_Bounded_Long_Sequence>;
-template class Param_Test_Client<Test_Fixed_Array>;
-template class Param_Test_Client<Test_Var_Array>;
-template class Param_Test_Client<Test_Exception>;
-template class Param_Test_Client<Test_Big_Union>;
-
-#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-
-#pragma instantiate Param_Test_Client<Test_Short>
-#pragma instantiate Param_Test_Client<Test_ULongLong>
-#pragma instantiate Param_Test_Client<Test_Unbounded_String>
-#pragma instantiate Param_Test_Client<Test_Bounded_String>
-#pragma instantiate Param_Test_Client<Test_Fixed_Struct>
-#pragma instantiate Param_Test_Client<Test_String_Sequence>
-#pragma instantiate Param_Test_Client<Test_Bounded_String_Sequence>
-#pragma instantiate Param_Test_Client<Test_Var_Struct>
-#pragma instantiate Param_Test_Client<Test_Nested_Struct>
-#pragma instantiate Param_Test_Client<Test_Objref_Struct>
-#pragma instantiate Param_Test_Client<Test_Struct_Sequence>
-#pragma instantiate Param_Test_Client<Test_Unbounded_Struct_Sequence>
-#pragma instantiate Param_Test_Client<Test_Bounded_Struct_Sequence>
-#pragma instantiate Param_Test_Client<Test_ObjRef>
-#pragma instantiate Param_Test_Client<Test_ObjRef_Sequence>
-#pragma instantiate Param_Test_Client<Test_TypeCode>
-#pragma instantiate Param_Test_Client<Test_Any>
-#pragma instantiate Param_Test_Client<Test_AnySeq>
-#pragma instantiate Param_Test_Client<Test_Short_Sequence>
-#pragma instantiate Param_Test_Client<Test_Bounded_Short_Sequence>
-#pragma instantiate Param_Test_Client<Test_Long_Sequence>
-#pragma instantiate Param_Test_Client<Test_Bounded_Long_Sequence>
-#pragma instantiate Param_Test_Client<Test_Fixed_Array>
-#pragma instantiate Param_Test_Client<Test_Var_Array>
-#pragma instantiate Param_Test_Client<Test_Exception>
-#pragma instantiate Param_Test_Client<Test_Big_Union>
-
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
diff --git a/TAO/tests/Param_Test/driver.h b/TAO/tests/Param_Test/driver.h
deleted file mode 100644
index f436cfceaab..00000000000
--- a/TAO/tests/Param_Test/driver.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// -*- c++ -*-
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// driver.h
-//
-// = DESCRIPTION
-// Header file for the driver program. The driver is a singleton.
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef DRIVER_H
-#define DRIVER_H
-
-#include "options.h"
-#include "param_testCli.h"
-
-class Driver
-{
- // = TITLE
- // Driver
- //
- // = DESCRIPTION
- // Driver program for the client
-public:
- // = Constructor and destructor.
- Driver (void);
- ~Driver (void);
-
- int init (int argc, char **argv);
- // Initialize the driver object
-
- int run (void);
- // Execute client example code.
-
-private:
- CORBA::ORB_var orb_;
- // underlying ORB (we do not own it)
-
- Param_Test_var objref_;
- // object reference (we do not own it)
-};
-
-#endif /* !defined */
diff --git a/TAO/tests/Param_Test/except.cpp b/TAO/tests/Param_Test/except.cpp
deleted file mode 100644
index 7deac4a1413..00000000000
--- a/TAO/tests/Param_Test/except.cpp
+++ /dev/null
@@ -1,244 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// except.cpp
-//
-// = DESCRIPTION
-// tests exception
-//
-// = AUTHORS
-// Carlos O'Ryan
-//
-// ============================================================================
-
-#include "helper.h"
-#include "except.h"
-
-ACE_RCSID(Param_Test, except, "$Id$")
-
-// ************************************************************************
-// Test_Exception
-// ************************************************************************
-
-Test_Exception::Test_Exception (void)
- : opname_ (CORBA::string_dup ("test_exception"))
-{
-}
-
-Test_Exception::~Test_Exception (void)
-{
- CORBA::string_free (this->opname_);
- this->opname_ = 0;
-}
-
-const char *
-Test_Exception::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_Exception::dii_req_invoke (CORBA::Request *req)
-{
- TAO_TRY_VAR (*req->env ())
- {
- req->invoke ();
- TAO_CHECK_ENV;
- }
- TAO_CATCH (Param_Test::Ooops, ex)
- {
- if (TAO_debug_level > 0)
- {
- const char *reason = ex.reason.in ();
- if (reason == 0)
- reason = "nil";
- ACE_DEBUG ((LM_DEBUG,
- "Test_Exception::run_sii_test - "
- "expected user exception"
- " (%s,%d)\n", reason, ex.input));
- }
- this->inout_ = this->in_ * 2;
- this->out_ = this->in_ * 3;
- this->ret_ = this->in_ * 4;
- TAO_TRY_ENV.clear ();
-
- return;
- }
- TAO_CATCH (CORBA::UNKNOWN, ex)
- {
- if (TAO_debug_level > 0)
- {
- TAO_TRY_ENV.print_exception ("Test_Exception::run_sii_test - "
- "expected system exception\n");
- }
- this->inout_ = this->in_ * 2;
- this->out_ = this->in_ * 3;
- this->ret_ = this->in_ * 4;
- TAO_TRY_ENV.clear ();
-
- return;
- }
- TAO_CATCH (Param_Test::BadBoy, ex)
- {
- TAO_TRY_ENV.print_exception ("Test_Exception::run_sii_test - "
- " unexpected exception\n");
- TAO_RETHROW_SAME_ENV_RETURN_VOID;
- }
- TAO_ENDTRY;
-}
-
-int
-Test_Exception::init_parameters (Param_Test_ptr,
- CORBA::Environment &)
-{
- Generator *gen = GENERATOR::instance (); // value generator
-
- this->in_ = gen->gen_short ();
- this->inout_ = 0;
- return 0;
-}
-
-int
-Test_Exception::reset_parameters (void)
-{
- this->inout_ = 0;
- this->out_ = 0;
- this->ret_ = 0;
- return 0;
-}
-
-int
-Test_Exception::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &TAO_IN_ENV)
-{
- TAO_TRY
- {
- this->ret_ = objref->test_exception (this->in_,
- this->inout_,
- this->out_,
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- return 0;
- }
- TAO_CATCH (Param_Test::Ooops, ex)
- {
- if (TAO_debug_level > 0)
- {
- const char *reason = ex.reason.in ();
- if (reason == 0)
- reason = "nil";
- ACE_DEBUG ((LM_DEBUG,
- "Test_Exception::run_sii_test - "
- "expected user exception"
- " (%s,%d)\n", reason, ex.input));
- }
- this->inout_ = this->in_ * 2;
- this->out_ = this->in_ * 3;
- this->ret_ = this->in_ * 4;
- TAO_TRY_ENV.clear ();
-
- return 0;
- }
- TAO_CATCH (CORBA::UNKNOWN, ex)
- {
- if (TAO_debug_level > 0)
- {
- TAO_TRY_ENV.print_exception ("Test_Exception::run_sii_test - "
- "expected system exception\n");
- }
- this->inout_ = this->in_ * 2;
- this->out_ = this->in_ * 3;
- this->ret_ = this->in_ * 4;
- TAO_TRY_ENV.clear ();
-
- return 0;
- }
- TAO_CATCH (Param_Test::BadBoy, ex)
- {
- TAO_TRY_ENV.print_exception ("Test_Exception::run_sii_test - "
- " unexpected exception\n");
- TAO_RETHROW_RETURN (-1);
- }
- TAO_ENDTRY_RETURN (-1);
-}
-
-int
-Test_Exception::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- // we provide top level memory to the ORB to retrieve the data
- CORBA::Any in_arg (CORBA::_tc_ulong,
- &this->in_,
- 0);
-
- CORBA::Any inout_arg (CORBA::_tc_ulong,
- &this->inout_,
- 0);
-
- CORBA::Any out_arg (CORBA::_tc_ulong,
- &this->out_,
- 0);
-
- // add parameters
- param_list->add_value ("s1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("s2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("s3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value. Let the ORB allocate storage. We simply tell the ORB
- // what type we are expecting.
- retval->item (0, env)->value ()->replace (CORBA::_tc_ulong,
- &this->ret_,
- 0, // does not own
- env);
- return 0;
-}
-
-CORBA::Boolean
-Test_Exception::check_validity (void)
-{
- if (this->inout_ == this->in_ * 2 &&
- this->out_ == this->in_ * 3 &&
- this->ret_ == this->in_ * 4)
- return 1;
- return 0;
-}
-
-CORBA::Boolean
-Test_Exception::check_validity (CORBA::Request_ptr)
-{
- return this->check_validity ();
-}
-
-void
-Test_Exception::print_values (void)
-{
- ACE_DEBUG ((LM_DEBUG,
- "\n=*=*=*=*=*=*\n"
- "in = %d, "
- "inout = %d, "
- "out = %d, "
- "ret = %d\n"
- "\n=*=*=*=*=*=*\n",
- this->in_,
- this->inout_,
- this->out_,
- this->ret_));
-}
diff --git a/TAO/tests/Param_Test/except.h b/TAO/tests/Param_Test/except.h
deleted file mode 100644
index 0defca2bfbc..00000000000
--- a/TAO/tests/Param_Test/except.h
+++ /dev/null
@@ -1,80 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// except.h
-//
-// = DESCRIPTION
-// Tests system and user exceptions
-//
-// = AUTHORS
-// Carlos O'Ryan
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_EXCEPTION_H
-#define PARAM_TEST_EXCEPTION_H
-
-#include "param_testCli.h"
-
-class Test_Exception
-{
-public:
- Test_Exception (void);
- // ctor
-
- ~Test_Exception (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-private:
- char *opname_;
- // operation name
-
- CORBA::ULong in_;
- // in parameter
-
- CORBA::ULong inout_;
- // inout parameter
-
- CORBA::ULong out_;
- // out parameter
-
- CORBA::ULong ret_;
- // return value
-};
-
-#endif /* PARAM_TEST_EXCEPTION_H */
diff --git a/TAO/tests/Param_Test/fixed_array.cpp b/TAO/tests/Param_Test/fixed_array.cpp
deleted file mode 100644
index eb9d8ddb091..00000000000
--- a/TAO/tests/Param_Test/fixed_array.cpp
+++ /dev/null
@@ -1,189 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// fixed_array.cpp
-//
-// = DESCRIPTION
-// tests fixed size arrays
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "helper.h"
-#include "fixed_array.h"
-
-ACE_RCSID(Param_Test, fixed_array, "$Id$")
-
-// ************************************************************************
-// Test_Fixed_Array
-// ************************************************************************
-
-Test_Fixed_Array::Test_Fixed_Array (void)
- : opname_ (CORBA::string_dup ("test_fixed_array")),
- ret_ (new Param_Test::Fixed_Array)
-{
-}
-
-Test_Fixed_Array::~Test_Fixed_Array (void)
-{
- CORBA::string_free (this->opname_);
- this->opname_ = 0;
-}
-
-const char *
-Test_Fixed_Array::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_Fixed_Array::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-int
-Test_Fixed_Array::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Generator *gen = GENERATOR::instance (); // value generator
-
- ACE_UNUSED_ARG (objref);
- ACE_UNUSED_ARG (env);
-
- for (CORBA::ULong i=0; i < Param_Test::DIM1; i++)
- {
- this->in_ [i] = gen->gen_long ();
- }
-
- return 0;
-}
-
-int
-Test_Fixed_Array::reset_parameters (void)
-{
-
- for (CORBA::ULong i=0; i < Param_Test::DIM1; i++)
- {
- this->inout_ [i] = 0;
- this->out_ [i] = 0;
- }
- // free the return value array
- Param_Test::Fixed_Array_free (this->ret_._retn ());
- // needed for repeated DII calls
- this->ret_ = new Param_Test::Fixed_Array;
- return 0;
-}
-
-int
-Test_Fixed_Array::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- this->ret_ = objref->test_fixed_array (this->in_,
- this->inout_,
- this->out_,
- env);
- return (env.exception () ? -1:0);
-}
-
-int
-Test_Fixed_Array::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- // We provide the top level memory
- // the Any does not own any of these
- CORBA::Any in_arg (Param_Test::_tc_Fixed_Array,
- this->in_,
- 0);
-
- CORBA::Any inout_arg (Param_Test::_tc_Fixed_Array,
- this->inout_,
- 0);
-
- CORBA::Any out_arg (Param_Test::_tc_Fixed_Array,
- this->out_,
- 0);
-
- // add parameters
- param_list->add_value ("l1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("l2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("l3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value type
- retval->item (0, env)->value ()->replace (Param_Test::_tc_Fixed_Array,
- this->ret_.inout (),
- 0, // does not own
- env);
- return 0;
-}
-
-CORBA::Boolean
-Test_Fixed_Array::check_validity (void)
-{
- if (this->compare (this->in_, this->inout_) &&
- this->compare (this->in_, this->out_) &&
- this->compare (this->in_, this->ret_.in ()))
- return 1;
- else
- return 0;
-}
-
-CORBA::Boolean
-Test_Fixed_Array::check_validity (CORBA::Request_ptr req)
-{
- ACE_UNUSED_ARG (req);
- return this->check_validity ();
-}
-
-CORBA::Boolean
-Test_Fixed_Array::compare (const Param_Test::Fixed_Array_slice *a1,
- const Param_Test::Fixed_Array_slice *a2)
-{
- for (CORBA::ULong i=0; i < Param_Test::DIM1; i++)
- {
- if (a1[i] != a2[i])
- return 0;
- }
- return 1; // success
-}
-
-void
-Test_Fixed_Array::print_values (void)
-{
- ACE_DEBUG ((LM_DEBUG, "IN array\n"));
- this->print (this->in_);
- ACE_DEBUG ((LM_DEBUG, "INOUT array\n"));
- this->print (this->inout_);
- ACE_DEBUG ((LM_DEBUG, "OUT array\n"));
- this->print (this->out_);
- ACE_DEBUG ((LM_DEBUG, "RET array\n"));
- this->print (this->ret_.in ());
-}
-
-void
-Test_Fixed_Array::print (const Param_Test::Fixed_Array_slice *a)
-{
- for (CORBA::ULong i = 0; i < Param_Test::DIM1; i++)
- {
- ACE_DEBUG ((LM_DEBUG, "\t\tElement #%d = %d\n",i, a[i]));
- }
-}
diff --git a/TAO/tests/Param_Test/fixed_array.h b/TAO/tests/Param_Test/fixed_array.h
deleted file mode 100644
index db382fd6f9b..00000000000
--- a/TAO/tests/Param_Test/fixed_array.h
+++ /dev/null
@@ -1,91 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// fixed_array.h
-//
-// = DESCRIPTION
-// Tests fixed size array
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_FIXED_ARRAY_H
-#define PARAM_TEST_FIXED_ARRAY_H
-
-#include "param_testCli.h"
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test fixed arrays
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-class Test_Fixed_Array
-{
-public:
- Test_Fixed_Array (void);
- // ctor
-
- ~Test_Fixed_Array (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-private:
- CORBA::Boolean compare (const Param_Test::Fixed_Array_slice *a1,
- const Param_Test::Fixed_Array_slice *a2);
- // compare arrays
-
- void print (const Param_Test::Fixed_Array_slice *a);
- // print an array
-
- char *opname_;
- // operation name
-
- Param_Test::Fixed_Array in_;
- // in parameter
-
- Param_Test::Fixed_Array inout_;
- // inout parameter
-
- Param_Test::Fixed_Array out_;
- // out parameter
-
- Param_Test::Fixed_Array_var ret_;
- // return value
-};
-
-#endif /* PARAM_TEST_FIXED_ARRAY_H */
diff --git a/TAO/tests/Param_Test/fixed_struct.cpp b/TAO/tests/Param_Test/fixed_struct.cpp
deleted file mode 100644
index 863ddd48ed8..00000000000
--- a/TAO/tests/Param_Test/fixed_struct.cpp
+++ /dev/null
@@ -1,245 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// fixed_struct.cpp
-//
-// = DESCRIPTION
-// tests fixed sized structs
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "helper.h"
-#include "fixed_struct.h"
-
-ACE_RCSID(Param_Test, fixed_struct, "$Id$")
-
-// ************************************************************************
-// Test_Fixed_Struct
-// ************************************************************************
-
-Test_Fixed_Struct::Test_Fixed_Struct (void)
- : opname_ (CORBA::string_dup ("test_fixed_struct"))
-{
-}
-
-Test_Fixed_Struct::~Test_Fixed_Struct (void)
-{
- CORBA::string_free (this->opname_);
- this->opname_ = 0;
-}
-
-const char *
-Test_Fixed_Struct::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_Fixed_Struct::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-int
-Test_Fixed_Struct::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Generator *gen = GENERATOR::instance (); // value generator
-
- ACE_UNUSED_ARG (objref);
- ACE_UNUSED_ARG (env);
-
- this->in_ = gen->gen_fixed_struct ();
- ACE_OS::memset (&this->inout_,
- 0,
- sizeof (Param_Test::Fixed_Struct));
- return 0;
-}
-
-int
-Test_Fixed_Struct::reset_parameters (void)
-{
- ACE_OS::memset (&this->inout_,
- 0,
- sizeof (Param_Test::Fixed_Struct));
-
- ACE_OS::memset (&this->out_,
- 0,
- sizeof (Param_Test::Fixed_Struct));
-
- ACE_OS::memset (&this->ret_,
- 0,
- sizeof (Param_Test::Fixed_Struct));
-
- return 0;
-}
-
-int
-Test_Fixed_Struct::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- this->ret_ = objref->test_fixed_struct (this->in_,
- this->inout_,
- this->out_,
- env);
- return (env.exception () ? -1:0);
-}
-
-int
-Test_Fixed_Struct::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- // We provide the top level memory
- // the Any does not own any of these
- CORBA::Any in_arg (Param_Test::_tc_Fixed_Struct,
- &this->in_,
- 0);
-
- CORBA::Any inout_arg (Param_Test::_tc_Fixed_Struct,
- &this->inout_,
- 0);
-
- CORBA::Any out_arg (Param_Test::_tc_Fixed_Struct,
- &this->out_,
- 0);
-
- // add parameters
- param_list->add_value ("s1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("s2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("s3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value type
- retval->item (0, env)->value ()->replace (Param_Test::_tc_Fixed_Struct,
- &this->ret_,
- 0, // does not own
- env);
- return 0;
-}
-
-CORBA::Boolean
-Test_Fixed_Struct::check_validity (void)
-{
- if (this->in_.l == this->inout_.l &&
- this->in_.c == this->inout_.c &&
- this->in_.s == this->inout_.s &&
- this->in_.o == this->inout_.o &&
- this->in_.f == this->inout_.f &&
- this->in_.b == this->inout_.b &&
- this->in_.d == this->inout_.d &&
- this->in_.l == this->out_.l &&
- this->in_.c == this->out_.c &&
- this->in_.s == this->out_.s &&
- this->in_.o == this->out_.o &&
- this->in_.f == this->out_.f &&
- this->in_.b == this->out_.b &&
- this->in_.d == this->out_.d &&
- this->in_.l == this->ret_.l &&
- this->in_.c == this->ret_.c &&
- this->in_.s == this->ret_.s &&
- this->in_.o == this->ret_.o &&
- this->in_.f == this->ret_.f &&
- this->in_.b == this->ret_.b &&
- this->in_.d == this->ret_.d)
- return 1;
- else
- return 0;
-}
-
-CORBA::Boolean
-Test_Fixed_Struct::check_validity (CORBA::Request_ptr req)
-{
- ACE_UNUSED_ARG (req);
- return this->check_validity ();
-}
-
-void
-Test_Fixed_Struct::print_values (void)
-{
- ACE_DEBUG ((LM_DEBUG,
- "\n=*=*=*=*=*=*\n"
- "in = {\n"
- "\tl = %d\n"
- "\tc = %c\n"
- "\ts = %d\n"
- "\to = %x\n"
- "\tf = %f\n"
- "\tb = %d\n"
- "\td = %f\n"
- "}\n"
- "inout = {\n"
- "\tl = %d\n"
- "\tc = %c\n"
- "\ts = %d\n"
- "\to = %x\n"
- "\tf = %f\n"
- "\tb = %d\n"
- "\td = %f\n"
- "}\n"
- "out = {\n"
- "\tl = %d\n"
- "\tc = %c\n"
- "\ts = %d\n"
- "\to = %x\n"
- "\tf = %f\n"
- "\tb = %d\n"
- "\td = %f\n"
- "}\n"
- "ret = {\n"
- "\tl = %d\n"
- "\tc = %c\n"
- "\ts = %d\n"
- "\to = %x\n"
- "\tf = %f\n"
- "\tb = %d\n"
- "\td = %f\n"
- "}\n"
- "=*=*=*=*=*=*\n",
- this->in_.l,
- this->in_.c,
- this->in_.s,
- this->in_.o,
- this->in_.f,
- this->in_.b,
- this->in_.d,
- this->inout_.l,
- this->inout_.c,
- this->inout_.s,
- this->inout_.o,
- this->inout_.f,
- this->inout_.b,
- this->inout_.d,
- this->out_.l,
- this->out_.c,
- this->out_.s,
- this->out_.o,
- this->out_.f,
- this->out_.b,
- this->out_.d,
- this->ret_.l,
- this->ret_.c,
- this->ret_.s,
- this->ret_.o,
- this->ret_.f,
- this->ret_.b,
- this->ret_.d));
-}
diff --git a/TAO/tests/Param_Test/fixed_struct.h b/TAO/tests/Param_Test/fixed_struct.h
deleted file mode 100644
index aafd6a5e760..00000000000
--- a/TAO/tests/Param_Test/fixed_struct.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// fixed_struct.h
-//
-// = DESCRIPTION
-// Tests fixed size structs
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_FIXED_STRUCT_H
-#define PARAM_TEST_FIXED_STRUCT_H
-
-#include "param_testCli.h"
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test fixed structs
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-class Test_Fixed_Struct
-{
-public:
- Test_Fixed_Struct (void);
- // ctor
-
- ~Test_Fixed_Struct (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-private:
- char *opname_;
- // operation name
-
- Param_Test::Fixed_Struct in_;
- // in parameter
-
- Param_Test::Fixed_Struct inout_;
- // inout parameter
-
- Param_Test::Fixed_Struct out_;
- // out parameter
-
- Param_Test::Fixed_Struct ret_;
- // return value
-};
-
-#endif /* PARAM_TEST_FIXED_STRUCT_H */
diff --git a/TAO/tests/Param_Test/helper.cpp b/TAO/tests/Param_Test/helper.cpp
deleted file mode 100644
index ef81f429734..00000000000
--- a/TAO/tests/Param_Test/helper.cpp
+++ /dev/null
@@ -1,98 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// helper.cpp
-//
-// = DESCRIPTION
-// Defines a helper class that can generate values for the parameters used
-// for the Param_Test example
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "helper.h"
-
-const CORBA::ULong TEST_BUFSIZE = 128;
-
-ACE_RCSID(Param_Test, helper, "$Id$")
-
-Generator::Generator (void)
-{
-}
-
-Generator::~Generator (void)
-{
-}
-
-CORBA::Short
-Generator::gen_short (void)
-{
- return (CORBA::Short) (ACE_OS::rand () % TEST_BUFSIZE);
-}
-
-CORBA::Long
-Generator::gen_long (void)
-{
- return ::ACE_OS::rand () % TEST_BUFSIZE;
-}
-
-char *
-Generator::gen_string (void)
-{
- return gen_string (TEST_BUFSIZE);
-}
-
-char *
-Generator::gen_string (int max_length)
-{
- CORBA::ULong len = (CORBA::ULong) (::ACE_OS::rand () % max_length);
- char *buf = CORBA::string_alloc (len);
- CORBA::ULong i = 0;
-
- while (i < len)
- {
- int c = ACE_OS::rand () % 128;
- if (isprint (c) && !isspace (c))
- {
- buf [i] = c;
- i++;
- }
- }
- buf[i] = 0;
- return buf;
-}
-
-const Param_Test::Fixed_Struct
-Generator::gen_fixed_struct (void)
-{
- this->fixed_struct_.l = ACE_OS::rand ();
- this->fixed_struct_.c = ACE_OS::rand () % 128;
- this->fixed_struct_.s = (CORBA::Short) ACE_OS::rand ();
- this->fixed_struct_.o = ACE_OS::rand () % 128;
- this->fixed_struct_.f = (CORBA::Float) (ACE_OS::rand () * 1.0);
- this->fixed_struct_.b = (CORBA::Boolean) ACE_OS::rand () % 2;
- this->fixed_struct_.d = (ACE_OS::rand () * 1.0);
- return this->fixed_struct_;
-}
-
-const Param_Test::Step
-Generator::gen_step (void)
-{
- this->step_.name.id = this->gen_string ();
- this->step_.name.kind = this->gen_string ();
- this->step_.process = (CORBA::Boolean) ACE_OS::rand () % 2;
- return this->step_;
-}
-
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-template class ACE_Singleton<Generator, ACE_SYNCH_RECURSIVE_MUTEX>;
-#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-#pragma instantiate ACE_Singleton<Generator, ACE_SYNCH_RECURSIVE_MUTEX>
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
diff --git a/TAO/tests/Param_Test/helper.h b/TAO/tests/Param_Test/helper.h
deleted file mode 100644
index fb128fbfb2d..00000000000
--- a/TAO/tests/Param_Test/helper.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// helper.h
-//
-// = DESCRIPTION
-// Defines a helper class that can generate values for the parameters used
-// for the Param_Test example
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef HELPER_H
-#define HELPER_H
-
-#include "param_testCli.h"
-
-class Generator
-{
-public:
- Generator (void);
- // constructor
-
- ~Generator (void);
- // destructor
-
- CORBA::Short gen_short (void);
- CORBA::Long gen_long (void);
-#if 0
- CORBA::Char gen_char (void);
- CORBA::Octet gen_octet (void);
- CORBA::Float gen_float (void);
- CORBA::Double gen_double (void);
-#endif
- CORBA::String gen_string (void);
- CORBA::String gen_string (int maxlength);
- const Param_Test::Fixed_Struct gen_fixed_struct (void);
- const Param_Test::Step gen_step (void);
- private:
- Param_Test::Fixed_Struct fixed_struct_;
- Param_Test::Step step_;
-};
-
-typedef ACE_Singleton<Generator, ACE_SYNCH_RECURSIVE_MUTEX> GENERATOR;
-#endif /* HELPER_H */
diff --git a/TAO/tests/Param_Test/nested_struct.cpp b/TAO/tests/Param_Test/nested_struct.cpp
deleted file mode 100644
index 7e5667fdc6c..00000000000
--- a/TAO/tests/Param_Test/nested_struct.cpp
+++ /dev/null
@@ -1,193 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// nested_struct.cpp
-//
-// = DESCRIPTION
-// tests nested structs
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "helper.h"
-#include "nested_struct.h"
-
-ACE_RCSID(Param_Test, nested_struct, "$Id$")
-
-// ************************************************************************
-// Test_Nested_Struct
-// ************************************************************************
-
-Test_Nested_Struct::Test_Nested_Struct (void)
- : opname_ (CORBA::string_dup ("test_nested_struct")),
- inout_ (new Param_Test::Nested_Struct),
- out_ (new Param_Test::Nested_Struct),
- ret_ (new Param_Test::Nested_Struct)
-{
-}
-
-Test_Nested_Struct::~Test_Nested_Struct (void)
-{
- CORBA::string_free (this->opname_);
- this->opname_ = 0;
- // the other data members will be freed as they are "_var"s and objects
- // (rather than pointers to objects)
-}
-
-const char *
-Test_Nested_Struct::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_Nested_Struct::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-int
-Test_Nested_Struct::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Generator *gen = GENERATOR::instance (); // value generator
-
- ACE_UNUSED_ARG (objref);
- ACE_UNUSED_ARG (env);
-
- // get some sequence length (not more than 10)
- CORBA::ULong len = (CORBA::ULong) (gen->gen_long () % 10) + 1;
-
- // set the length of the sequence
- this->in_.vs.seq.length (len);
- // now set each individual element
- for (CORBA::ULong i=0; i < this->in_.vs.seq.length (); i++)
- {
- // generate some arbitrary string to be filled into the ith location in
- // the sequence
- char *str = gen->gen_string ();
- this->in_.vs.seq[i] = str;
- }
- return 0;
-}
-
-int
-Test_Nested_Struct::reset_parameters (void)
-{
- this->inout_ = new Param_Test::Nested_Struct; // delete the previous ones
- this->out_ = new Param_Test::Nested_Struct;
- this->ret_ = new Param_Test::Nested_Struct;
- return 0;
-}
-
-int
-Test_Nested_Struct::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Param_Test::Nested_Struct_out out (this->out_.out ());
- this->ret_ = objref->test_nested_struct (this->in_,
- this->inout_.inout (),
- out,
- env);
- return (env.exception () ? -1:0);
-}
-
-int
-Test_Nested_Struct::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- CORBA::Any in_arg (Param_Test::_tc_Nested_Struct,
- (void *) &this->in_,
- 0);
-
- CORBA::Any inout_arg (Param_Test::_tc_Nested_Struct,
- &this->inout_.inout (),
- 0);
-
- CORBA::Any out_arg (Param_Test::_tc_Nested_Struct,
- &this->out_.inout (), // .out () causes crash
- 0);
-
- // add parameters
- param_list->add_value ("s1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("s2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("s3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value
- retval->item (0, env)->value ()->replace (Param_Test::_tc_Nested_Struct,
- &this->ret_.inout (), // see above
- 0, // does not own
- env);
- return 0;
-}
-
-CORBA::Boolean
-Test_Nested_Struct::check_validity (void)
-{
- CORBA::Boolean flag = 0;
- if ((this->in_.vs.seq.length () == this->inout_->vs.seq.length ()) &&
- (this->in_.vs.seq.length () == this->out_->vs.seq.length ()) &&
- (this->in_.vs.seq.length () == this->ret_->vs.seq.length ()))
- {
- flag = 1; // assume all are equal
- // lengths are same. Now compare the contents
- for (CORBA::ULong i=0; i < this->in_.vs.seq.length () && flag; i++)
- {
- if (ACE_OS::strcmp (this->in_.vs.seq[i], this->inout_->vs.seq[i]) ||
- ACE_OS::strcmp (this->in_.vs.seq[i], this->out_->vs.seq[i]) ||
- ACE_OS::strcmp (this->in_.vs.seq[i], this->ret_->vs.seq[i]))
- // not equal
- flag = 0;
- }
- }
- return flag;
-}
-
-CORBA::Boolean
-Test_Nested_Struct::check_validity (CORBA::Request_ptr req)
-{
- ACE_UNUSED_ARG (req);
- return this->check_validity ();
-}
-
-void
-Test_Nested_Struct::print_values (void)
-{
- for (CORBA::ULong i=0; i < this->in_.vs.seq.length (); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "\n*=*=*=*=*=*=*=*=*=*=\n"
- "Element # %d\n"
- "in (len = %d): %s\n"
- "inout (len = %d): %s\n"
- "out (len = %d): %s\n"
- "ret (len = %d): %s\n",
- this->in_.vs.seq.length (),
- (this->in_.vs.seq.length ()? (const char *)this->in_.vs.seq[i]:"<nul>"),
- this->inout_->vs.seq.length (),
- (this->inout_->vs.seq.length ()? (const char *)this->inout_->vs.seq[i]:"<nul>"),
- this->out_->vs.seq.length (),
- (this->out_->vs.seq.length ()? (const char *)this->out_->vs.seq[i]:"<nul>"),
- this->ret_->vs.seq.length (),
- (this->ret_->vs.seq.length ()? (const char *)this->ret_->vs.seq[i]:"<nul>")));
- }
-}
diff --git a/TAO/tests/Param_Test/nested_struct.h b/TAO/tests/Param_Test/nested_struct.h
deleted file mode 100644
index 1dc0f33f3fe..00000000000
--- a/TAO/tests/Param_Test/nested_struct.h
+++ /dev/null
@@ -1,86 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// nested_struct.h
-//
-// = DESCRIPTION
-// Tests nested structures
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_NESTED_STRUCT_H
-#define PARAM_TEST_NESTED_STRUCT_H
-
-#include "param_testCli.h"
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test nested structs
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-
-class Test_Nested_Struct
-{
-public:
- Test_Nested_Struct (void);
- // ctor
-
- ~Test_Nested_Struct (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-private:
- char *opname_;
- // operation name
-
- Param_Test::Nested_Struct in_;
- // in parameter
-
- // these need memory management
- Param_Test::Nested_Struct_var inout_;
- // inout parameter
-
- Param_Test::Nested_Struct_var out_;
- // out parameter
-
- Param_Test::Nested_Struct_var ret_;
- // return value
-};
-
-#endif /* PARAM_TEST_NESTED_STRUCT_H */
diff --git a/TAO/tests/Param_Test/objref.cpp b/TAO/tests/Param_Test/objref.cpp
deleted file mode 100644
index 81779309ac1..00000000000
--- a/TAO/tests/Param_Test/objref.cpp
+++ /dev/null
@@ -1,334 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// objref.cpp
-//
-// = DESCRIPTION
-// tests object references
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "helper.h"
-#include "objref.h"
-
-ACE_RCSID(Param_Test, objref, "$Id$")
-
-// ************************************************************************
-// Test_ObjRef
-// ************************************************************************
-
-Test_ObjRef::Test_ObjRef (void)
- : opname_ (CORBA::string_dup ("test_objref")),
- in_courier (new CORBA::Object_ptr),
- inout_courier (new CORBA::Object_ptr),
- out_courier (new CORBA::Object_ptr),
- ret_courier (new CORBA::Object_ptr)
-{
-}
-
-Test_ObjRef::~Test_ObjRef (void)
-{
- CORBA::string_free (this->opname_);
- this->opname_ = 0;
-
- delete this->in_courier;
- delete this->inout_courier;
- delete this->out_courier;
- delete this->ret_courier;
-}
-
-const char *
-Test_ObjRef::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_ObjRef::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-static const char *Coffee_Flavor [] = {
- "Italian Roast",
- "Irish Creme",
- "Costa Rican",
- "Colombian Supremo",
- "Macademia Nut",
- "Swiss Chocolate Mocha"
-};
-
-int
-Test_ObjRef::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Coffee::Desc desc;
- Generator *gen = GENERATOR::instance (); // value generator
-
- // first get a Coffee object
- this->in_ = objref->make_coffee (env);
- if (env.exception ())
- {
- env.print_exception ("make_coffee");
- return -1;
- }
-
- // Get some index into Coffee_Flavor [].
- CORBA::ULong index = (CORBA::ULong) (gen->gen_long () % 6);
- desc.name = Coffee_Flavor [index];
- // set the attribute of the object
- this->in_->description (desc, env); // set the attribute for the in object
-
- if (env.exception ())
- {
- env.print_exception ("set coffee attribute");
- return -1;
- }
-
- this->inout_ = Coffee::_nil ();
- this->out_ = Coffee::_nil ();
- this->ret_ = Coffee::_nil ();
-
- // DII
- *this->in_courier = ACE_dynamic_cast (CORBA::Object_ptr,
- this->in_.in ());
- *this->inout_courier = ACE_dynamic_cast (CORBA::Object_ptr,
- this->inout_.in ());
- *this->out_courier = ACE_dynamic_cast (CORBA::Object_ptr,
- this->out_.in ());
- *this->ret_courier = ACE_dynamic_cast (CORBA::Object_ptr,
- this->ret_.in ());
-
- return 0;
-}
-
-int
-Test_ObjRef::reset_parameters (void)
-{
- CORBA::Environment env;
- Coffee::Desc desc;
- Generator *gen = GENERATOR::instance (); // value generator
-
- // Get some index into Coffee_Flavor [].
- CORBA::ULong index = (CORBA::ULong) (gen->gen_long () % 6);
- desc.name = Coffee_Flavor [index];
- // set the attribute of the object
- this->in_->description (desc, env); // set the attribute for the in object
-
- if (env.exception ())
- {
- env.print_exception ("set coffee attribute");
- return -1;
- }
-
- this->inout_ = Coffee::_nil ();
- this->out_ = Coffee::_nil ();
- this->ret_ = Coffee::_nil ();
-
- // DII
- *this->in_courier = ACE_dynamic_cast (CORBA::Object_ptr,
- this->in_.in ());
- *this->inout_courier = ACE_dynamic_cast (CORBA::Object_ptr,
- this->inout_.in ());
-
- return 0;
-}
-
-int
-Test_ObjRef::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Coffee_out out (this->out_.out ());
- this->ret_ = objref->test_objref (this->in_.in (),
- this->inout_.inout (),
- out,
- env);
- return (env.exception () ? -1:0);
-}
-
-int
-Test_ObjRef::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- CORBA::Any in_arg (_tc_Coffee,
- this->in_courier,
- 0);
-
- CORBA::Any inout_arg (_tc_Coffee,
- this->inout_courier,
- 0);
-
- CORBA::Any out_arg (_tc_Coffee,
- this->out_courier,
- 0);
-
- // Add parameters.
- param_list->add_value ("o1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("o2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("o3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // Add return value.
- retval->item (0, env)->value ()->replace (_tc_Coffee,
- this->ret_courier,
- 0, // does not own
- env);
-
- return 0;
-}
-
-CORBA::Boolean
-Test_ObjRef::check_validity (void)
-{
- CORBA::Environment env;
-
- Coffee::Desc_var in_desc =
- this->in_->description (env);
- if (env.exception ())
- {
- env.print_exception ("retrieving description");
- return 0;
- }
- const char* in = in_desc->name.in ();
-
- Coffee::Desc_var inout_desc =
- this->inout_->description (env);
- if (env.exception ())
- {
- env.print_exception ("retrieving description");
- return 0;
- }
- const char* inout = inout_desc->name.in ();
-
- Coffee::Desc_var out_desc =
- this->out_->description (env);
- if (env.exception ())
- {
- env.print_exception ("retrieving description");
- return 0;
- }
- const char* out = out_desc->name.in ();
-
- Coffee::Desc_var ret_desc =
- this->out_->description (env);
- if (env.exception ())
- {
- env.print_exception ("retrieving description");
- return 0;
- }
- const char* ret = ret_desc->name.in ();
-
- // now compare them
- if (!ACE_OS::strcmp (in, inout) &&
- !ACE_OS::strcmp (in, out) &&
- !ACE_OS::strcmp (in, ret))
- return 1; // success
- else
- return 0;
-}
-
-CORBA::Boolean
-Test_ObjRef::check_validity (CORBA::Request_ptr req)
-{
- ACE_UNUSED_ARG (req);
- CORBA::Environment env;
-
- // Narrow each checked variable into its _var before
- // calling check_validity().
-
- this->inout_ = Coffee::_narrow (*this->inout_courier, env);
- if (env.exception ())
- {
- env.print_exception ("_narrow from DII result");
- return 0;
- }
-
- this->out_ = Coffee::_narrow (*this->out_courier, env);
- if (env.exception ())
- {
- env.print_exception ("_narrow from DII result");
- return 0;
- }
-
- this->ret_ = Coffee::_narrow (*this->ret_courier, env);
- if (env.exception ())
- {
- env.print_exception ("_narrow from DII result");
- return 0;
- }
-
- return this->check_validity ();
-}
-
-void
-Test_ObjRef::print_values (void)
-{
- CORBA::Environment env;
-
- Coffee::Desc_var in_desc =
- this->in_->description (env);
- if (env.exception ())
- {
- env.print_exception ("retrieving description");
- return;
- }
- const char* in = in_desc->name.in ();
-
- Coffee::Desc_var inout_desc =
- this->inout_->description (env);
- if (env.exception ())
- {
- env.print_exception ("retrieving description");
- return;
- }
- const char* inout = inout_desc->name.in ();
-
- Coffee::Desc_var out_desc =
- this->out_->description (env);
- if (env.exception ())
- {
- env.print_exception ("retrieving description");
- return;
- }
- const char* out = out_desc->name.in ();
-
- Coffee::Desc_var ret_desc =
- this->out_->description (env);
- if (env.exception ())
- {
- env.print_exception ("retrieving description");
- return;
- }
- const char* ret = ret_desc->name.in ();
-
-
- ACE_DEBUG ((LM_DEBUG,
- "\n=*=*=*=*=*=*"
- "in = %s, "
- "inout = %s, "
- "out = %s, "
- "ret = %s*=*=*=*=*=\n",
- in,
- inout,
- out,
- ret));
-}
diff --git a/TAO/tests/Param_Test/objref.h b/TAO/tests/Param_Test/objref.h
deleted file mode 100644
index a325af0e40e..00000000000
--- a/TAO/tests/Param_Test/objref.h
+++ /dev/null
@@ -1,96 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// objref.h
-//
-// = DESCRIPTION
-// Tests object references
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_OBJREF_H
-#define PARAM_TEST_OBJREF_H
-
-#include "param_testCli.h"
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test objrefs
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-class Test_ObjRef
-{
-public:
- Test_ObjRef (void);
- // ctor
-
- ~Test_ObjRef (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-private:
- char *opname_;
- // operation name
-
- Coffee_var in_;
- // in parameter
-
- Coffee_var inout_;
- // inout parameter
-
- Coffee_var out_;
- // out parameter
-
- Coffee_var ret_;
- // return value
-
- // Need these for DII.
- // SII requests that involve aliased objref types can rely on
- // their stubs and skeletons to convert to CORBA::Object so the
- // ORB can deal with it. DII requests cannot convert for every
- // possible aliased objref type, so we must convert ourselves
- // before invoking the DII request, and use the interface's
- // _narrow() function when it returns.
- CORBA::Object_ptr *in_courier,
- *inout_courier,
- *out_courier,
- *ret_courier;
-};
-
-#endif /* PARAM_TEST_OBJREF_H */
diff --git a/TAO/tests/Param_Test/objref_struct.cpp b/TAO/tests/Param_Test/objref_struct.cpp
deleted file mode 100644
index 049c2b254c8..00000000000
--- a/TAO/tests/Param_Test/objref_struct.cpp
+++ /dev/null
@@ -1,211 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// objref_struct.cpp
-//
-// = DESCRIPTION
-// test structures containing object references.
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "helper.h"
-#include "objref_struct.h"
-
-ACE_RCSID(Param_Test, objref_struct, "$Id$")
-
-// ************************************************************************
-// Test_Objref_Struct
-// ************************************************************************
-
-Test_Objref_Struct::Test_Objref_Struct (void)
- : opname_ (CORBA::string_dup ("test_objref_struct")),
- inout_ (new Param_Test::Objref_Struct),
- out_ (new Param_Test::Objref_Struct),
- ret_ (new Param_Test::Objref_Struct)
-{
-}
-
-Test_Objref_Struct::~Test_Objref_Struct (void)
-{
- CORBA::string_free (this->opname_);
- this->opname_ = 0;
- // the other data members will be freed as they are "_var"s and objects
- // (rather than pointers to objects)
-}
-
-const char *
-Test_Objref_Struct::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_Objref_Struct::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-int
-Test_Objref_Struct::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Generator *gen = GENERATOR::instance (); // value generator
-
- // set the length of the sequence
- this->in_.x = gen->gen_long ();
- this->in_.y = objref->make_coffee (env);
- if (env.exception () != 0) return -1;
- Coffee::Desc d;
- d.name = gen->gen_string ();
- this->in_.y->description (d, env);
- if (env.exception () != 0) return -1;
-
- return 0;
-}
-
-int
-Test_Objref_Struct::reset_parameters (void)
-{
- this->inout_ = new Param_Test::Objref_Struct; // delete the previous ones
- this->out_ = new Param_Test::Objref_Struct;
- this->ret_ = new Param_Test::Objref_Struct;
- return 0;
-}
-
-int
-Test_Objref_Struct::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Param_Test::Objref_Struct_out out (this->out_.out ());
- this->ret_ = objref->test_objref_struct (this->in_,
- this->inout_.inout (),
- out,
- env);
- return (env.exception () ? -1:0);
-}
-
-int
-Test_Objref_Struct::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- CORBA::Any in_arg (Param_Test::_tc_Objref_Struct,
- &this->in_,
- 0);
-
- CORBA::Any inout_arg (Param_Test::_tc_Objref_Struct,
- &this->inout_.inout (), // .out () causes crash
- 0);
-
- CORBA::Any out_arg (Param_Test::_tc_Objref_Struct,
- &this->out_.inout (),
- 0);
-
- // add parameters
- param_list->add_value ("s1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("s2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("s3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value
- retval->item (0, env)->value ()->replace (Param_Test::_tc_Objref_Struct,
- &this->ret_.inout (), // see above
- 0, // does not own
- env);
- return 0;
-}
-
-
-CORBA::Boolean
-Test_Objref_Struct::check_validity (void)
-{
- if (this->in_.x != this->inout_->x
- || this->in_.x != this->out_->x
- || this->in_.x != this->ret_->x)
- return 0;
-
- CORBA::Environment env;
- if (CORBA::is_nil (this->in_.y.in ())
- || CORBA::is_nil (this->out_->y.in ())
- || CORBA::is_nil (this->ret_->y.in ())
- || CORBA::is_nil (this->inout_->y.in ()) )
- return 0;
-
- Coffee::Desc_var s_in = this->in_.y->description (env);
- if (env.exception () != 0) return 0;
- Coffee::Desc_var s_out = this->out_->y->description (env);
- if (env.exception () != 0) return 0;
- Coffee::Desc_var s_inout = this->inout_->y->description (env);
- if (env.exception () != 0) return 0;
- Coffee::Desc_var s_ret = this->ret_->y->description (env);
- if (env.exception () != 0) return 0;
-
- if (ACE_OS::strcmp (s_in->name, s_out->name) != 0
- || ACE_OS::strcmp (s_in->name, s_inout->name) != 0
- || ACE_OS::strcmp (s_in->name, s_ret->name) != 0 )
- return 0;
-
- return 1;
-}
-
-CORBA::Boolean
-Test_Objref_Struct::check_validity (CORBA::Request_ptr req)
-{
- ACE_UNUSED_ARG (req);
- return this->check_validity ();
-}
-
-void
-Test_Objref_Struct::print_values (void)
-{
- ACE_DEBUG ((LM_DEBUG,
- "\n*=*=*=*=*=*=*=*=*=*=\n"
- "in_.x = %d\n"
- "inout_.x = %d\n"
- "out_.x = %d\n"
- "ret_.x = %d\n",
- this->in_.x,
- this->inout_->x,
- this->out_->x,
- this->ret_->x ));
-
- CORBA::Environment env;
-
- Coffee::Desc_var s_in = this->in_.y->description (env);
- if (env.exception () != 0) return;
- Coffee::Desc_var s_out = this->out_->y->description (env);
- if (env.exception () != 0) return;
- Coffee::Desc_var s_inout = this->inout_->y->description (env);
- if (env.exception () != 0) return;
- Coffee::Desc_var s_ret = this->ret_->y->description (env);
- if (env.exception () != 0) return;
-
- ACE_DEBUG ((LM_DEBUG,
- "\n*=*=*=*=*=*=*=*=*=*=\n"
- "in_ name = %s\n"
- "inout_ name = %s\n"
- "out_ name = %s\n"
- "ret_ name = %s\n",
- s_in->name.in (),
- s_inout->name.in (),
- s_out->name.in (),
- s_ret->name.in () ));
-}
diff --git a/TAO/tests/Param_Test/objref_struct.h b/TAO/tests/Param_Test/objref_struct.h
deleted file mode 100644
index 69269cba196..00000000000
--- a/TAO/tests/Param_Test/objref_struct.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// objref_struct.h
-//
-// = DESCRIPTION
-// Tests variable sized structures
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_OBJREF_STRUCT_H
-#define PARAM_TEST_OBJREF_STRUCT_H
-
-#include "param_testCli.h"
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test variable sized structs
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-
-class Test_Objref_Struct
-{
-public:
- Test_Objref_Struct (void);
- // ctor
-
- ~Test_Objref_Struct (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
- // add args to NVList for DII
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-private:
- char *opname_;
- // operation name
-
- Param_Test::Objref_Struct in_;
- // in parameter
-
- // these need memory management
- Param_Test::Objref_Struct_var inout_;
- // inout parameter
-
- Param_Test::Objref_Struct_var out_;
- // out parameter
-
- Param_Test::Objref_Struct_var ret_;
- // return value
-};
-
-#endif /* PARAM_TEST_OBJREF_STRUCT_H */
diff --git a/TAO/tests/Param_Test/options.cpp b/TAO/tests/Param_Test/options.cpp
deleted file mode 100644
index 3a6b9c0e18e..00000000000
--- a/TAO/tests/Param_Test/options.cpp
+++ /dev/null
@@ -1,224 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// options.cpp
-//
-// = DESCRIPTION
-// Options for the Param_Test application
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "ace/Read_Buffer.h"
-#include "ace/Get_Opt.h"
-#include "options.h"
-
-ACE_RCSID(Param_Test, options, "$Id$")
-
-// Constructor.p
-Options::Options (void)
- : ior_ (0),
- test_type_ (Options::NO_TEST),
- invoke_type_ (Options::SII),
- loop_count_ (1),
- debug_ (0),
- shutdown_ (0)
-{
-}
-
-Options::~Options (void)
-{
- // Free resources
- CORBA::string_free (this->ior_);
- this->ior_ = 0;
-}
-
-// Parses the command line arguments and returns an error status.
-
-int
-Options::parse_args (int argc, char **argv)
-{
- ACE_Get_Opt get_opts (argc, argv, "xdn:f:i:t:k:");
- int c;
- int result;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'd': // debug flag
- TAO_debug_level++;
- this->debug_ = 1;
- break;
-
- case 'x':
- this->shutdown_ = 1;
- break;
-
- case 'n': // loop count
- this->loop_count_ = (CORBA::ULong) ACE_OS::atoi (get_opts.optarg);
- break;
-
- case 'f':
- result = this->read_ior (get_opts.optarg);
-
- if (result < 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Unable to read ior from %s : %p\n",
- get_opts.optarg),
- -1);
-
- break;
-
- case 'k':
- CORBA::string_free (this->ior_);
- this->ior_ = CORBA::string_copy (get_opts.optarg);
- break;
-
- case 'i': // invocation
- if (!ACE_OS::strcmp (get_opts.optarg, "dii"))
- this->invoke_type_ = Options::DII;
- break;
-
- case 't': // data type
- if (!ACE_OS::strcmp (get_opts.optarg, "short"))
- this->test_type_ = Options::TEST_SHORT;
- else if (!ACE_OS::strcmp (get_opts.optarg, "ulonglong"))
- this->test_type_ = Options::TEST_ULONGLONG;
- else if (!ACE_OS::strcmp (get_opts.optarg, "ubstring"))
- this->test_type_ = Options::TEST_UB_STRING;
- else if (!ACE_OS::strcmp (get_opts.optarg, "bdstring"))
- this->test_type_ = Options::TEST_BD_STRING;
- else if (!ACE_OS::strcmp (get_opts.optarg, "fixed_struct"))
- this->test_type_ = Options::TEST_FIXED_STRUCT;
- else if (!ACE_OS::strcmp (get_opts.optarg, "ub_strseq"))
- this->test_type_ = Options::TEST_UB_STRING_SEQUENCE;
- else if (!ACE_OS::strcmp (get_opts.optarg, "bd_strseq"))
- this->test_type_ = Options::TEST_BD_STRING_SEQUENCE;
- else if (!ACE_OS::strcmp (get_opts.optarg, "var_struct"))
- this->test_type_ = Options::TEST_VAR_STRUCT;
- else if (!ACE_OS::strcmp (get_opts.optarg, "nested_struct"))
- this->test_type_ = Options::TEST_NESTED_STRUCT;
- else if (!ACE_OS::strcmp (get_opts.optarg, "objref_struct"))
- this->test_type_ = Options::TEST_OBJREF_STRUCT;
- else if (!ACE_OS::strcmp (get_opts.optarg, "ub_struct_seq"))
- this->test_type_ = Options::TEST_UB_STRUCT_SEQUENCE;
- else if (!ACE_OS::strcmp (get_opts.optarg, "bd_struct_seq"))
- this->test_type_ = Options::TEST_BD_STRUCT_SEQUENCE;
- else if (!ACE_OS::strcmp (get_opts.optarg, "objref"))
- this->test_type_ = Options::TEST_OBJREF;
- else if (!ACE_OS::strcmp (get_opts.optarg, "typecode"))
- this->test_type_ = Options::TEST_TYPECODE;
- else if (!ACE_OS::strcmp (get_opts.optarg, "any"))
- this->test_type_ = Options::TEST_ANY;
- else if (!ACE_OS::strcmp (get_opts.optarg, "objref_sequence"))
- this->test_type_ = Options::TEST_OBJREF_SEQUENCE;
- else if (!ACE_OS::strcmp (get_opts.optarg, "any_sequence"))
- this->test_type_ = Options::TEST_ANYSEQ;
- else if (!ACE_OS::strcmp (get_opts.optarg, "ub_short_sequence"))
- this->test_type_ = Options::TEST_UB_SHORTSEQ;
- else if (!ACE_OS::strcmp (get_opts.optarg, "bd_short_sequence"))
- this->test_type_ = Options::TEST_BD_SHORTSEQ;
- else if (!ACE_OS::strcmp (get_opts.optarg, "ub_long_sequence"))
- this->test_type_ = Options::TEST_UB_LONGSEQ;
- else if (!ACE_OS::strcmp (get_opts.optarg, "bd_long_sequence"))
- this->test_type_ = Options::TEST_BD_LONGSEQ;
- else if (!ACE_OS::strcmp (get_opts.optarg, "fixed_array"))
- this->test_type_ = Options::TEST_FIXED_ARRAY;
- else if (!ACE_OS::strcmp (get_opts.optarg, "var_array"))
- this->test_type_ = Options::TEST_VAR_ARRAY;
- else if (!ACE_OS::strcmp (get_opts.optarg, "multdim_array"))
- this->test_type_ = Options::TEST_MULTDIM_ARRAY;
- else if (!ACE_OS::strcmp (get_opts.optarg, "exception"))
- this->test_type_ = Options::TEST_EXCEPTION;
- else if (!ACE_OS::strcmp (get_opts.optarg, "big_union"))
- this->test_type_ = Options::TEST_BIG_UNION;
- break;
-
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s"
- " [-d]"
- " [-n loopcount]"
- " [-f servant-IOR-file]"
- " [-i invocation (sii/dii)]"
- " [-t data type]"
- "\n",
- argv [0]),
- -1);
- }
-
- // Indicates successful parsing of command line.
- return 0;
-}
-
-// Get the factory IOR from the file created by the server.
-int
-Options::read_ior (char *filename)
-{
- // Open the file for reading.
- ACE_HANDLE f_handle = ACE_OS::open (filename, 0);
-
- if (f_handle == ACE_INVALID_HANDLE)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Unable to open %s for writing: %p\n",
- filename),
- -1);
- ACE_Read_Buffer ior_buffer (f_handle);
- this->ior_ = ior_buffer.read ();
-
- if (this->ior_ == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Unable to allocate memory to read ior: %p\n"),
- -1);
- return 0;
-}
-
-char *
-Options::param_test_ior (void)
-{
- return this->ior_;
-}
-
-Options::TEST_TYPE
-Options::test_type (void)
-{
- return this->test_type_;
-}
-
-Options::INVOKE_TYPE
-Options::invoke_type (void)
-{
- return this->invoke_type_;
-}
-
-CORBA::ULong
-Options::loop_count (void)
-{
- return this->loop_count_;
-}
-
-CORBA::Boolean
-Options::debug (void) const
-{
- return this->debug_;
-}
-
-CORBA::Boolean
-Options::shutdown (void) const
-{
- return this->shutdown_;
-}
-
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-template class ACE_Singleton<Options, ACE_SYNCH_RECURSIVE_MUTEX>;
-#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-#pragma instantiate ACE_Singleton<Options, ACE_SYNCH_RECURSIVE_MUTEX>
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
diff --git a/TAO/tests/Param_Test/options.h b/TAO/tests/Param_Test/options.h
deleted file mode 100644
index c106078e26c..00000000000
--- a/TAO/tests/Param_Test/options.h
+++ /dev/null
@@ -1,123 +0,0 @@
-// -*- c++ -*-
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// options.h
-//
-// = DESCRIPTION
-// Options for the Param_Test application
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef OPTIONS_H
-#define OPTIONS_H
-
-#include "ace/Singleton.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "tao/corba.h"
-
-class Options
-{
-public:
- enum TEST_TYPE
- {
- NO_TEST,
- TEST_SHORT,
- TEST_ULONGLONG,
- TEST_UB_STRING,
- TEST_BD_STRING,
- TEST_FIXED_STRUCT,
- TEST_UB_STRING_SEQUENCE,
- TEST_BD_STRING_SEQUENCE,
- TEST_VAR_STRUCT,
- TEST_NESTED_STRUCT,
- TEST_OBJREF_STRUCT,
- TEST_UB_STRUCT_SEQUENCE,
- TEST_BD_STRUCT_SEQUENCE,
- TEST_OBJREF,
- TEST_TYPECODE,
- TEST_ANY,
- TEST_OBJREF_SEQUENCE,
- TEST_ANYSEQ,
- TEST_UB_SHORTSEQ,
- TEST_BD_SHORTSEQ,
- TEST_UB_LONGSEQ,
- TEST_BD_LONGSEQ,
- TEST_FIXED_ARRAY,
- TEST_VAR_ARRAY,
- TEST_MULTDIM_ARRAY,
- TEST_EXCEPTION,
- TEST_BIG_UNION
- };
-
- enum INVOKE_TYPE
- {
- SII,
- DII
- };
-
- Options (void);
- // constructor
-
- ~Options (void);
- // destructor
-
- int parse_args (int argc, char **argv);
- // Parses the arguments passed on the command line.
-
- char *param_test_ior (void);
- // return the IOR for the servant
-
- TEST_TYPE test_type (void);
- // what test to run
-
- INVOKE_TYPE invoke_type (void);
- // whether to use SII or DII
-
- CORBA::ULong loop_count (void);
- // number of times to run the test
-
- CORBA::Boolean debug (void) const;
- // whether debug option is on or not
-
- CORBA::Boolean shutdown (void) const;
- // If we should request the server to shutdown.
-
-private:
- int read_ior (char *filename);
- // Function to read the servant IOR from a file.
-
- char *ior_;
- // IOR for the servant
-
- TEST_TYPE test_type_;
- // what test to run
-
- INVOKE_TYPE invoke_type_;
- // whether SII or DII
-
- CORBA::ULong loop_count_;
- // Number of times to do the "test_*" operations.
-
- CORBA::Boolean debug_;
- // debugging output values
-
- CORBA::Boolean shutdown_;
- // server shutdown flag.
-};
-
-typedef ACE_Singleton<Options, ACE_SYNCH_RECURSIVE_MUTEX> OPTIONS;
-
-#endif /* OPTIONS_H */
diff --git a/TAO/tests/Param_Test/param_test.idl b/TAO/tests/Param_Test/param_test.idl
deleted file mode 100644
index 126ee1dd6cc..00000000000
--- a/TAO/tests/Param_Test/param_test.idl
+++ /dev/null
@@ -1,332 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// params.idl
-//
-// = DESCRIPTION
-// This IDL description is used to test all the parameter passing modes (in,
-// inout, out, a0nd return) for a number of IDL data types. The goal is to
-// verify the correctness of the generated stubs and skeletons, and the
-// the marshaling engine of TAO.
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-interface Coffee
-{
- struct Desc
- {
- string name;
- };
-
- attribute Desc description; // provides us the coffee object type
-};
-
-//typedef sequence<Coffee> ObjSeq;
-
-interface Param_Test
-{
- // Add exceptions to each
-
- // primitive types
- short test_short (in short s1,
- inout short s2,
- out short s3);
-
- // NOTE: use unsigned long long instead of long long, because
- // unsigned long long has much better support on platforms that
- // do not have a native 64 bit int type.
- unsigned long long test_ulonglong (in unsigned long long s1,
- inout unsigned long long s2,
- out unsigned long long s3);
-
- // strings unbounded
- string test_unbounded_string (in string s1,
- inout string s2,
- out string s3);
-
- typedef string<128> short_string;
- short_string test_bounded_string (in short_string s1,
- inout short_string s2,
- out short_string s3);
-
- // structures (fixed size)
- struct Fixed_Struct
- {
- long l;
- char c;
- short s;
- octet o;
- float f;
- boolean b;
- double d;
- };
-
- Fixed_Struct test_fixed_struct (in Fixed_Struct s1,
- inout Fixed_Struct s2,
- out Fixed_Struct s3);
-
- // = Sequences of long, strings, Var_Struct and Object
- // references...
-
-
- struct NameComponent
- {
- string id;
- string kind;
- };
-
- struct Step
- {
- NameComponent name;
- boolean process;
- };
-
- typedef sequence<Step> PathSpec;
-
- PathSpec test_unbounded_struct_sequence (in PathSpec s1,
- inout PathSpec s2,
- out PathSpec s3);
- typedef sequence<short> Short_Seq;
-
- Short_Seq test_short_sequence (in Short_Seq s1,
- inout Short_Seq s2,
- out Short_Seq s3);
-
- typedef sequence<short,32> Bounded_Short_Seq;
- Bounded_Short_Seq test_bounded_short_sequence (in Bounded_Short_Seq s1,
- inout Bounded_Short_Seq s2,
- out Bounded_Short_Seq s3);
-
- typedef sequence<long> Long_Seq;
- Long_Seq test_long_sequence (in Long_Seq s1,
- inout Long_Seq s2,
- out Long_Seq s3);
-
- typedef sequence<long,32> Bounded_Long_Seq;
- Bounded_Long_Seq test_bounded_long_sequence (in Bounded_Long_Seq s1,
- inout Bounded_Long_Seq s2,
- out Bounded_Long_Seq s3);
-
- typedef sequence<string> StrSeq;
- StrSeq test_strseq (in StrSeq s1,
- inout StrSeq s2,
- out StrSeq s3);
-
- typedef sequence<string,32> Bounded_StrSeq;
- Bounded_StrSeq test_bounded_strseq (in Bounded_StrSeq s1,
- inout Bounded_StrSeq s2,
- out Bounded_StrSeq s3);
-
- typedef sequence<Fixed_Struct> StructSeq;
- StructSeq test_struct_sequence (in StructSeq s1,
- inout StructSeq s2,
- out StructSeq s3);
-
- typedef sequence<Fixed_Struct,32> Bounded_StructSeq;
- Bounded_StructSeq test_bounded_struct_sequence (in Bounded_StructSeq s1,
- inout Bounded_StructSeq s2,
- out Bounded_StructSeq s3);
-
- typedef sequence<Coffee> Coffee_Mix;
- Coffee_Mix test_coffe_mix (in Coffee_Mix s1,
- inout Coffee_Mix s2,
- out Coffee_Mix s3);
-
- typedef sequence<Coffee,32> Bounded_Coffee_Mix;
- Bounded_Coffee_Mix test_bounded_coffe_mix (in Bounded_Coffee_Mix s1,
- inout Bounded_Coffee_Mix s2,
- out Bounded_Coffee_Mix s3);
-
- typedef sequence<any> AnySeq;
- AnySeq test_anyseq (in AnySeq s1,
- inout AnySeq s2,
- out AnySeq s3);
-
-/* typedef sequence<any, 32> Bounded_AnySeq;
- Bounded_AnySeq test_bounded_anyseq (in Bounded_AnySeq s1,
- inout Bounded_AnySeq s2,
- out Bounded_AnySeq s3);
-*/
-
- typedef string DUMMY;
- // variable structures
- struct Var_Struct
- {
- DUMMY dummy1;
- DUMMY dummy2;
- StrSeq seq;
- };
-
- Var_Struct test_var_struct (in Var_Struct s1,
- inout Var_Struct s2,
- out Var_Struct s3);
-
- // nested structs (We reuse the var_struct defn above to make a very
- // complicated nested structure)
- struct Nested_Struct
- {
- Var_Struct vs;
- };
-
- Nested_Struct test_nested_struct (in Nested_Struct s1,
- inout Nested_Struct s2,
- out Nested_Struct s3);
-
- // object references
- Coffee make_coffee (); // make a Coffee object
-
- // test the parameter passing conventions for ObjRefs
- Coffee test_objref (in Coffee o1, inout Coffee o2, out Coffee o3);
-
- // test typecodes
- TypeCode test_typecode (in TypeCode t1, inout TypeCode t2, out TypeCode t3);
-
- // Anys. We try to pump in all kinds of data types thru these Anys
- any test_any (in any a1, inout any a2, out any a3);
-
- struct Objref_Struct
- {
- long x;
- Coffee y;
- };
- Objref_Struct test_objref_struct (in Objref_Struct t1,
- inout Objref_Struct t2,
- out Objref_Struct t3);
- // test structures that contain object references.
-
- // arrays (fixed)
- const unsigned long DIM1 = 10;
- typedef long Fixed_Array [DIM1];
-
- Fixed_Array test_fixed_array (in Fixed_Array l1,
- inout Fixed_Array l2,
- out Fixed_Array l3);
-
- // arrays (variable)
- const unsigned long DIM2 = 5;
- typedef string Var_Array [DIM2];
-
- Var_Array test_var_array (in Var_Array v1,
- inout Var_Array v2,
- out Var_Array v3);
-
-
- // Just to test report a problem
- exception Ooops {
- string reason;
- unsigned long input;
- };
- // To test what happens when an unexpected exception is thrown.
- exception BadBoy {
- };
- unsigned long test_exception (in unsigned long s1,
- inout unsigned long s2,
- out unsigned long s3)
- raises (Ooops);
-
- union Big_Union switch (short)
- {
- case 0:
- Fixed_Array the_array;
- case 1:
- Coffee the_interface;
- case 2:
- long the_long;
- case 3:
- short another_array[32];
- case 4:
- string the_string;
- case 5:
- Short_Seq the_sequence;
- case 6:
- any the_any;
- case 7:
- octet the_octet;
- case 8:
- char the_char;
- case 9:
- boolean the_boolean;
- case 10:
- Var_Struct the_var_struct;
- case 11:
- Fixed_Struct the_fixed_struct;
- // case 12:
- // Other_Union the_union;
- };
-
- Big_Union test_big_union (in Big_Union u1,
- inout Big_Union u2,
- out Big_Union u3);
-
-#if 0
- // multidimensional arrays (fixed). The following will give rise to a 3
- // dimensional array. The following will define a 3-dimensional array of size
- // DIM1 X DIM2 X DIM3
- const unsigned long DIM3 = 3;
- typedef Fixed_Array Multdim_Array [DIM2][DIM3];
-
- Multdim_Array test_multdim_array (in Multdim_Array m1,
- inout Multdim_Array m2,
- out Multdim_Array m3);
-#endif
-
- // sequence of typecodes
- // typedef sequence<TypeCode> TypeCodeSeq;
- // TypeCodeSeq test_tcseq (in TypeCodeSeq t1, inout TypeCodeSeq t2, out TypeCodeSeq t3);
-
- void shutdown ();
- // Shutdown the server: this is useful to check for memory leaks,
- // performance results and in general to verify that orderly
- // shutdown is possible.
-
- // test simple objects
- // Object test_object (in Object o1, inout Object o2, out Object o3);
-
- /*
- long test_long (in long l1,
- inout long l2,
- out long l3);
- char test_char (in char c1,
- inout char c2,
- out char c3);
- octet test_octet (in octet o1,
- inout octet o2,
- out octet o3);
-
- double test_double (in double d1,
- inout double d2,
- out double d3);
-
- // strings bounded
- const unsigned long STRLEN = 10;
- string<STRLEN> test_bstring (in string<STRLEN> s1,
- inout string<STRLEN> s2,
- out string<STRLEN> s3);
-
- // typedefed string
- typedef string MYSTRING;
- MYSTRING test_tstring (in MYSTRING s1,
- inout MYSTRING s2,
- out MYSTRING s3);
-
-
- // more combinations to follow
- union U switch (long)
- {
- case 0: sequence<char> cseq;
- case 1: sequence<octet> oseq;
- case 2: StrSeq sseq;
- };
-
- // complex (but meaningless) to test the naming scheme
- typedef sequence <sequence <sequence <long>, 5>, 10> complex;
- */
-};
diff --git a/TAO/tests/Param_Test/param_test_i.cpp b/TAO/tests/Param_Test/param_test_i.cpp
deleted file mode 100644
index 1817b8b6cd8..00000000000
--- a/TAO/tests/Param_Test/param_test_i.cpp
+++ /dev/null
@@ -1,744 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// param_test_i.cpp
-//
-// = AUTHOR
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "tao/corba.h"
-#include "param_test_i.h"
-
-ACE_RCSID(Param_Test, param_test_i, "$Id$")
-
-// ********* class Coffee_i ****************
-// Constructor
-
-Coffee_i::Coffee_i (const char *name)
- : name_ (name)
-{
-}
-
-// Destructor
-
-Coffee_i::~Coffee_i (void)
-{
-}
-
-// get attribute
-Coffee::Desc *
-Coffee_i::description (CORBA::Environment & /*env*/)
-{
- Coffee::Desc *desc = new Coffee::Desc;
- desc->name = CORBA::string_dup (this->name_);
- return desc;
-}
-
-// set attribute
-void
-Coffee_i::description (const Coffee::Desc &description,
- CORBA::Environment & /*env*/)
-{
- this->name_ = CORBA::string_dup (description.name);
-}
-
-
-// ********* class Param_Test_i ****************
-
-// Constructor
-
-Param_Test_i::Param_Test_i (const char *coffee_name,
- const char *)
- : obj_ (coffee_name),
- test_exception_count_ (0)
-{
-}
-
-// Destructor
-
-Param_Test_i::~Param_Test_i (void)
-{
-}
-
-// test shorts
-CORBA::Short
-Param_Test_i::test_short (CORBA::Short s1,
- CORBA::Short &s2,
- CORBA::Short_out s3,
- CORBA::Environment &)
-{
- s2 = s1 * 2;
- s3 = s1 * 3;
- return s1 * 4;
-}
-
-// test long long
-CORBA::ULongLong
-Param_Test_i::test_ulonglong (CORBA::ULongLong s1,
- CORBA::ULongLong &s2,
- CORBA::ULongLong_out s3,
- CORBA::Environment &)
-{
- s2 = s1 * 2;
- s3 = s1 * 3;
- return s1 * 4;
-}
-
-// test unbounded strings. For return and out types, we return duplicates of
-// the in string. For the inout, we append the same string to itself and send
-// it back
-char *
-Param_Test_i::test_unbounded_string (const char *s1,
- char *&s2,
- CORBA::String_out s3,
- CORBA::Environment &env)
-{
- ACE_UNUSED_ARG (env);
- char *retstr = CORBA::string_dup (s1);
- s3 = CORBA::string_dup (s1);
- char *tmp = CORBA::string_alloc (2*ACE_OS::strlen (s2));
- ACE_OS::sprintf (tmp, "%s%s", s2, s2);
- CORBA::string_free (s2);
- s2 = tmp;
- return retstr;
-}
-
-// test bounded strings. For return and out types, we return duplicates of
-// the in string. For the inout, we append the same string to itself and send
-// it back
-char *
-Param_Test_i::test_bounded_string (const char *s1,
- char *&s2,
- CORBA::String_out s3,
- CORBA::Environment &)
-{
- char *retstr = CORBA::string_dup (s1);
- s3 = CORBA::string_dup (s1);
- char *tmp = CORBA::string_alloc (2*ACE_OS::strlen (s2));
- ACE_OS::sprintf (tmp, "%s%s", s2, s2);
- CORBA::string_free (s2);
- s2 = tmp;
- return retstr;
-}
-
-// test for fixed structures. Just copy the in parameter into all the others
-Param_Test::Fixed_Struct
-Param_Test_i::test_fixed_struct (const Param_Test::Fixed_Struct &s1,
- Param_Test::Fixed_Struct &s2,
- Param_Test::Fixed_Struct_out s3,
- CORBA::Environment &env)
-{
- ACE_UNUSED_ARG (env);
- s2 = s1;
- s3 = s1;
- return s1;
-}
-
-// = Sequences
-
-Param_Test::Long_Seq * Param_Test_i::test_long_sequence (
- const Param_Test::Long_Seq & s1,
- Param_Test::Long_Seq & s2,
- Param_Test::Long_Seq_out s3,
- CORBA::Environment &
- )
-{
- Param_Test::Long_Seq
- *ret = new Param_Test::Long_Seq,
- *out = new Param_Test::Long_Seq;
-
- s2 = s1;
- *out = s1;
- *ret = s1;
- s3 = out;
- return ret;
-}
-
-Param_Test::Short_Seq * Param_Test_i::test_short_sequence (
- const Param_Test::Short_Seq & s1,
- Param_Test::Short_Seq & s2,
- Param_Test::Short_Seq_out s3,
- CORBA::Environment &
- )
-{
- Param_Test::Short_Seq
- *ret = new Param_Test::Short_Seq,
- *out = new Param_Test::Short_Seq;
-
- s2 = s1;
- *out = s1;
- *ret = s1;
- s3 = out;
- return ret;
-}
-
-Param_Test::Bounded_Short_Seq * Param_Test_i::test_bounded_short_sequence (
- const Param_Test::Bounded_Short_Seq & s1,
- Param_Test::Bounded_Short_Seq & s2,
- Param_Test::Bounded_Short_Seq_out s3,
- CORBA::Environment &
- )
-{
- Param_Test::Bounded_Short_Seq
- *ret = new Param_Test::Bounded_Short_Seq,
- *out = new Param_Test::Bounded_Short_Seq;
-
- s2 = s1;
- *out = s1;
- *ret = s1;
- s3 = out;
- return ret;
-}
-
-Param_Test::Bounded_Long_Seq * Param_Test_i::test_bounded_long_sequence (
- const Param_Test::Bounded_Long_Seq & s1,
- Param_Test::Bounded_Long_Seq & s2,
- Param_Test::Bounded_Long_Seq_out s3,
- CORBA::Environment &
- )
-{
- Param_Test::Bounded_Long_Seq
- *ret = new Param_Test::Bounded_Long_Seq,
- *out = new Param_Test::Bounded_Long_Seq;
-
- s2 = s1;
- *out = s1;
- *ret = s1;
- s3 = out;
- return ret;
-}
-
-Param_Test::StrSeq *
-Param_Test_i::test_strseq (const Param_Test::StrSeq &s1,
- Param_Test::StrSeq &s2,
- Param_Test::StrSeq_out s3,
- CORBA::Environment &env)
-{
- ACE_UNUSED_ARG (env);
- // we copy the "in" sequences into all the inout, out and return sequences.
-
- Param_Test::StrSeq
- *ret = new Param_Test::StrSeq,
- *out = new Param_Test::StrSeq;
-
- if (TAO_debug_level > 0)
- {
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*SERVER SIDE=*=*=*=*=*=*=\n"));
- for (CORBA::ULong i=0; (i < s2.length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- (s2[i]? (const char *)s2[i]:"<nul>")));
- }
- if (s2.length () == 0)
- ACE_DEBUG ((LM_DEBUG, "\ninout sequence is NUL\n"));
- }
-
- // now copy all elements of s1 into the others using the assignment operator
- s2 = s1;
- *out = s1;
- *ret = s1;
- s3 = out;
- return ret;
-}
-
-Param_Test::Bounded_StrSeq * Param_Test_i::test_bounded_strseq (
- const Param_Test::Bounded_StrSeq & s1,
- Param_Test::Bounded_StrSeq & s2,
- Param_Test::Bounded_StrSeq_out s3,
- CORBA::Environment &
- )
-{
- // we copy the "in" sequences into all the inout, out and return sequences.
-
- Param_Test::Bounded_StrSeq
- *ret = new Param_Test::Bounded_StrSeq,
- *out = new Param_Test::Bounded_StrSeq;
-
- // now copy all elements of s1 into the others using the assignment operator
- s2 = s1;
- *out = s1;
- *ret = s1;
- s3 = out;
- return ret;
-}
-
-// test for struct sequences
-Param_Test::StructSeq *
-Param_Test_i::test_struct_sequence (const Param_Test::StructSeq &s1,
- Param_Test::StructSeq &s2,
- Param_Test::StructSeq_out s3,
- CORBA::Environment &)
-{
- // we copy the "in" sequences into all the inout, out and return sequences.
-
- Param_Test::StructSeq
- *ret = new Param_Test::StructSeq,
-
- *out = new Param_Test::StructSeq;
-
- // now copy all elements of s1 into the others using the assignment operator
- s2 = s1;
- *out = s1;
- *ret = s1;
- s3 = out;
- return ret;
-}
-
-Param_Test::Bounded_StructSeq * Param_Test_i::test_bounded_struct_sequence (
- const Param_Test::Bounded_StructSeq & s1,
- Param_Test::Bounded_StructSeq & s2,
- Param_Test::Bounded_StructSeq_out s3,
- CORBA::Environment &
- )
-{
- Param_Test::Bounded_StructSeq
- *ret = new Param_Test::Bounded_StructSeq,
- *out = new Param_Test::Bounded_StructSeq;
-
- s2 = s1;
- *out = s1;
- *ret = s1;
- s3 = out;
- return ret;
-}
-
-
-Param_Test::PathSpec * Param_Test_i::test_unbounded_struct_sequence (
- const Param_Test::PathSpec & s1,
- Param_Test::PathSpec & s2,
- Param_Test::PathSpec_out s3,
- CORBA::Environment &
- )
-{
- Param_Test::PathSpec
- *ret = new Param_Test::PathSpec,
- *out = new Param_Test::PathSpec;
-
-
- Param_Test::PathSpec_var rPathSpec = new Param_Test::PathSpec;
- rPathSpec->length(2);
-
- rPathSpec[(unsigned long)0].name.id = CORBA::string_dup("staff");
- rPathSpec[(unsigned long)0].name.kind = CORBA::string_dup("staff");
- rPathSpec[(unsigned long)0].process = 1;
-
- rPathSpec[(unsigned long)1].name.id = CORBA::string_dup("john");
- rPathSpec[(unsigned long)1].name.kind = CORBA::string_dup("john");
- rPathSpec[(unsigned long)1].process = 1;
-
- s2 = s1;
- *out = s1;
- *ret = s1;
- s3 = out;
-
- return ret;
-}
-
-
-Param_Test::Coffee_Mix * Param_Test_i::test_coffe_mix (
- const Param_Test::Coffee_Mix & s1,
- Param_Test::Coffee_Mix & s2,
- Param_Test::Coffee_Mix_out s3,
- CORBA::Environment &
- )
-{
- Param_Test::Coffee_Mix
- *ret = new Param_Test::Coffee_Mix,
- *out = new Param_Test::Coffee_Mix;
-
-#if 0
- ACE_DEBUG ((LM_DEBUG,
- "maximum = %d\n"
- "length = %d\n",
- s1.maximum (),
- s1.length ()));
- ACE_DEBUG ((LM_DEBUG, "Elements -\n"));
- for (CORBA::ULong i = 0; i < s1.length (); ++i)
- {
- Coffee_ptr c = s1[i];
- if (CORBA::is_nil (c))
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d is nil\n", i));
- continue;
- }
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "\ttype = <%s>\n",
- i,
- c->_interface_repository_id ()));
- }
-#endif /* 0 */
-
-
- s2 = s1;
- *out = s1;
- *ret = s1;
- s3 = out;
- return ret;
-}
-
-Param_Test::Bounded_Coffee_Mix * Param_Test_i::test_bounded_coffe_mix (
- const Param_Test::Bounded_Coffee_Mix & s1,
- Param_Test::Bounded_Coffee_Mix & s2,
- Param_Test::Bounded_Coffee_Mix_out s3,
- CORBA::Environment &
- )
-{
- Param_Test::Bounded_Coffee_Mix
- *ret = new Param_Test::Bounded_Coffee_Mix,
- *out = new Param_Test::Bounded_Coffee_Mix;
-
-#if 0
- ACE_DEBUG ((LM_DEBUG,
- "maximum = %d\n"
- "length = %d\n",
- s1.maximum (),
- s1.length ()));
- ACE_DEBUG ((LM_DEBUG, "Elements -\n"));
- for (CORBA::ULong i = 0; i < s1.length (); ++i)
- {
- Coffee_ptr c = s1[i];
- if (CORBA::is_nil (c))
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d is nil\n", i));
- continue;
- }
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "\ttype = <%s>\n",
- i,
- c->_interface_repository_id ()));
- }
-#endif /* 0 */
-
-
- s2 = s1;
- *out = s1;
- *ret = s1;
- s3 = out;
- return ret;
-}
-
-Param_Test::AnySeq *
-Param_Test_i::test_anyseq (const Param_Test::AnySeq &s1,
- Param_Test::AnySeq &s2,
- Param_Test::AnySeq_out s3,
- CORBA::Environment &env)
-{
- ACE_UNUSED_ARG (env);
- // we copy the "in" sequences into all the inout, out and return sequences.
-
- Param_Test::AnySeq
- *ret = new Param_Test::AnySeq,
- *out = new Param_Test::AnySeq;
-
- // now copy all elements of s1 into the others using the assignment operator
- s2 = s1;
- *out = s1;
- *ret = s1;
- s3 = out;
- return ret;
-}
-
-// = end of sequences...
-
-// test for variable structs
-Param_Test::Var_Struct *
-Param_Test_i::test_var_struct (const Param_Test::Var_Struct &s1,
- Param_Test::Var_Struct &s2,
- Param_Test::Var_Struct_out s3,
- CORBA::Environment &env)
-{
- ACE_UNUSED_ARG (env);
- // we copy the "in" sequences into all the inout, out and return sequences.
-
- Param_Test::Var_Struct
- *ret = new Param_Test::Var_Struct,
- *out = new Param_Test::Var_Struct;
-
- // now copy all elements of s1 into the others
- s2 = s1;
- *out = s1;
- *ret = s1;
- s3 = out;
- return ret;
-}
-
-// test for nested structs
-Param_Test::Nested_Struct *
-Param_Test_i::test_nested_struct (const Param_Test::Nested_Struct &s1,
- Param_Test::Nested_Struct &s2,
- Param_Test::Nested_Struct_out s3,
- CORBA::Environment &env)
-{
- ACE_UNUSED_ARG (env);
- // we copy the "in" sequences into all the inout, out and return sequences.
-
- Param_Test::Nested_Struct
- *ret = new Param_Test::Nested_Struct,
- *out = new Param_Test::Nested_Struct;
-
- // now copy all elements of s1 into the others
- s2 = s1;
- *out = s1;
- *ret = s1;
- s3 = out;
- return ret;
-}
-
-Param_Test::Objref_Struct *
-Param_Test_i::test_objref_struct (const Param_Test::Objref_Struct &s1,
- Param_Test::Objref_Struct &s2,
- Param_Test::Objref_Struct_out s3,
- CORBA::Environment &env)
-{
- ACE_UNUSED_ARG (env);
- // we copy the "in" sequences into all the inout, out and return sequences.
-
- Param_Test::Objref_Struct
- *ret = new Param_Test::Objref_Struct,
- *out = new Param_Test::Objref_Struct;
-
- // now copy all elements of s1 into the others
- s2 = s1;
- *out = s1;
- *ret = s1;
- s3 = out;
- return ret;
-}
-
-// make a Coffee object
-Coffee_ptr
-Param_Test_i::make_coffee (CORBA::Environment &env)
-{
- return this->obj_._this (env);
-}
-
-// test for object references
-Coffee_ptr
-Param_Test_i::test_objref (Coffee_ptr o1,
- Coffee_ptr &o2,
- Coffee_out o3,
- CORBA::Environment &env)
-{
- Coffee_ptr ret = Coffee::_nil ();
-
- TAO_TRY
- {
- Coffee_var myobj = obj_._this (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- if (!CORBA::is_nil (o2))
- CORBA::release (o2);
-
- if (myobj->_is_equivalent (o1, env))
- {
- o2 = Coffee::_duplicate (myobj.in ());
- o3 = Coffee::_duplicate (myobj.in ());
- ret = Coffee::_duplicate (myobj.in ());
- }
- else
- {
- o2 = Coffee::_nil ();
- o3 = Coffee::_nil ();
- }
- }
- TAO_CATCH (CORBA::SystemException, sysex)
- {
- TAO_TRY_ENV.print_exception ("System Exception");
- env.exception (TAO_TRY_ENV.exception ());
- }
- TAO_CATCH (CORBA::UserException, userex)
- {
- TAO_TRY_ENV.print_exception ("User Exception");
- env.exception (TAO_TRY_ENV.exception ());
- }
- TAO_ENDTRY;
-
- return ret;
-}
-
-// test for typecodes
-CORBA::TypeCode_ptr
-Param_Test_i::test_typecode (CORBA::TypeCode_ptr t1,
- CORBA::TypeCode_ptr &t2,
- CORBA::TypeCode_out t3,
- CORBA::Environment &env)
-{
- // we simply assign t1 to the others
- CORBA::TypeCode_ptr retval = CORBA::TypeCode::_duplicate (t1);
- t2 = CORBA::TypeCode::_duplicate (t1);
- t3 = CORBA::TypeCode::_duplicate (t1);
- return retval;
-}
-
-// test for Anys
-CORBA::Any *
-Param_Test_i::test_any (const CORBA::Any &a1,
- CORBA::Any &a2,
- CORBA::Any_out a3,
- CORBA::Environment &env)
-{
- CORBA::Any *ret;
- CORBA::Short short_in;
- char *str_in;
- Coffee_ptr coffee;
- Param_Test::Fixed_Array_forany array;
- Param_Test::Bounded_Short_Seq_ptr bd_short_sequence;
- Param_Test::Fixed_Struct *fixed_structure;
-
- a2 = a1;
- a3 = new CORBA::Any (a1);
- ret = new CORBA::Any (a1);
-
- // debug the incoming Any
- if (a1 >>= short_in)
- {
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "Received short = %d\n", short_in));
- a2 >>= short_in;
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "inout short = %d\n", short_in));
- *a3.ptr () >>= short_in;
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "out short = %d\n", short_in));
- *ret >>= short_in;
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "ret short = %d\n", short_in));
- }
- else if (a1 >>= str_in)
- {
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "Received unbounded string = %s\n", str_in));
- }
- else if (a1 >>= coffee)
- {
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "Received Coffee object\n"));
- }
- else if (a1 >>= array)
- {
- if (TAO_debug_level > 0)
- {
- ACE_DEBUG ((LM_DEBUG, "Received Fixed_Array:"));
- for (size_t i = 0; i < Param_Test::DIM1; i++)
- ACE_DEBUG ((LM_DEBUG, " %d", array[i]));
- ACE_DEBUG ((LM_DEBUG, "\n"));
- }
- for (size_t i = 0; i < Param_Test::DIM1; i++)
- array[i] = i * i;
- a2 <<= Param_Test::Fixed_Array_forany (array);
- *ret <<= Param_Test::Fixed_Array_forany (array);
- }
- else if (a1 >>= bd_short_sequence)
- {
- if (TAO_debug_level > 0)
- {
- ACE_DEBUG ((LM_DEBUG, "Received Bounded_Short_Seq:"));
- for (size_t i = 0; i < bd_short_sequence->length (); i++)
- ACE_DEBUG ((LM_DEBUG, " %d", (*bd_short_sequence)[i]));
- ACE_DEBUG ((LM_DEBUG, "\n"));
- }
- for (size_t i = 0; i < bd_short_sequence->length (); i++)
- (*bd_short_sequence)[i] = i * i;
- a2 <<= *bd_short_sequence;
- *ret <<= *bd_short_sequence;
- }
- else if (a1 >>= fixed_structure)
- {
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "Received Fixed_Struct\n"));
- }
- else
- {
- ACE_DEBUG ((LM_DEBUG, "Received UNKNOWN type\n"));
- }
-
- return ret;
-}
-
-// test for fixed arrays
-Param_Test::Fixed_Array_slice *
-Param_Test_i::test_fixed_array (const Param_Test::Fixed_Array a1,
- Param_Test::Fixed_Array a2,
- Param_Test::Fixed_Array_out a3,
- CORBA::Environment &env)
-{
- Param_Test::Fixed_Array_slice *ret;
- ACE_UNUSED_ARG (env);
-
- Param_Test::Fixed_Array_copy (a2, a1);
- Param_Test::Fixed_Array_copy (a3, a1);
- ret = Param_Test::Fixed_Array_dup (a1);
- return ret;
-}
-
-// test for var arrays
-Param_Test::Var_Array_slice *
-Param_Test_i::test_var_array (const Param_Test::Var_Array a1,
- Param_Test::Var_Array a2,
- Param_Test::Var_Array_out a3,
- CORBA::Environment &env)
-{
- Param_Test::Var_Array_slice *ret;
- ACE_UNUSED_ARG (env);
-
- Param_Test::Var_Array_copy (a2, a1);
- a3 = Param_Test::Var_Array_dup (a1);
- ret = Param_Test::Var_Array_dup (a1);
- return ret;
-}
-
-CORBA::ULong
-Param_Test_i::test_exception (CORBA::ULong s1,
- CORBA::ULong& s2,
- CORBA::ULong_out s3,
- CORBA::Environment &env)
-{
- int d = this->test_exception_count_ % 3;
- this->test_exception_count_++;
- if (d == 0)
- {
- s2 = s1 * 2;
- s3 = s1 * 3;
- return s1 * 4;
- }
- else if (d == 1)
- {
- env.exception (new Param_Test::Ooops (CORBA::string_dup (" % 3 == 1"),
- s1));
- return 0;
- }
- env.exception (new Param_Test::BadBoy);
- return 0;
-}
-
-Param_Test::Big_Union*
-Param_Test_i::test_big_union (const Param_Test::Big_Union& u1,
- Param_Test::Big_Union& u2,
- Param_Test::Big_Union_out u3,
- CORBA::Environment &env)
-{
- Param_Test::Big_Union_var ret (new Param_Test::Big_Union (u1));
- u2 = u1;
- u3 = new Param_Test::Big_Union (u1);
- return ret._retn ();
-}
-
-void
-Param_Test_i::shutdown (CORBA::Environment &)
-{
- TAO_ORB_Core_instance ()->orb ()->shutdown ();
-}
diff --git a/TAO/tests/Param_Test/param_test_i.h b/TAO/tests/Param_Test/param_test_i.h
deleted file mode 100644
index e795e6aa869..00000000000
--- a/TAO/tests/Param_Test/param_test_i.h
+++ /dev/null
@@ -1,248 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// param_test_i.h
-//
-// = AUTHOR
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_I_H
-#define PARAM_TEST_I_H
-
-#include "param_testSer.h"
-
-// Implementation of the Coffee interface
-class Coffee_i : public POA_Coffee
-
-{
-public:
- Coffee_i (const char *name);
- // constructor
-
- ~Coffee_i (void);
- // destructor
-
- // =methods for the attribute
-
- virtual Coffee::Desc * description (CORBA::Environment &env);
- // get attribute
-
- virtual void description (const Coffee::Desc &description,
- CORBA::Environment &env);
- // set attribute
-
-private:
- CORBA::String_var name_;
- // my description
-};
-
-// the implementation of the Param_test interface
-class Param_Test_i : public POA_Param_Test
-{
- // = TITLE
- // Param_Test_i
- // = DESCRIPTION
- // Implementation of the Param_Test test suite.
-public:
- Param_Test_i (const char *coffee_name,
- const char *obj_name = 0);
- // Constructor
-
- ~Param_Test_i (void);
- // Destructor
-
- virtual CORBA::Short test_short (CORBA::Short s1,
- CORBA::Short &s2,
- CORBA::Short_out s3,
- CORBA::Environment &env);
- // test for shorts
-
- virtual CORBA::ULongLong test_ulonglong (CORBA::ULongLong s1,
- CORBA::ULongLong &s2,
- CORBA::ULongLong_out s3,
- CORBA::Environment &env);
- // test for unsigned long long
-
- virtual char *test_unbounded_string (const char *s1,
- char *&s2,
- CORBA::String_out s3,
- CORBA::Environment &env);
- // test for unbounded strings
-
- virtual char *test_bounded_string (const char *s1,
- char *&s2,
- CORBA::String_out s3,
- CORBA::Environment &env);
- // test for bounded strings
-
- virtual Param_Test::Fixed_Struct
- test_fixed_struct (const Param_Test::Fixed_Struct &s1,
- Param_Test::Fixed_Struct &s2,
- Param_Test::Fixed_Struct_out s3,
- CORBA::Environment &env);
- // test for fixed structures
-
- // = Start of sequences tests...
- virtual Param_Test::Long_Seq * test_long_sequence (
- const Param_Test::Long_Seq & s1,
- Param_Test::Long_Seq & s2,
- Param_Test::Long_Seq_out s3,
- CORBA::Environment &env
- );
- virtual Param_Test::Bounded_Long_Seq * test_bounded_long_sequence (
- const Param_Test::Bounded_Long_Seq & s1,
- Param_Test::Bounded_Long_Seq & s2,
- Param_Test::Bounded_Long_Seq_out s3,
- CORBA::Environment &env
- );
- virtual Param_Test::Short_Seq * test_short_sequence (
- const Param_Test::Short_Seq & s1,
- Param_Test::Short_Seq & s2,
- Param_Test::Short_Seq_out s3,
- CORBA::Environment &env
- );
- virtual Param_Test::Bounded_Short_Seq * test_bounded_short_sequence (
- const Param_Test::Bounded_Short_Seq & s1,
- Param_Test::Bounded_Short_Seq & s2,
- Param_Test::Bounded_Short_Seq_out s3,
- CORBA::Environment &env
- );
- virtual Param_Test::StrSeq * test_strseq (
- const Param_Test::StrSeq & s1,
- Param_Test::StrSeq & s2,
- Param_Test::StrSeq_out s3,
- CORBA::Environment &env
- );
- virtual Param_Test::Bounded_StrSeq * test_bounded_strseq (
- const Param_Test::Bounded_StrSeq & s1,
- Param_Test::Bounded_StrSeq & s2,
- Param_Test::Bounded_StrSeq_out s3,
- CORBA::Environment &env
- );
- virtual Param_Test::StructSeq * test_struct_sequence (
- const Param_Test::StructSeq & s1,
- Param_Test::StructSeq & s2,
- Param_Test::StructSeq_out s3,
- CORBA::Environment &env
- );
- virtual Param_Test::PathSpec * test_unbounded_struct_sequence (
- const Param_Test::PathSpec & s1,
- Param_Test::PathSpec & s2,
- Param_Test::PathSpec_out s3,
- CORBA::Environment &env
- );
- virtual Param_Test::Bounded_StructSeq * test_bounded_struct_sequence (
- const Param_Test::Bounded_StructSeq & s1,
- Param_Test::Bounded_StructSeq & s2,
- Param_Test::Bounded_StructSeq_out s3,
- CORBA::Environment &env
- );
- virtual Param_Test::Coffee_Mix * test_coffe_mix (
- const Param_Test::Coffee_Mix & s1,
- Param_Test::Coffee_Mix & s2,
- Param_Test::Coffee_Mix_out s3,
- CORBA::Environment &env
- );
- virtual Param_Test::Bounded_Coffee_Mix * test_bounded_coffe_mix (
- const Param_Test::Bounded_Coffee_Mix & s1,
- Param_Test::Bounded_Coffee_Mix & s2,
- Param_Test::Bounded_Coffee_Mix_out s3,
- CORBA::Environment &env
- );
- virtual Param_Test::AnySeq * test_anyseq (
- const Param_Test::AnySeq & s1,
- Param_Test::AnySeq & s2,
- Param_Test::AnySeq_out s3,
- CORBA::Environment &env
- );
- // = End of sequences tests....
-
- virtual Param_Test::Var_Struct *
- test_var_struct (const Param_Test::Var_Struct &s1,
- Param_Test::Var_Struct &s2,
- Param_Test::Var_Struct_out s3,
- CORBA::Environment &env);
- // test for variable structs
-
- virtual Param_Test::Nested_Struct *
- test_nested_struct (const Param_Test::Nested_Struct &s1,
- Param_Test::Nested_Struct &s2,
- Param_Test::Nested_Struct_out s3,
- CORBA::Environment &env);
- // test for nested structs
-
- virtual Param_Test::Objref_Struct *
- test_objref_struct (const Param_Test::Objref_Struct &s1,
- Param_Test::Objref_Struct &s2,
- Param_Test::Objref_Struct_out s3,
- CORBA::Environment &env);
-
- virtual Coffee_ptr
- make_coffee (CORBA::Environment &env);
- // make a coffee object
-
- virtual Coffee_ptr
- test_objref (Coffee_ptr o1,
- Coffee_ptr &o2,
- Coffee_out o3,
- CORBA::Environment &env);
- // test for object references
-
- virtual CORBA::TypeCode_ptr
- test_typecode (CORBA::TypeCode_ptr t1,
- CORBA::TypeCode_ptr &o2,
- CORBA::TypeCode_out o3,
- CORBA::Environment &env);
- // test for typecodes
-
- virtual CORBA::Any *
- test_any (const CORBA::Any &a1,
- CORBA::Any &a2,
- CORBA::Any_out a3,
- CORBA::Environment &env);
- // test for Anys
-
- virtual Param_Test::Fixed_Array_slice *
- test_fixed_array (const Param_Test::Fixed_Array a1,
- Param_Test::Fixed_Array a2,
- Param_Test::Fixed_Array_out a3,
- CORBA::Environment &env);
- // test for fixed size arrays
-
- virtual Param_Test::Var_Array_slice *
- test_var_array (const Param_Test::Var_Array a1,
- Param_Test::Var_Array a2,
- Param_Test::Var_Array_out a3,
- CORBA::Environment &env);
- // test for arrays of variable types
-
- virtual CORBA::ULong test_exception (CORBA::ULong s1,
- CORBA::ULong& s2,
- CORBA::ULong_out s3,
- CORBA::Environment &env);
-
- void shutdown (CORBA::Environment &env);
-
- virtual Param_Test::Big_Union*
- test_big_union (const Param_Test::Big_Union& u1,
- Param_Test::Big_Union& u2,
- Param_Test::Big_Union_out u3,
- CORBA::Environment &env);
-
-private:
- Coffee_i obj_;
- // the coffee object reference we maintain
-
- int test_exception_count_;
- // Count the number of calls to test_exception() so we can throw
- // every 3 calls or so.
-};
-
-#endif /* PARAM_TEST_I_H */
diff --git a/TAO/tests/Param_Test/results.cpp b/TAO/tests/Param_Test/results.cpp
deleted file mode 100644
index 405441edf59..00000000000
--- a/TAO/tests/Param_Test/results.cpp
+++ /dev/null
@@ -1,150 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// results.cpp
-//
-// = DESCRIPTION
-// Printing the results
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "ace/Log_Msg.h"
-#include "results.h"
-
-ACE_RCSID(Param_Test, results, "$Id$")
-
-Results::Results (void)
-{
-}
-
-Results::~Results (void)
-{
- delete [] this->elapsed_time_;
-}
-
-void
-Results::print_stats (void)
-{
- double
- avg_real_time = 0,
- avg_user_time = 0,
- avg_system_time = 0,
- cps; // calls per sec
-
- CORBA::ULong i;
-
- if (this->error_count_ == 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Iteration\tReal time (msec)\tUser time (msec)"
- "\tSystem time (msec)\n\n"));
- for (i = 0; i < this->call_count_; i++)
- {
- this->elapsed_time_[i].real_time *= ACE_ONE_SECOND_IN_MSECS;
- this->elapsed_time_[i].user_time *= ACE_ONE_SECOND_IN_MSECS;
- this->elapsed_time_[i].system_time *= ACE_ONE_SECOND_IN_MSECS;
- avg_real_time += this->elapsed_time_[i].real_time;
- avg_user_time += this->elapsed_time_[i].user_time;
- avg_system_time += this->elapsed_time_[i].system_time;
-
- ACE_DEBUG ((LM_DEBUG,
- "%u\t\t%0.06f\t\t%0.06f\t\t%0.06f\n",
- i,
- (this->elapsed_time_[i].real_time < 0.0?
- 0.0:this->elapsed_time_[i].real_time),
- (this->elapsed_time_[i].user_time < 0.0?
- 0.0:this->elapsed_time_[i].user_time),
- (this->elapsed_time_[i].system_time < 0.0?
- 0.0:this->elapsed_time_[i].system_time)));
- } // end of for loop
-
- // compute average
- avg_real_time /= this->call_count_;
- avg_user_time /= this->call_count_;
- avg_system_time /= this->call_count_;
- cps = 1000 / avg_real_time;
-
- ACE_DEBUG ((LM_DEBUG,
- "\n*=*=*=*=*= Average *=*=*=*=*=*=\n"
- "\treal_time\t= %0.06f ms, \n"
- "\tuser_time\t= %0.06f ms, \n"
- "\tsystem_time\t= %0.06f ms\n"
- "\t%0.00f calls/second\n"
- "*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=\n",
- (avg_real_time < 0.0? 0.0:avg_real_time),
- (avg_user_time < 0.0? 0.0:avg_user_time),
- (avg_system_time < 0.0? 0.0:avg_system_time),
- (cps < 0.0? 0.0 : cps)));
-
- }
- else
- {
- ACE_ERROR ((LM_ERROR,
- "\tNo time stats printed. Call count zero or error ocurred.\n"));
-
- }
-
- ACE_DEBUG ((LM_DEBUG,
- "\t%d calls, %d errors\n"
- "*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=\n",
- this->call_count_,
- this->error_count_));
-}
-
-void
-Results::print_exception (const char *call_name,
- CORBA::Environment &env)
-{
- env.print_exception (call_name);
-}
-
-void
-Results::start_timer (void)
-{
- this->timer_.start ();
-}
-
-void
-Results::stop_timer (void)
-{
- this->timer_.stop ();
- this->timer_.elapsed_time (this->elapsed_time_[this->call_count_-1]);
-}
-
-CORBA::ULong
-Results::call_count (void)
-{
- return this->call_count_;
-}
-
-void
-Results::call_count (CORBA::ULong c)
-{
- this->call_count_ = c;
-}
-
-CORBA::ULong
-Results::error_count (void)
-{
- return this->error_count_;
-}
-
-void
-Results::error_count (CORBA::ULong c)
-{
- this->error_count_ = c;
-}
-
-void
-Results::iterations (CORBA::ULong iters)
-{
- this->elapsed_time_ = new ACE_Profile_Timer::ACE_Elapsed_Time [iters];
-}
diff --git a/TAO/tests/Param_Test/results.h b/TAO/tests/Param_Test/results.h
deleted file mode 100644
index 5f8139f655b..00000000000
--- a/TAO/tests/Param_Test/results.h
+++ /dev/null
@@ -1,80 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// results.h
-//
-// = DESCRIPTION
-// Printing the results
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef RESULTS_H
-#define RESULTS_H
-
-#include "tao/corba.h"
-#include "ace/Profile_Timer.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-class Results
-{
-public:
- Results (void);
- // ctor
-
- ~Results (void);
- // destructor
-
- void print_stats (void);
- // prints the time stats
-
- void print_exception (const char *call_name,
- CORBA::Environment &);
- // print the exception
-
- void start_timer (void);
- // start timing
-
- void stop_timer (void);
- // stop timing
-
- CORBA::ULong call_count (void);
- // return call count
-
- void call_count (CORBA::ULong);
- // set the call count
-
- CORBA::ULong error_count (void);
- // return the error count
-
- void error_count (CORBA::ULong);
- // set error count
-
- void iterations (CORBA::ULong iters);
- // set the number of times the test will be run
-
-private:
- CORBA::ULong call_count_;
- // # of calls made to functions
-
- CORBA::ULong error_count_;
- // # of errors incurred in the lifetime of the application.
-
- ACE_Profile_Timer timer_;
- // for timing the test
-
- ACE_Profile_Timer::ACE_Elapsed_Time *elapsed_time_;
- // holds the elapsed time for each iteration
-};
-
-#endif /* RESULTS_H */
diff --git a/TAO/tests/Param_Test/run_test.pl b/TAO/tests/Param_Test/run_test.pl
deleted file mode 100755
index f34f1921f7d..00000000000
--- a/TAO/tests/Param_Test/run_test.pl
+++ /dev/null
@@ -1,117 +0,0 @@
-# $Id$
-# -*- perl -*-
-eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
- & eval 'exec perl -S $0 $argv:q'
- if 0;
-
-use lib "../../../bin";
-require ACEutils;
-
-$port = 0;
-$iorfile = "server.ior";
-$invocation = "sii";
-$num = 5;
-$other = "";
-$debug = "";
-$type = "";
-
-sub run_test
-{
- my $type = shift(@_);
-
- $SV = Process::Create ($EXEPREFIX."server".$Process::EXE_EXT,
- "$debug -ORBobjrefstyle url -ORBport $port -o ".
- $iorfile);
-
- ACE::waitforfile ($iorfile);
-
- system ($EXEPREFIX."client $debug -f $iorfile -i $invocation -t ".
- "$type -n $num");
-
- # @@
- # Someday, a better way of doing this should be found. Or at least
- # something that can tell if a server is still alive. There is kill -0 on
- # Unix, but on NT ???
-
- $SV->Kill (); $SV->Wait ();
- unlink ($iorfile);
-}
-
-# Parse the arguments
-
-for ($i = 0; $i <= $#ARGV; $i++)
-{
- SWITCH:
- {
- if ($ARGV[$i] eq "-h" || $ARGV[$i] eq "-?")
- {
- print "Run_Test Perl script for TAO Param Test\n\n";
- print "run_test [-n num] [-d] [-onewin] [-h] [-t type] [-i (dii|sii)]\n";
- print "\n";
- print "-n num -- runs the client num times\n";
- print "-d -- runs each in debug mode\n";
- print "-onewin -- keeps all tests in one window on NT\n";
- print "-h -- prints this information\n";
- print "-t type -- runs only one type of param test\n";
- print "-i (dii|sii) -- Changes the type of invocation\n";
- exit;
- }
- if ($ARGV[$i] eq "-n")
- {
- $num = $ARGV[$i + 1];
- $i++;
- last SWITCH;
- }
- if ($ARGV[$i] eq "-d")
- {
- $debug = $debug." -d";
- last SWITCH;
- }
- if ($ARGV[$i] eq "-onewin")
- {
- if ($^O eq "MSWin32")
- {
- $Process::newwindow = "no";
- }
- last SWITCH;
- }
- if ($ARGV[$i] eq "-t")
- {
- $type = $ARGV[$i + 1];
- $i++;
- last SWITCH;
- }
- if ($ARGV[$i] eq "-i")
- {
- $invocation = $ARGV[$i + 1];
- $i++;
- last SWITCH;
- }
- $other .= $ARGV[$i];
- }
-}
-
-@types = ("short", "ulonglong", "ubstring", "bdstring", "fixed_struct",
- "ub_strseq", "bd_strseq",
- "var_struct", "nested_struct",
- "ub_struct_seq", "bd_struct_seq",
- "any", "objref", "objref_sequence", "objref_struct",
- "any_sequence",
- "ub_short_sequence", "ub_long_sequence",
- "bd_short_sequence", "bd_long_sequence",
- "fixed_array", "var_array", "typecode", "exception",
- "big_union");
-
-if ($type ne "")
-{
- run_test ($type);
-}
-else
-{
- foreach $type (@types)
- {
- run_test ($type);
- }
-}
-
-unlink $iorfile;
diff --git a/TAO/tests/Param_Test/server.cpp b/TAO/tests/Param_Test/server.cpp
deleted file mode 100644
index e5d97ab8cd7..00000000000
--- a/TAO/tests/Param_Test/server.cpp
+++ /dev/null
@@ -1,178 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// server.cpp
-//
-// = AUTHOR
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "ace/Get_Opt.h"
-#include "ace/Log_Msg.h"
-
-#include "param_test_i.h"
-
-ACE_RCSID(Param_Test, server, "$Id$")
-
-// Parses the command line arguments and returns an error status.
-static FILE *ior_output_file = 0;
-
-static int
-parse_args (int argc, char *argv[])
-{
- ACE_Get_Opt get_opts (argc, argv, "do:");
- int c;
-
- while ((c = get_opts ()) != -1)
- switch (c)
- {
- case 'd': // debug flag
- TAO_debug_level++;
- break;
- case 'o':
- ior_output_file = ACE_OS::fopen (get_opts.optarg, "w");
- if (ior_output_file == 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- "Unable to open %s for writing: %p\n",
- get_opts.optarg), -1);
- break;
- case '?':
- default:
- ACE_ERROR_RETURN ((LM_ERROR,
- "usage: %s"
- " [-d]"
- "\n", argv [0]), 1);
- }
-
- return 0; // Indicates successful parsing of command line
-}
-
-// Standard command line parsing utilities used.
-
-int
-main (int argc, char *argv[])
-{
- PortableServer::POA_var oa_ptr;
- Param_Test_i *param_test = 0;
-
- TAO_TRY
- {
- char *orb_name = "internet"; // unused by TAO
- CORBA::Object_var temp; // holder for the myriad of times we get
- // an object which we then have to narrow.
-
- // get the underlying ORB
- CORBA::ORB_var orb_ptr = CORBA::ORB_init (argc, argv, orb_name, TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // Get the Root POA
-
- temp = orb_ptr->resolve_initial_references ("RootPOA");
- if (CORBA::is_nil (temp.in()))
- ACE_ERROR_RETURN ((LM_ERROR,
- "(%P|%t) Unable to get root poa reference.\n"),
- 1);
-
- oa_ptr = PortableServer::POA::_narrow (temp.in(), TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- PortableServer::POAManager_var poa_manager =
- oa_ptr->the_POAManager (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- CORBA::PolicyList policies (2);
- policies.length (2);
- policies[0] =
- oa_ptr->create_id_assignment_policy (PortableServer::USER_ID,
- TAO_TRY_ENV);
- policies[1] =
- oa_ptr->create_lifespan_policy (PortableServer::PERSISTENT,
- TAO_TRY_ENV);
-
- // We use a different POA, otherwise the user would have to
- // change the object key each time it invokes the server.
- PortableServer::POA_var good_poa =
- oa_ptr->create_POA ("child_poa",
- poa_manager.in (),
- policies,
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // Parse remaining command line and verify parameters.
- parse_args (argc, argv);
-
- // initialize a param_test target object and register it with the object
- // adapter
-
- // Create the implementation object
- ACE_NEW_RETURN (param_test, Param_Test_i ("unknown"), 1);
-
- // Register with GoodPOA with a specific name
- PortableServer::ObjectId_var id =
- PortableServer::string_to_ObjectId ("param_test");
- good_poa->activate_object_with_id (id.in (),
- param_test,
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // Stringify the objref we'll be implementing, and print it to
- // stdout. Someone will take that string and give it to a
- // client. Then release the object.
-
- temp = good_poa->id_to_reference (id.in (), TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- CORBA::String_var str =
- orb_ptr->object_to_string (temp.in (),
- TAO_TRY_ENV);
-
- ACE_DEBUG ((LM_DEBUG, "(%P|%t) The IOR is <%s>\n", str.in ()));
- if (ior_output_file)
- {
- ACE_OS::fprintf (ior_output_file, "%s", str.in());
- ACE_OS::fclose (ior_output_file);
- }
-
-
- // Make the POAs controlled by this manager active
- poa_manager->activate (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- if (orb_ptr->run () == -1)
- ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "run"), -1);
-
- good_poa->destroy (1,
- 1,
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- oa_ptr->destroy (1,
- 1,
- TAO_TRY_ENV);
- TAO_CHECK_ENV;
- }
- TAO_CATCH (CORBA::SystemException, sysex)
- {
- ACE_UNUSED_ARG (sysex);
- TAO_TRY_ENV.print_exception ("System Exception");
- return -1;
- }
- TAO_CATCH (CORBA::UserException, userex)
- {
- ACE_UNUSED_ARG (userex);
- TAO_TRY_ENV.print_exception ("User Exception");
- return -1;
- }
- TAO_ENDTRY;
-
- // Free resources
- delete param_test;
-
- return 0;
-}
diff --git a/TAO/tests/Param_Test/server.dsp b/TAO/tests/Param_Test/server.dsp
deleted file mode 100644
index 9dae9a5b184..00000000000
--- a/TAO/tests/Param_Test/server.dsp
+++ /dev/null
@@ -1,229 +0,0 @@
-# Microsoft Developer Studio Project File - Name="Param_Test Server" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=Param_Test Server - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "server.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "server.mak" CFG="Param_Test Server - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "Param_Test Server - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Param_Test Server - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "Param_Test Server - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MD /W3 /GX /O2 /I "..\..\\" /I "..\..\..\\" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c
-# SUBTRACT CPP /YX
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 ace.lib tao.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\tao" /libpath:"..\..\..\ace"
-
-!ELSEIF "$(CFG)" == "Param_Test Server - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\\" /I "..\..\..\\" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /c
-# SUBTRACT CPP /YX /Yc /Yu
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 TAOd.lib aced.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\tao" /libpath:"..\..\..\ace"
-
-!ENDIF
-
-# Begin Target
-
-# Name "Param_Test Server - Win32 Release"
-# Name "Param_Test Server - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter ".cpp"
-# Begin Source File
-
-SOURCE=.\param_test_i.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\param_testCli.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\param_testSer.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\server.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\tmplinst.cpp
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter ".h"
-# Begin Source File
-
-SOURCE=.\param_test_i.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\Param_TestCli.h
-# End Source File
-# Begin Source File
-
-SOURCE=.\Param_TestSer.h
-# End Source File
-# End Group
-# Begin Group "Inline Files"
-
-# PROP Default_Filter ".i"
-# Begin Source File
-
-SOURCE=.\Param_TestC.i
-# End Source File
-# Begin Source File
-
-SOURCE=.\Param_TestS.i
-# End Source File
-# End Group
-# Begin Group "IDL Files"
-
-# PROP Default_Filter ".idl"
-# Begin Source File
-
-SOURCE=.\param_test.idl
-
-!IF "$(CFG)" == "Param_Test Server - Win32 Release"
-
-# PROP Ignore_Default_Tool 1
-USERDEP__PARAM="..\..\..\bin\Release\tao_idl.exe"
-# Begin Custom Build - Invoking TAO_IDL Compiler
-InputPath=.\param_test.idl
-InputName=param_test
-
-BuildCmds= \
- tao_idl -hc Cli.h -hs Ser.h -hT Ser_T.h -cs Cli.cpp -ci Cli.i -ss Ser.cpp -sT Ser_T.cpp -si Ser.i -st Ser_T.i $(InputName).idl
-
-"$(InputName)Cli.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Cli.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Cli.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Ser.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Ser.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Ser.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Ser_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Ser_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Ser_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-# End Custom Build
-
-!ELSEIF "$(CFG)" == "Param_Test Server - Win32 Debug"
-
-# PROP Ignore_Default_Tool 1
-USERDEP__PARAM="..\..\..\bin\tao_idl.exe"
-# Begin Custom Build - Invoking TAO_IDL Compiler
-InputPath=.\param_test.idl
-InputName=param_test
-
-BuildCmds= \
- tao_idl -hc Cli.h -hs Ser.h -hT Ser_T.h -cs Cli.cpp -ci Cli.i -ss Ser.cpp -sT Ser_T.cpp -si Ser.i -st Ser_T.i $(InputName).idl
-
-"$(InputName)Cli.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Cli.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Cli.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Ser.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Ser.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Ser.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Ser_T.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Ser_T.i" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-
-"$(InputName)Ser_T.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
- $(BuildCmds)
-# End Custom Build
-
-!ENDIF
-
-# End Source File
-# End Group
-# End Target
-# End Project
diff --git a/TAO/tests/Param_Test/short.cpp b/TAO/tests/Param_Test/short.cpp
deleted file mode 100644
index 92fc0286b92..00000000000
--- a/TAO/tests/Param_Test/short.cpp
+++ /dev/null
@@ -1,161 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// short.cpp
-//
-// = DESCRIPTION
-// tests shorts
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "helper.h"
-#include "short.h"
-
-ACE_RCSID(Param_Test, short, "$Id$")
-
-// ************************************************************************
-// Test_Short
-// ************************************************************************
-
-Test_Short::Test_Short (void)
- : opname_ (CORBA::string_dup ("test_short"))
-{
-}
-
-Test_Short::~Test_Short (void)
-{
- CORBA::string_free (this->opname_);
- this->opname_ = 0;
-}
-
-const char *
-Test_Short::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_Short::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-int
-Test_Short::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Generator *gen = GENERATOR::instance (); // value generator
-
- ACE_UNUSED_ARG (objref);
- ACE_UNUSED_ARG (env);
-
- this->in_ = gen->gen_short ();
- this->inout_ = 0;
- return 0;
-}
-
-int
-Test_Short::reset_parameters (void)
-{
- this->inout_ = 0;
- this->out_ = 0;
- this->ret_ = 0;
- return 0;
-}
-
-int
-Test_Short::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- this->ret_ = objref->test_short (this->in_,
- this->inout_,
- this->out_,
- env);
-
- return (env.exception () ? -1:0);
-}
-
-int
-Test_Short::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- // we provide top level memory to the ORB to retrieve the data
- CORBA::Any in_arg (CORBA::_tc_short,
- &this->in_,
- 0);
-
- CORBA::Any inout_arg (CORBA::_tc_short,
- &this->inout_,
- 0);
-
- CORBA::Any out_arg (CORBA::_tc_short,
- &this->out_,
- 0);
-
- // add parameters
- param_list->add_value ("s1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("s2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("s3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value. Let the ORB allocate storage. We simply tell the ORB
- // what type we are expecting.
- retval->item (0, env)->value ()->replace (CORBA::_tc_short,
- &this->ret_,
- 0, // does not own
- env);
- return 0;
-}
-
-CORBA::Boolean
-Test_Short::check_validity (void)
-{
- if (this->inout_ == this->in_ * 2 &&
- this->out_ == this->in_ * 3 &&
- this->ret_ == this->in_ * 4)
- return 1; // success
- else
- return 0;
-}
-
-CORBA::Boolean
-Test_Short::check_validity (CORBA::Request_ptr req)
-{
- ACE_UNUSED_ARG (req);
- return this->check_validity ();
-}
-
-void
-Test_Short::print_values (void)
-{
- ACE_DEBUG ((LM_DEBUG,
- "\n=*=*=*=*=*=*\n"
- "in = %d, "
- "inout = %d, "
- "out = %d, "
- "ret = %d\n"
- "\n=*=*=*=*=*=*\n",
- this->in_,
- this->inout_,
- this->out_,
- this->ret_));
-}
diff --git a/TAO/tests/Param_Test/short.h b/TAO/tests/Param_Test/short.h
deleted file mode 100644
index f1654379287..00000000000
--- a/TAO/tests/Param_Test/short.h
+++ /dev/null
@@ -1,88 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// short.h
-//
-// = DESCRIPTION
-// Tests shorts
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_SHORT_H
-#define PARAM_TEST_SHORT_H
-
-#include "param_testCli.h"
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test shorts
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-class Test_Short
-{
-public:
- Test_Short (void);
- // ctor
-
- ~Test_Short (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-/*
- int add_args (CORBA::Request_ptr &req,
- CORBA::Environment &env);
- // add args to DII request using << operator
-*/
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-private:
- char *opname_;
- // operation name
-
- CORBA::Short in_;
- // in parameter
-
- CORBA::Short inout_;
- // inout parameter
-
- CORBA::Short out_;
- // out parameter
-
- CORBA::Short ret_;
- // return value
-};
-
-#endif /* PARAM_TEST_SHORT_H */
diff --git a/TAO/tests/Param_Test/svc.conf b/TAO/tests/Param_Test/svc.conf
deleted file mode 100644
index f81ef257478..00000000000
--- a/TAO/tests/Param_Test/svc.conf
+++ /dev/null
@@ -1,7 +0,0 @@
-# $Id$
-#
-# Please read $TAO_ROOT/docs/Options.html for details.
-#
-dynamic Resource_Factory Service_Object * TAO:_make_TAO_Resource_Factory() "-ORBresources global"
-dynamic Client_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Client_Strategy_Factory()
-dynamic Server_Strategy_Factory Service_Object * TAO:_make_TAO_Default_Server_Strategy_Factory() "-ORBconcurrency reactive -ORBtablesize 128"
diff --git a/TAO/tests/Param_Test/tests.h b/TAO/tests/Param_Test/tests.h
deleted file mode 100644
index 739210f293a..00000000000
--- a/TAO/tests/Param_Test/tests.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// tests.h
-//
-// = DESCRIPTION
-// All the test objects header files included here
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef TESTS_H
-#define TESTS_H
-
-#include "any.h"
-#include "bd_long_seq.h"
-#include "bd_short_seq.h"
-#include "bd_str_seq.h"
-#include "bd_string.h"
-#include "bd_struct_seq.h"
-#include "fixed_array.h"
-#include "fixed_struct.h"
-#include "nested_struct.h"
-#include "objref_struct.h"
-#include "objref.h"
-#include "short.h"
-#include "ulonglong.h"
-#include "typecode.h"
-#include "ub_any_seq.h"
-#include "ub_long_seq.h"
-#include "ub_objref_seq.h"
-#include "ub_short_seq.h"
-#include "ub_str_seq.h"
-#include "ub_string.h"
-#include "ub_struct_seq.h"
-#include "var_array.h"
-#include "var_struct.h"
-#include "except.h"
-#include "big_union.h"
-
-#endif /* if !defined */
diff --git a/TAO/tests/Param_Test/tmplinst.cpp b/TAO/tests/Param_Test/tmplinst.cpp
deleted file mode 100644
index da569288cb7..00000000000
--- a/TAO/tests/Param_Test/tmplinst.cpp
+++ /dev/null
@@ -1,32 +0,0 @@
-// $Id$
-
-// The contents of this file REALLY should be generated by the IDL
-// compiler, but that functionality isn't available yet.
-
-#include "param_testCli.h"
-
-ACE_RCSID(Param_Test, tmplinst, "$Id$")
-
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-template class TAO_Unbounded_Sequence<CORBA::Any>;
-template class TAO_Bounded_Sequence<CORBA::Long,32>;
-template class TAO_Unbounded_Sequence<CORBA::Short>;
-template class TAO_Bounded_Sequence<CORBA::Short,32>;
-template class TAO_Bounded_String_Sequence<32>;
-template class TAO_Unbounded_Sequence<Param_Test::Fixed_Struct>;
-template class TAO_Bounded_Sequence<Param_Test::Fixed_Struct,32>;
-template class TAO_Unbounded_Object_Sequence<Coffee>;
-template class TAO_Bounded_Object_Sequence<Coffee,32>;
-template class TAO_Object_Manager<Coffee>;
-#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-#pragma instantiate TAO_Unbounded_Sequence<CORBA::Any>
-#pragma instantiate TAO_Bounded_Sequence<CORBA::Long,32>
-#pragma instantiate TAO_Unbounded_Sequence<CORBA::Short>
-#pragma instantiate TAO_Bounded_Sequence<CORBA::Short,32>
-#pragma instantiate TAO_Bounded_String_Sequence<32>
-#pragma instantiate TAO_Unbounded_Sequence<Param_Test::Fixed_Struct>
-#pragma instantiate TAO_Bounded_Sequence<Param_Test::Fixed_Struct,32>
-#pragma instantiate TAO_Unbounded_Object_Sequence<Coffee>
-#pragma instantiate TAO_Bounded_Object_Sequence<Coffee,32>
-#pragma instantiate TAO_Object_Manager<Coffee>
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
diff --git a/TAO/tests/Param_Test/typecode.cpp b/TAO/tests/Param_Test/typecode.cpp
deleted file mode 100644
index 0e25f2b8e8b..00000000000
--- a/TAO/tests/Param_Test/typecode.cpp
+++ /dev/null
@@ -1,165 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// typecode.cpp
-//
-// = DESCRIPTION
-// tests typecodes
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "helper.h"
-#include "typecode.h"
-
-ACE_RCSID(Param_Test, typecode, "$Id$")
-
-// ************************************************************************
-// Test_TypeCode
-// ************************************************************************
-
-Test_TypeCode::Test_TypeCode (void)
- : opname_ (CORBA::string_dup ("test_typecode"))
-{
-}
-
-Test_TypeCode::~Test_TypeCode (void)
-{
- CORBA::string_free (this->opname_);
- this->opname_ = 0;
-}
-
-const char *
-Test_TypeCode::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_TypeCode::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-int
-Test_TypeCode::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- static CORBA::TypeCode_ptr tc_table [] =
- {
- // primitive parameterless typecodes
- CORBA::_tc_short,
- // typecode with a simple parameter
- CORBA::_tc_string,
- // complex typecodes
- CORBA::_tc_Object,
- _tc_Param_Test,
- Param_Test::_tc_StructSeq,
- Param_Test::_tc_Nested_Struct
- };
-
- Generator *gen = GENERATOR::instance (); // value generator
- CORBA::ULong index =
- (CORBA::ULong) (gen->gen_long () % sizeof(tc_table)/sizeof(CORBA::TypeCode_ptr));
-
- this->tc_holder_ = CORBA::TypeCode::_duplicate (tc_table [index]);
- this->in_ = this->tc_holder_;
- this->inout_ = CORBA::TypeCode::_duplicate (CORBA::_tc_null);
-
- // Must initialize these for DII
- this->out_ = CORBA::TypeCode::_duplicate (CORBA::_tc_null);
- this->ret_ = CORBA::TypeCode::_duplicate (CORBA::_tc_null);
-
- return 0;
-}
-
-int
-Test_TypeCode::reset_parameters (void)
-{
- this->in_ = this->tc_holder_;
- this->inout_ = CORBA::TypeCode::_duplicate (CORBA::_tc_null);
- return 0;
-}
-
-int
-Test_TypeCode::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- CORBA::TypeCode_out out (this->out_);
- this->ret_ = objref->test_typecode (this->in_.in (),
- this->inout_.inout (),
- out,
- env);
- return (env.exception () ? -1:0);
-}
-
-int
-Test_TypeCode::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- CORBA::Any in_arg (CORBA::_tc_TypeCode,
- &this->in_,
- 0);
-
- CORBA::Any inout_arg (CORBA::_tc_TypeCode,
- &this->inout_,
- 0);
-
- CORBA::Any out_arg (CORBA::_tc_TypeCode,
- &this->out_,
- 0);
-
- // add parameters
- param_list->add_value ("s1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("s2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("s3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value
- retval->item (0, env)->value ()->replace (CORBA::_tc_TypeCode,
- &this->ret_,
- 0, // does not own
- env);
- return 0;
-}
-
-CORBA::Boolean
-Test_TypeCode::check_validity (void)
-{
- CORBA::Environment env;
- if (this->in_.in ()->equal (this->inout_.in (), env) &&
- this->in_.in ()->equal (this->out_.in (), env) &&
- this->in_.in ()->equal (this->ret_.in (), env))
- return 1;
- else
- return 0;
-}
-
-CORBA::Boolean
-Test_TypeCode::check_validity (CORBA::Request_ptr req)
-{
- return this->check_validity ();
-}
-
-void
-Test_TypeCode::print_values (void)
-{
-}
diff --git a/TAO/tests/Param_Test/typecode.h b/TAO/tests/Param_Test/typecode.h
deleted file mode 100644
index c35274ad2a1..00000000000
--- a/TAO/tests/Param_Test/typecode.h
+++ /dev/null
@@ -1,88 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// typecode.h
-//
-// = DESCRIPTION
-// Tests typecodes
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_TYPECODE_H
-#define PARAM_TEST_TYPECODE_H
-
-#include "param_testCli.h"
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test TypeCodes
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-class Test_TypeCode
-{
-public:
- Test_TypeCode (void);
- // ctor
-
- ~Test_TypeCode (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-private:
- CORBA::TypeCode_var tc_holder_;
- // place for selected typecode to stay during time
- // between init_parameters () and reset_parameters ().
-
- char *opname_;
- // operation name
-
- CORBA::TypeCode_var in_;
- // in parameter
-
- CORBA::TypeCode_var inout_;
- // inout parameter
-
- CORBA::TypeCode_var out_;
- // out parameter
-
- CORBA::TypeCode_var ret_;
- // return value
-};
-
-#endif /* PARAM_TEST_TYPECODE_H */
diff --git a/TAO/tests/Param_Test/ub_any_seq.cpp b/TAO/tests/Param_Test/ub_any_seq.cpp
deleted file mode 100644
index f2f659ea03a..00000000000
--- a/TAO/tests/Param_Test/ub_any_seq.cpp
+++ /dev/null
@@ -1,341 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// ub_any_seq.cpp
-//
-// = DESCRIPTION
-// tests unbounded Any sequences
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "helper.h"
-#include "ub_any_seq.h"
-
-const CORBA::ULong TEST_SEQ_LENGTH = 5;
-
-ACE_RCSID(Param_Test, ub_any_seq, "$Id$")
-
-// ************************************************************************
-// Test_AnySeq
-// ************************************************************************
-
-Test_AnySeq::Test_AnySeq (void)
- : opname_ (CORBA::string_dup ("test_anyseq")),
- in_ (new Param_Test::AnySeq (TEST_SEQ_LENGTH)),
- inout_ (new Param_Test::AnySeq (TEST_SEQ_LENGTH)),
- out_ (new Param_Test::AnySeq),
- ret_ (new Param_Test::AnySeq)
-{
-}
-
-Test_AnySeq::~Test_AnySeq (void)
-{
- CORBA::string_free (this->opname_);
- this->opname_ = 0;
-}
-
-const char *
-Test_AnySeq::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_AnySeq::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-int
-Test_AnySeq::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Generator *gen = GENERATOR::instance (); // value generator
-
- // Must be set explicitly (CORBA spec)
- this->in_->length (TEST_SEQ_LENGTH);
-
- for (CORBA::ULong i=0; i < this->in_->length (); i++)
- {
- CORBA::ULong index = (CORBA::ULong) (gen->gen_short () % 4);
- switch (index)
- {
- case 0:
- {
- CORBA::Short s;
- s = gen->gen_short ();
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "setting short = %d\n", s));
- this->in_[i] <<= s;
- this->inout_[i] <<= 0; // different from in_
- }
- break;
- case 1:
- {
- char *str = gen->gen_string ();
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "setting string = %s\n", str));
- this->in_[i] <<= str;
- this->inout_[i] <<= 0; // different from in_
- }
- break;
- case 2:
- {
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "setting coffee object \n" ));
- TAO_TRY
- {
- // get access to a Coffee Object
- Coffee_var cobj = objref->make_coffee (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // insert the coffee object into the Any
- this->in_[i] <<= cobj.in ();
- this->inout_[i] <<= 0; // different from in_
- }
- TAO_CATCH (CORBA::SystemException, sysex)
- {
- ACE_UNUSED_ARG (sysex);
- TAO_TRY_ENV.print_exception
- ("System Exception doing make_coffee");
- return -1;
- }
- TAO_ENDTRY;
- }
- break;
- case 3:
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "setting constant string \n" ));
- this->in_[i] <<= "Const string";
- this->inout_[i] <<= 0; // different from in_
- break;
- case 4:
- break;
- case 5:
- break;
- }
- }
-
- return 0;
-}
-
-int
-Test_AnySeq::reset_parameters (void)
-{
- Generator *gen = GENERATOR::instance (); // value generator
-
- for (CORBA::ULong i=0; i < this->in_->length (); i++)
- {
- CORBA::ULong index = (CORBA::ULong) (gen->gen_long () % 4);
-
- switch (index)
- {
- case 0:
- {
- CORBA::Short s;
- s = gen->gen_short ();
- this->in_[i] <<= s;
- this->inout_[i] <<= s;
- }
- break;
- case 1:
- {
- char *str = gen->gen_string ();
- this->in_[i] <<= str;
- this->inout_[i] <<= str;
- }
- break;
- case 2:
- {
- this->inout_[i] = this->in_[i];
- }
- break;
- case 3:
- this->in_[i] <<= "Const string";
- this->inout_[i] <<= "Const string";
- break;
- case 4:
- break;
- case 5:
- break;
- }
- }
-
- return 0;
-}
-
-
-int
-Test_AnySeq::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Param_Test::AnySeq_out out (this->out_.out ());
- this->ret_ = objref->test_anyseq (this->in_.in (),
- this->inout_.inout (),
- out,
- env);
- return (env.exception () ? -1:0);
-}
-
-int
-Test_AnySeq::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- CORBA::Any in_arg (Param_Test::_tc_AnySeq,
- (void *) &this->in_.in (),
- 0);
-
- CORBA::Any inout_arg (Param_Test::_tc_AnySeq,
- &this->inout_.inout (),
- 0);
-
- CORBA::Any out_arg (Param_Test::_tc_AnySeq,
- &this->out_.inout (), // .out () causes crash
- 0);
-
- // add parameters
- param_list->add_value ("s1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("s2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("s3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value type
- retval->item (0, env)->value ()->replace (Param_Test::_tc_AnySeq,
- // see above
- &this->ret_.inout (),
- // does not own
- 0, env);
- return 0;
-}
-
-CORBA::Boolean
-Test_AnySeq::check_validity (void)
-{
- CORBA::Short short_in, short_inout, short_out, short_ret;
- char *str_in, *str_inout, *str_out, *str_ret;
- Coffee_ptr obj_in, obj_inout, obj_out, obj_ret;
-
- for (CORBA::ULong i=0; i < this->in_->length (); i++)
- {
- if ((this->in_[i] >>= short_in) &&
- (this->inout_[i] >>= short_inout) &&
- (this->out_[i] >>= short_out) &&
- (this->ret_[i] >>= short_ret))
- {
- ACE_DEBUG ((LM_DEBUG, "Received shorts: in = %d, "
- "inout = %d, out = %d, ret = %d\n",
- short_in, short_inout, short_out, short_ret));
-
- if ((short_in == short_inout) &&
- (short_in == short_out) &&
- (short_in == short_ret))
- return 1;
- else
- {
- ACE_DEBUG ((LM_DEBUG, "mismatch of short values\n"));
- return 0;
- }
- }
- else if ((this->in_[i] >>= str_in) &&
- (this->inout_[i] >>= str_inout) &&
- (this->out_[i] >>= str_out) &&
- (this->ret_[i] >>= str_ret))
- {
- if (!ACE_OS::strcmp (str_in, str_inout) &&
- !ACE_OS::strcmp (str_in, str_out) &&
- !ACE_OS::strcmp (str_in, str_ret))
- return 1;
- else
- {
- ACE_DEBUG ((LM_DEBUG, "mismatch of string values\n"));
- return 0;
- }
- }
- else if ((this->in_[i] >>= obj_in) &&
- (this->inout_[i] >>= obj_inout) &&
- (this->out_[i] >>= obj_out) &&
- (this->ret_[i] >>= obj_ret))
- {
- // all the >>= operators returned true so we are OK.
- return 1;
- }
- else
- return 0;
- }
-
- // Should never reach this.
- return 0;
-}
-
-CORBA::Boolean
-Test_AnySeq::check_validity (CORBA::Request_ptr req)
-{
- return this->check_validity ();
-}
-
-void
-Test_AnySeq::print_values (void)
-{
- ACE_DEBUG ((LM_DEBUG,
- "*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*\n"
- "IN sequence\n"));
- this->print_sequence (this->in_.in ());
- ACE_DEBUG ((LM_DEBUG,
- "*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*\n"
- "INOUT sequence\n"));
- this->print_sequence (this->inout_.in ());
- ACE_DEBUG ((LM_DEBUG,
- "*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*\n"
- "OUT sequence\n"));
- this->print_sequence (this->out_.in ());
- ACE_DEBUG ((LM_DEBUG,
- "*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*\n"
- "RET sequence\n"));
- this->print_sequence (this->ret_.in ());
-}
-
-void
-Test_AnySeq::print_sequence (const Param_Test::AnySeq &s)
-{
- ACE_DEBUG ((LM_DEBUG,
- "maximum = %d\n"
- "length = %d\n",
- s.maximum (),
- s.length ()));
- ACE_DEBUG ((LM_DEBUG, "Elements -\n"));
- for (CORBA::ULong i=0; i < s.length (); i++)
- {
- /* const CORBA::Any& vs = s[i];
-
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "\tl = %d\n"
- "\tc = %c\n"
- "\ts = %d\n"
- "\to = %x\n"
- "\tf = %f\n"
- "\tb = %d\n"
- "\td = %f\n",
- i,
- vs.l, vs.c, vs.s, vs.o, vs.f, vs.b, vs.d));
- */ }
-}
diff --git a/TAO/tests/Param_Test/ub_any_seq.h b/TAO/tests/Param_Test/ub_any_seq.h
deleted file mode 100644
index ce418d63438..00000000000
--- a/TAO/tests/Param_Test/ub_any_seq.h
+++ /dev/null
@@ -1,92 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// ub_any_seq.h
-//
-// = DESCRIPTION
-// Tests unbounded Any sequences
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_UNBOUNDED_ANY_SEQUENCE_H
-#define PARAM_TEST_UNBOUNDED_ANY_SEQUENCE_H
-
-#include "param_testCli.h"
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test sequences of Anys
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-class Test_AnySeq
-{
-public:
- Test_AnySeq (void);
- // ctor
-
- ~Test_AnySeq (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-protected:
- CORBA::Boolean compare (const Param_Test::AnySeq &s1,
- const Param_Test::StructSeq &s2);
- // compare
-
- void print_sequence (const Param_Test::AnySeq &s);
- // print individual sequence
-
-private:
- char *opname_;
- // operation name
-
- Param_Test::AnySeq_var in_;
- // in parameter
-
- Param_Test::AnySeq_var inout_;
- // inout parameter
-
- Param_Test::AnySeq_var out_;
- // out parameter
-
- Param_Test::AnySeq_var ret_;
- // return value
-};
-
-#endif /* PARAM_TEST_UNBOUNDED_ANY_SEQUENCE_H */
diff --git a/TAO/tests/Param_Test/ub_long_seq.cpp b/TAO/tests/Param_Test/ub_long_seq.cpp
deleted file mode 100644
index a38a13df40b..00000000000
--- a/TAO/tests/Param_Test/ub_long_seq.cpp
+++ /dev/null
@@ -1,219 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// ub_long_seq.cpp
-//
-// = DESCRIPTION
-// tests unbounded long sequences
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "helper.h"
-#include "ub_long_seq.h"
-
-ACE_RCSID(Param_Test, ub_long_seq, "$Id$")
-
-// ************************************************************************
-// Test_Long_Sequence
-// ************************************************************************
-
-Test_Long_Sequence::Test_Long_Sequence (void)
- : opname_ (CORBA::string_dup ("test_long_sequence")),
- in_ (new Param_Test::Long_Seq),
- inout_ (new Param_Test::Long_Seq),
- out_ (new Param_Test::Long_Seq),
- ret_ (new Param_Test::Long_Seq)
-{
-}
-
-Test_Long_Sequence::~Test_Long_Sequence (void)
-{
- CORBA::string_free (this->opname_);
- this->opname_ = 0;
-}
-
-const char *
-Test_Long_Sequence::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_Long_Sequence::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-int
-Test_Long_Sequence::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Generator *gen = GENERATOR::instance (); // value generator
-
- ACE_UNUSED_ARG (objref);
- ACE_UNUSED_ARG (env);
-
- // get some sequence length (not more than 10)
- CORBA::ULong len = (CORBA::ULong) (gen->gen_long () % 10) + 1;
-
- // set the length of the sequence
- this->in_->length (len);
- this->inout_->length (len);
- // now set each individual element
- for (CORBA::ULong i=0; i < this->in_->length (); i++)
- {
- this->in_[i] = i;
- this->inout_[i] = i+1;
- }
- return 0;
-}
-
-int
-Test_Long_Sequence::reset_parameters (void)
-{
- this->inout_ = new Param_Test::Long_Seq; // delete the previous ones
- this->out_ = new Param_Test::Long_Seq;
- this->ret_ = new Param_Test::Long_Seq;
- return 0;
-}
-
-int
-Test_Long_Sequence::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Param_Test::Long_Seq_out out (this->out_.out ());
- this->ret_ = objref->test_long_sequence (this->in_.in (),
- this->inout_.inout (),
- out,
- env);
- return (env.exception () ? -1:0);
-}
-
-int
-Test_Long_Sequence::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- CORBA::Any in_arg (Param_Test::_tc_Long_Seq,
- (void *) &this->in_.in (),
- 0);
-
- CORBA::Any inout_arg (Param_Test::_tc_Long_Seq,
- &this->inout_.inout (),
- 0);
-
- CORBA::Any out_arg (Param_Test::_tc_Long_Seq,
- &this->out_.inout (), // .out () causes crash
- 0);
-
- // add parameters
- param_list->add_value ("s1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("s2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("s3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value type
- retval->item (0, env)->value ()->replace (Param_Test::_tc_Long_Seq,
- &this->ret_.inout (), // see above
- 0, // does not own
- env);
- return 0;
-}
-
-CORBA::Boolean
-Test_Long_Sequence::check_validity (void)
-{
- CORBA::Boolean flag = 0;
- if ((this->in_->length () == this->inout_->length ()) &&
- (this->in_->length () == this->out_->length ()) &&
- (this->in_->length () == this->ret_->length ()))
- {
- flag = 1; // assume all are equal
- // lengths are same. Now compare the contents
- for (CORBA::ULong i=0; i < this->in_->length () && flag; i++)
- {
- if (this->in_[i] != this->inout_[i] ||
- this->in_[i] != this->out_[i] ||
- this->in_[i] != this->ret_[i])
- // not equal
- flag = 0;
- }
- }
- return flag;
-}
-
-CORBA::Boolean
-Test_Long_Sequence::check_validity (CORBA::Request_ptr req)
-{
- ACE_UNUSED_ARG (req);
- return this->check_validity ();
-}
-
-void
-Test_Long_Sequence::print_values (void)
-{
- CORBA::ULong i;
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->in_.ptr () && (i < this->in_->length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- this->in_[i]? (const char *)this->in_[i]:"<nul>"));
- }
- if (!this->in_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\nin sequence is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->inout_.ptr () && (i < this->inout_->length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- (this->inout_[i]? (const char *)this->inout_[i]:"<nul>")));
- }
- if (!this->inout_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\ninout sequence is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->out_.ptr () && (i < this->out_->length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- (this->out_[i]? (const char *)this->out_[i]:"<nul>")));
- }
- if (!this->out_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\nout sequence is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->ret_.ptr () && (i < this->ret_->length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- (this->ret_[i]? (const char *)this->ret_[i]:"<nul>")));
- }
- if (!this->ret_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\nin sequence is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
-}
diff --git a/TAO/tests/Param_Test/ub_long_seq.h b/TAO/tests/Param_Test/ub_long_seq.h
deleted file mode 100644
index 0fca83a1352..00000000000
--- a/TAO/tests/Param_Test/ub_long_seq.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// ub_long_seq.h
-//
-// = DESCRIPTION
-// Tests unbounded long sequences
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_UNBOUNDED_LONG_SEQUENCE_H
-#define PARAM_TEST_UNBOUNDED_LONG_SEQUENCE_H
-
-#include "param_testCli.h"
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test sequences of longs
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-
-class Test_Long_Sequence
-{
-public:
- Test_Long_Sequence (void);
- // ctor
-
- ~Test_Long_Sequence (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-private:
- char *opname_;
- // operation name
-
- Param_Test::Long_Seq_var in_;
- // in parameter
-
- Param_Test::Long_Seq_var inout_;
- // inout parameter
-
- Param_Test::Long_Seq_var out_;
- // out parameter
-
- Param_Test::Long_Seq_var ret_;
- // return value
-};
-
-#endif /* PARAM_TEST_UNBOUNDED_LONG_SEQUENCE_H */
diff --git a/TAO/tests/Param_Test/ub_objref_seq.cpp b/TAO/tests/Param_Test/ub_objref_seq.cpp
deleted file mode 100644
index 53c28ec4354..00000000000
--- a/TAO/tests/Param_Test/ub_objref_seq.cpp
+++ /dev/null
@@ -1,302 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// ub_objref_seq.cpp
-//
-// = DESCRIPTION
-// tests unbounded objref sequences
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "helper.h"
-#include "ub_objref_seq.h"
-
-ACE_RCSID(Param_Test, ub_objref_seq, "$Id$")
-
-// ************************************************************************
-// Test_ObjRef_Sequence
-// ************************************************************************
-
-static const char *Coffee_Flavor [] = {
- "Italian Roast",
- "Irish Creme",
- "Costa Rican",
- "Colombian Supremo",
- "Macademia Nut",
- "Swiss Chocolate Mocha"
-};
-
-Test_ObjRef_Sequence::Test_ObjRef_Sequence (void)
- : opname_ (CORBA::string_dup ("test_coffe_mix")),
- inout_ (new Param_Test::Coffee_Mix),
- out_ (new Param_Test::Coffee_Mix),
- ret_ (new Param_Test::Coffee_Mix)
-{
-}
-
-Test_ObjRef_Sequence::~Test_ObjRef_Sequence (void)
-{
- CORBA::string_free (this->opname_);
- this->opname_ = 0;
- // the other data members will be freed as they are "_var"s and objects
- // (rather than pointers to objects)
-}
-
-const char *
-Test_ObjRef_Sequence::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_ObjRef_Sequence::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-int
-Test_ObjRef_Sequence::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Coffee::Desc desc;
- Generator *gen = GENERATOR::instance (); // value generator
-
- // get some sequence length (not more than 10)
- CORBA::ULong len = (CORBA::ULong) (gen->gen_long () % 5) + 5;
-
- // set the length of the sequence
- this->in_.length (len);
- // now set each individual element
- for (CORBA::ULong i = 0; i < this->in_.length (); i++)
- {
- // generate some arbitrary string to be filled into the ith location in
- // the sequence
- this->in_[i] = objref->make_coffee (env);
- if (env.exception ())
- {
- env.print_exception ("make_coffee");
- return -1;
- }
- // select a Coffee flavor at random
- CORBA::ULong index = (CORBA::ULong) (gen->gen_long () % 6);
- desc.name = Coffee_Flavor [index];
- // set the attribute for the in object
- Coffee_ptr tmp = this->in_[i];
- tmp->description (desc, env);
-
- if (env.exception ())
- {
- env.print_exception ("set coffee attribute");
- return -1;
- }
- }
- return 0;
-}
-
-int
-Test_ObjRef_Sequence::reset_parameters (void)
-{
- this->inout_ = new Param_Test::Coffee_Mix; // delete the previous ones
- this->out_ = new Param_Test::Coffee_Mix;
- this->ret_ = new Param_Test::Coffee_Mix;
- return 0;
-}
-
-int
-Test_ObjRef_Sequence::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Param_Test::Coffee_Mix_out out (this->out_.out ());
- // ACE_DEBUG ((LM_DEBUG, "test_coffe_mix (IN):\n"));
- // this->print_sequence (this->in_);
- this->ret_ = objref->test_coffe_mix (this->in_,
- this->inout_.inout (),
- out,
- env);
- return (env.exception () ? -1:0);
-}
-
-int
-Test_ObjRef_Sequence::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- CORBA::Any in_arg (Param_Test::_tc_Coffee_Mix,
- (void *) &this->in_,
- 0);
-
- CORBA::Any inout_arg (Param_Test::_tc_Coffee_Mix,
- &this->inout_.inout (),
- 0);
-
- CORBA::Any out_arg (Param_Test::_tc_Coffee_Mix,
- &this->out_.inout (),
- 0);
-
- // add parameters
- param_list->add_value ("s1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("s2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("s3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value
- retval->item (0, env)->value ()->replace (Param_Test::_tc_Coffee_Mix,
- &this->ret_.inout (),
- 0, // does not own
- env);
- return 0;
-}
-
-CORBA::Boolean
-Test_ObjRef_Sequence::check_validity (void)
-{
- TAO_TRY
- {
- // ACE_DEBUG ((LM_DEBUG, "IN: \n"));
- // this->print_sequence (this->in_);
-
- // ACE_DEBUG ((LM_DEBUG, "INOUT: \n"));
- // this->print_sequence (this->inout_.in ());
-
- // ACE_DEBUG ((LM_DEBUG, "OUT: \n"));
- // this->print_sequence (this->out_.in ());
-
- if (this->compare (this->in_,
- this->inout_.in (),
- TAO_TRY_ENV))
- {
- TAO_CHECK_ENV;
- if (this->compare (this->in_,
- this->out_.in (),
- TAO_TRY_ENV))
- {
- TAO_CHECK_ENV;
- if (this->compare (this->in_,
- this->ret_.in (),
- TAO_TRY_ENV))
- {
- TAO_CHECK_ENV;
- return 1;
- }
- }
- }
- return 0;
- }
- TAO_CATCHANY
- {
- return 0;
- }
- TAO_ENDTRY_RETURN (0);
-}
-
-CORBA::Boolean
-Test_ObjRef_Sequence::check_validity (CORBA::Request_ptr req)
-{
- ACE_UNUSED_ARG (req);
- return this->check_validity ();
-}
-
-void
-Test_ObjRef_Sequence::print_values (void)
-{
- ACE_DEBUG ((LM_DEBUG,
- "*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*\n"
- "IN sequence\n"));
- this->print_sequence (this->in_);
- ACE_DEBUG ((LM_DEBUG,
- "*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*\n"
- "INOUT sequence\n"));
- this->print_sequence (this->inout_.in ());
- ACE_DEBUG ((LM_DEBUG,
- "*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*\n"
- "OUT sequence\n"));
- this->print_sequence (this->out_.in ());
- ACE_DEBUG ((LM_DEBUG,
- "*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*\n"
- "RET sequence\n"));
- this->print_sequence (this->ret_.in ());
-}
-
-CORBA::Boolean
-Test_ObjRef_Sequence::compare (const Param_Test::Coffee_Mix &s1,
- const Param_Test::Coffee_Mix &s2,
- CORBA::Environment& env)
-{
- if (s1.maximum () != s2.maximum ())
- return 0;
- if (s1.length () != s2.length ())
- return 0;
-
- for (CORBA::ULong i=0; i < s1.length (); i++)
- {
- Coffee_ptr vs1 = s1[i];
- Coffee_ptr vs2 = s2[i];
-
- if (CORBA::is_nil (vs1) && CORBA::is_nil (vs2))
- continue;
-
- if (CORBA::is_nil (vs1) || CORBA::is_nil (vs2))
- return 0;
-
- CORBA::String_var n1 = vs1->description (env)->name.in ();
- if (env.exception ())
- {
- env.print_exception ("retrieving description for vs1");
- return 0;
- }
- CORBA::String_var n2 = vs2->description (env)->name.in ();
- if (env.exception ())
- {
- env.print_exception ("retrieving description for vs2");
- return 0;
- }
- if (ACE_OS::strcmp(n1.in (), n2.in ()) != 0)
- return 0;
- }
-
- return 1; // success
-}
-
-void
-Test_ObjRef_Sequence::print_sequence (const Param_Test::Coffee_Mix &s)
-{
- ACE_DEBUG ((LM_DEBUG,
- "maximum = %d\n"
- "length = %d\n",
- s.maximum (),
- s.length ()));
- ACE_DEBUG ((LM_DEBUG, "Elements -\n"));
- for (CORBA::ULong i=0; i < s.length (); i++)
- {
- Coffee_ptr c = s[i];
- if (CORBA::is_nil (c))
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d is nil\n", i));
- continue;
- }
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "\ttype = <%s>\n",
- i,
- c->_interface_repository_id ()));
- }
-}
diff --git a/TAO/tests/Param_Test/ub_objref_seq.h b/TAO/tests/Param_Test/ub_objref_seq.h
deleted file mode 100644
index c1d0744290c..00000000000
--- a/TAO/tests/Param_Test/ub_objref_seq.h
+++ /dev/null
@@ -1,94 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// ub_objref_seq.h
-//
-// = DESCRIPTION
-// Tests unbounded sequences of object references
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_UNBOUNDED_OBJREF_SEQUENCE_H
-#define PARAM_TEST_UNBOUNDED_OBJREF_SEQUENCE_H
-
-#include "param_testCli.h"
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test sequence of object references
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-
-class Test_ObjRef_Sequence
-{
-public:
- Test_ObjRef_Sequence (void);
- // ctor
-
- ~Test_ObjRef_Sequence (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-protected:
- CORBA::Boolean compare (const Param_Test::Coffee_Mix &s1,
- const Param_Test::Coffee_Mix &s2,
- CORBA::Environment& env);
- // compare
-
- void print_sequence (const Param_Test::Coffee_Mix &s);
- // print individual sequence
-private:
- char *opname_;
- // operation name
-
- Param_Test::Coffee_Mix in_;
- // in parameter
-
- // these need memory management
- Param_Test::Coffee_Mix_var inout_;
- // inout parameter
-
- Param_Test::Coffee_Mix_var out_;
- // out parameter
-
- Param_Test::Coffee_Mix_var ret_;
- // return value
-};
-
-#endif /* PARAM_TEST_UNBOUNDED_OBJREF_SEQUENCE_H */
diff --git a/TAO/tests/Param_Test/ub_short_seq.cpp b/TAO/tests/Param_Test/ub_short_seq.cpp
deleted file mode 100644
index d393474cb5a..00000000000
--- a/TAO/tests/Param_Test/ub_short_seq.cpp
+++ /dev/null
@@ -1,221 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// ub_short_seq.cpp
-//
-// = DESCRIPTION
-// tests unbounded short sequences
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "helper.h"
-#include "ub_short_seq.h"
-
-ACE_RCSID(Param_Test, ub_short_seq, "$Id$")
-
-// ************************************************************************
-// Test_Short_Sequence
-// ************************************************************************
-
-Test_Short_Sequence::Test_Short_Sequence (void)
- : opname_ (CORBA::string_dup ("test_short_sequence")),
- in_ (new Param_Test::Short_Seq),
- inout_ (new Param_Test::Short_Seq),
- out_ (new Param_Test::Short_Seq),
- ret_ (new Param_Test::Short_Seq)
-{
-}
-
-Test_Short_Sequence::~Test_Short_Sequence (void)
-{
- CORBA::string_free (this->opname_);
- this->opname_ = 0;
-}
-
-const char *
-Test_Short_Sequence::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_Short_Sequence::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-int
-Test_Short_Sequence::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Generator *gen = GENERATOR::instance (); // value generator
-
- ACE_UNUSED_ARG (objref);
- ACE_UNUSED_ARG (env);
-
- // get some sequence length (not more than 10)
- CORBA::ULong len = (CORBA::ULong) (gen->gen_long () % 10) + 1;
-
- // set the length of the sequence
- this->in_->length (len);
- this->inout_->length (len);
- // now set each individual element
- for (CORBA::ULong i=0; i < this->in_->length (); i++)
- {
- // generate some arbitrary string to be filled into the ith location in
- // the sequence
- this->in_[i] = i;
- this->inout_[i] = i+1;
- }
- return 0;
-}
-
-int
-Test_Short_Sequence::reset_parameters (void)
-{
- this->inout_ = new Param_Test::Short_Seq; // delete the previous ones
- this->out_ = new Param_Test::Short_Seq;
- this->ret_ = new Param_Test::Short_Seq;
- return 0;
-}
-
-int
-Test_Short_Sequence::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Param_Test::Short_Seq_out out (this->out_.out ());
- this->ret_ = objref->test_short_sequence (this->in_.in (),
- this->inout_.inout (),
- out,
- env);
- return (env.exception () ? -1:0);
-}
-
-int
-Test_Short_Sequence::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- CORBA::Any in_arg (Param_Test::_tc_Short_Seq,
- (void *) &this->in_.in (),
- 0);
-
- CORBA::Any inout_arg (Param_Test::_tc_Short_Seq,
- &this->inout_.inout (),
- 0);
-
- CORBA::Any out_arg (Param_Test::_tc_Short_Seq,
- &this->out_.inout (), // .out () causes crash
- 0);
-
- // add parameters
- param_list->add_value ("s1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("s2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("s3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value type
- retval->item (0, env)->value ()->replace (Param_Test::_tc_Short_Seq,
- &this->ret_.inout (), // see above
- 0, // does not own
- env);
- return 0;
-}
-
-CORBA::Boolean
-Test_Short_Sequence::check_validity (void)
-{
- CORBA::Boolean flag = 0;
- if ((this->in_->length () == this->inout_->length ()) &&
- (this->in_->length () == this->out_->length ()) &&
- (this->in_->length () == this->ret_->length ()))
- {
- flag = 1; // assume all are equal
- // lengths are same. Now compare the contents
- for (CORBA::ULong i=0; i < this->in_->length () && flag; i++)
- {
- if (this->in_[i] != this->inout_[i] ||
- this->in_[i] != this->out_[i] ||
- this->in_[i] != this->ret_[i])
- // not equal
- flag = 0;
- }
- }
- return flag;
-}
-
-CORBA::Boolean
-Test_Short_Sequence::check_validity (CORBA::Request_ptr req)
-{
- ACE_UNUSED_ARG (req);
- return this->check_validity ();
-}
-
-void
-Test_Short_Sequence::print_values (void)
-{
- CORBA::ULong i;
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->in_.ptr () && (i < this->in_->length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- this->in_[i]? (const char *)this->in_[i]:"<nul>"));
- }
- if (!this->in_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\nin sequence is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->inout_.ptr () && (i < this->inout_->length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- (this->inout_[i]? (const char *)this->inout_[i]:"<nul>")));
- }
- if (!this->inout_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\ninout sequence is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->out_.ptr () && (i < this->out_->length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- (this->out_[i]? (const char *)this->out_[i]:"<nul>")));
- }
- if (!this->out_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\nout sequence is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->ret_.ptr () && (i < this->ret_->length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- (this->ret_[i]? (const char *)this->ret_[i]:"<nul>")));
- }
- if (!this->ret_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\nin sequence is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
-}
diff --git a/TAO/tests/Param_Test/ub_short_seq.h b/TAO/tests/Param_Test/ub_short_seq.h
deleted file mode 100644
index 3c245c24bde..00000000000
--- a/TAO/tests/Param_Test/ub_short_seq.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// ub_short_seq.h
-//
-// = DESCRIPTION
-// Tests unbounded short sequence
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_UNBOUNDED_SHORT_SEQUENCE_H
-#define PARAM_TEST_UNBOUNDED_SHORT_SEQUENCE_H
-
-#include "param_testCli.h"
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test sequences of shorts
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-
-class Test_Short_Sequence
-{
-public:
- Test_Short_Sequence (void);
- // ctor
-
- ~Test_Short_Sequence (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-private:
- char *opname_;
- // operation name
-
- Param_Test::Short_Seq_var in_;
- // in parameter
-
- Param_Test::Short_Seq_var inout_;
- // inout parameter
-
- Param_Test::Short_Seq_var out_;
- // out parameter
-
- Param_Test::Short_Seq_var ret_;
- // return value
-};
-
-#endif /* PARAM_TEST_UNBOUNDED_SHORT_SEQUENCE_H */
diff --git a/TAO/tests/Param_Test/ub_str_seq.cpp b/TAO/tests/Param_Test/ub_str_seq.cpp
deleted file mode 100644
index 64fbc26b3c2..00000000000
--- a/TAO/tests/Param_Test/ub_str_seq.cpp
+++ /dev/null
@@ -1,225 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// ub_str_seq.cpp
-//
-// = DESCRIPTION
-// tests unbounded string sequences
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "helper.h"
-#include "ub_str_seq.h"
-
-ACE_RCSID(Param_Test, ub_str_seq, "$Id$")
-
-// ************************************************************************
-// Test_String_Sequence
-// ************************************************************************
-
-Test_String_Sequence::Test_String_Sequence (void)
- : opname_ (CORBA::string_dup ("test_strseq")),
- in_ (new Param_Test::StrSeq),
- inout_ (new Param_Test::StrSeq),
- out_ (new Param_Test::StrSeq),
- ret_ (new Param_Test::StrSeq)
-{
-}
-
-Test_String_Sequence::~Test_String_Sequence (void)
-{
- CORBA::string_free (this->opname_);
- this->opname_ = 0;
-}
-
-const char *
-Test_String_Sequence::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_String_Sequence::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-int
-Test_String_Sequence::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- ACE_UNUSED_ARG (objref);
- ACE_UNUSED_ARG (env);
-
- const char *choiceList[] =
- {
- "one",
- "two",
- "three",
- "four"
- };
-
- CORBA::ULong len = sizeof(choiceList)/sizeof(char *) - 1;
-
- // set the length of the sequences
- this->in_->length (len);
- this->inout_->length (len);
-
- // now set each individual element
- for (CORBA::ULong i=0; i < this->in_->length (); i++)
- {
- this->in_[i] = choiceList[i];
- this->inout_[i] = choiceList[i+1];
- }
- return 0;
-}
-
-int
-Test_String_Sequence::reset_parameters (void)
-{
- this->inout_ = new Param_Test::StrSeq; // delete the previous ones
- this->out_ = new Param_Test::StrSeq;
- this->ret_ = new Param_Test::StrSeq;
- return 0;
-}
-
-int
-Test_String_Sequence::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Param_Test::StrSeq_out out (this->out_.out ());
- this->ret_ = objref->test_strseq (this->in_.in (),
- this->inout_.inout (),
- out,
- env);
- return (env.exception () ? -1:0);
-}
-
-int
-Test_String_Sequence::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- CORBA::Any in_arg (Param_Test::_tc_StrSeq,
- (void *) &this->in_.in (),
- 0);
-
- CORBA::Any inout_arg (Param_Test::_tc_StrSeq,
- &this->inout_.inout (),
- 0);
-
- CORBA::Any out_arg (Param_Test::_tc_StrSeq,
- &this->out_.inout (), // out_.out () causes crash
- 0);
-
- // add parameters
- param_list->add_value ("s1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("s2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("s3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value type
- retval->item (0, env)->value ()->replace (Param_Test::_tc_StrSeq,
- &this->ret_.inout (), // see above
- 0, // does not own
- env);
- return 0;
-}
-
-CORBA::Boolean
-Test_String_Sequence::check_validity (void)
-{
- CORBA::Boolean flag = 0;
- if ((this->in_->length () == this->inout_->length ()) &&
- (this->in_->length () == this->out_->length ()) &&
- (this->in_->length () == this->ret_->length ()))
- {
- flag = 1; // assume all are equal
- // lengths are same. Now compare the contents
- for (CORBA::ULong i=0; i < this->in_->length () && flag; i++)
- {
- if (ACE_OS::strcmp(this->in_[i], this->inout_[i]) ||
- ACE_OS::strcmp(this->in_[i], this->out_[i]) ||
- ACE_OS::strcmp(this->in_[i], this->ret_[i]))
- // not equal
- flag = 0;
- }
- }
- return flag;
-}
-
-CORBA::Boolean
-Test_String_Sequence::check_validity (CORBA::Request_ptr req)
-{
- ACE_UNUSED_ARG (req);
- return this->check_validity ();
-}
-
-void
-Test_String_Sequence::print_values (void)
-{
- CORBA::ULong i;
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->in_.ptr () && (i < this->in_->length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- this->in_[i]? (const char *)this->in_[i]:"<nul>"));
- }
- if (!this->in_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\nin sequence is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->inout_.ptr () && (i < this->inout_->length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- (this->inout_[i]? (const char *)this->inout_[i]:"<nul>")));
- }
- if (!this->inout_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\ninout sequence is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->out_.ptr () && (i < this->out_->length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- (this->out_[i]? (const char *)this->out_[i]:"<nul>")));
- }
- if (!this->out_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\nout sequence is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->ret_.ptr () && (i < this->ret_->length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- (this->ret_[i]? (const char *)this->ret_[i]:"<nul>")));
- }
- if (!this->ret_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\nin sequence is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
-}
diff --git a/TAO/tests/Param_Test/ub_str_seq.h b/TAO/tests/Param_Test/ub_str_seq.h
deleted file mode 100644
index a7307a74999..00000000000
--- a/TAO/tests/Param_Test/ub_str_seq.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// ub_str_seq.h
-//
-// = DESCRIPTION
-// Tests sequences of strings
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_UNBOUNDED_STRING_SEQUENCE_H
-#define PARAM_TEST_UNBOUNDED_STRING_SEQUENCE_H
-
-#include "param_testCli.h"
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test typedefed sequences (in our case, sequences of strings)
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-
-class Test_String_Sequence
-{
-public:
- Test_String_Sequence (void);
- // ctor
-
- ~Test_String_Sequence (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-private:
- char *opname_;
- // operation name
-
- Param_Test::StrSeq_var in_;
- // in parameter
-
- Param_Test::StrSeq_var inout_;
- // inout parameter
-
- Param_Test::StrSeq_var out_;
- // out parameter
-
- Param_Test::StrSeq_var ret_;
- // return value
-};
-
-#endif /* PARAM_TEST_UNBOUNDED_STRING_SEQUENCE_H */
diff --git a/TAO/tests/Param_Test/ub_string.cpp b/TAO/tests/Param_Test/ub_string.cpp
deleted file mode 100644
index 7a41a10cc59..00000000000
--- a/TAO/tests/Param_Test/ub_string.cpp
+++ /dev/null
@@ -1,194 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// ub_string.cpp
-//
-// = DESCRIPTION
-// tests unbounded strings
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "helper.h"
-#include "ub_string.h"
-
-ACE_RCSID(Param_Test, ub_string, "$Id$")
-
-// ************************************************************************
-// Test_Unbounded_String
-// ************************************************************************
-
-Test_Unbounded_String::Test_Unbounded_String (void)
- : opname_ (CORBA::string_dup ("test_unbounded_string")),
- in_ (0),
- inout_ (0),
- out_ (0),
- ret_ (0)
-{
-}
-
-Test_Unbounded_String::~Test_Unbounded_String (void)
-{
- CORBA::string_free (this->opname_);
- CORBA::string_free (this->in_);
- CORBA::string_free (this->inout_);
- CORBA::string_free (this->out_);
- CORBA::string_free (this->ret_);
- this->opname_ = 0;
- this->in_ = 0;
- this->inout_ = 0;
- this->out_ = 0;
- this->ret_ = 0;
-}
-
-const char *
-Test_Unbounded_String::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_Unbounded_String::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-int
-Test_Unbounded_String::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Generator *gen = GENERATOR::instance (); // value generator
- ACE_UNUSED_ARG (objref);
- ACE_UNUSED_ARG (env);
-
- // release any previously occupied values
- CORBA::string_free (this->in_);
- CORBA::string_free (this->inout_);
- CORBA::string_free (this->out_);
- CORBA::string_free (this->ret_);
- this->in_ = 0;
- this->inout_ = 0;
- this->out_ = 0;
- this->ret_ = 0;
-
- this->in_ = gen->gen_string ();
- this->inout_ = CORBA::string_dup (this->in_);
- return 0;
-}
-
-int
-Test_Unbounded_String::reset_parameters (void)
-{
- // release any previously occupied values
- this->inout_ = 0;
- this->out_ = 0;
- this->ret_ = 0;
-
- this->inout_ = CORBA::string_dup (this->in_);
- return 0;
-}
-
-int
-Test_Unbounded_String::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- CORBA::String_out str_out (this->out_);
- this->ret_ = objref->test_unbounded_string (this->in_,
- this->inout_,
- str_out,
- env);
- return (env.exception () ? -1:0);
-}
-
-int
-Test_Unbounded_String::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- // create the parmaters
- CORBA::Any in_arg (CORBA::_tc_string,
- &this->in_,
- 0);
-
- CORBA::Any inout_arg (CORBA::_tc_string,
- &this->inout_,
- 0);
-
- CORBA::Any out_arg (CORBA::_tc_string,
- &this->out_,
- 0);
-
- // add parameters
- param_list->add_value ("s1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("s2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("s3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value
- retval->item (0, env)->value ()->replace (CORBA::_tc_string,
- &this->ret_,
- 0, // does not own
- env);
- return 0;
-}
-
-CORBA::Boolean
-Test_Unbounded_String::check_validity (void)
-{
- CORBA::ULong len = ACE_OS::strlen (this->in_);
-
- if (!ACE_OS::strcmp (this->in_, this->out_) &&
- !ACE_OS::strcmp (this->in_, this->ret_) &&
- ACE_OS::strlen (this->inout_) == 2*len &&
- !ACE_OS::strncmp (this->in_, this->inout_, len) &&
- !ACE_OS::strncmp (this->in_, &this->inout_[len], len))
- return 1;
-
- return 0; // otherwise
-}
-
-CORBA::Boolean
-Test_Unbounded_String::check_validity (CORBA::Request_ptr req)
-{
- // No need to retrieve anything because, for all the args and
- // the return, we provided the memory and we own it.
- ACE_UNUSED_ARG (req);
- return this->check_validity ();
-}
-
-void
-Test_Unbounded_String::print_values (void)
-{
- ACE_DEBUG ((LM_DEBUG,
- "\n=*=*=*=*=*=*\n"
- "in with len (%d) = %s\n"
- "inout with len (%d) = %s\n"
- "out with len (%d) = %s\n"
- "ret with len (%d) = %s\n"
- "\n=*=*=*=*=*=*\n",
- (this->in_ ? ACE_OS::strlen (this->in_):0),
- (this->in_ ? this->in_:"<nul string>"),
- (this->inout_ ? ACE_OS::strlen (this->inout_):0),
- (this->inout_ ? this->inout_:"<nul string>"),
- (this->out_ ? ACE_OS::strlen (this->out_):0),
- (this->out_ ? this->out_:"<nul string>"),
- (this->ret_ ? ACE_OS::strlen (this->ret_):0),
- (this->ret_ ? this->ret_:"<nul string>")));
-}
diff --git a/TAO/tests/Param_Test/ub_string.h b/TAO/tests/Param_Test/ub_string.h
deleted file mode 100644
index ad2c150d2e8..00000000000
--- a/TAO/tests/Param_Test/ub_string.h
+++ /dev/null
@@ -1,88 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// unbounded_string.h
-//
-// = DESCRIPTION
-// Tests unbounded string
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_UNBOUNDED_STRING_H
-#define PARAM_TEST_UNBOUNDED_STRING_H
-
-#include "param_testCli.h"
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test unbounded strings
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-class Test_Unbounded_String
-{
-public:
- Test_Unbounded_String (void);
- // ctor
-
- ~Test_Unbounded_String (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-/*
- int add_args (CORBA::Request_ptr &req,
- CORBA::Environment &env);
- // add args to DII request using << operator
-*/
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-private:
- char *opname_;
- // operation name
-
- char *in_;
- // in parameter
-
- char *inout_;
- // inout parameter
-
- char *out_;
- // out parameter
-
- char *ret_;
- // return value
-};
-
-#endif /* PARAM_TEST_UNBOUNDED_STRING_H */
diff --git a/TAO/tests/Param_Test/ub_struct_seq.cpp b/TAO/tests/Param_Test/ub_struct_seq.cpp
deleted file mode 100644
index 5035d33a050..00000000000
--- a/TAO/tests/Param_Test/ub_struct_seq.cpp
+++ /dev/null
@@ -1,441 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// ub_struct_seq.cpp
-//
-// = DESCRIPTION
-// tests unbounded struct sequences
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "helper.h"
-#include "ub_struct_seq.h"
-
-ACE_RCSID(Param_Test, ub_struct_seq, "$Id$")
-
-// ************************************************************************
-// Test_Struct_Sequence
-// ************************************************************************
-
-Test_Struct_Sequence::Test_Struct_Sequence (void)
- : opname_ (CORBA::string_dup ("test_struct_sequence")),
- inout_ (new Param_Test::StructSeq),
- out_ (new Param_Test::StructSeq),
- ret_ (new Param_Test::StructSeq)
-{
-}
-
-Test_Struct_Sequence::~Test_Struct_Sequence (void)
-{
- CORBA::string_free (this->opname_);
- this->opname_ = 0;
- // the other data members will be freed as they are "_var"s and objects
- // (rather than pointers to objects)
-}
-
-const char *
-Test_Struct_Sequence::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_Struct_Sequence::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-int
-Test_Struct_Sequence::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Generator *gen = GENERATOR::instance (); // value generator
-
- ACE_UNUSED_ARG (objref);
- ACE_UNUSED_ARG (env);
-
- // get some sequence length (not more than 10)
- CORBA::ULong len = (CORBA::ULong) (gen->gen_long () % 10) + 1;
-
- // set the length of the sequence
- this->in_.length (len);
- this->inout_->length (len);
- // now set each individual element
- for (CORBA::ULong i = 0; i < this->in_.length (); i++)
- {
- // generate some arbitrary string to be filled into the ith location in
- // the sequence
- this->in_[i] = gen->gen_fixed_struct ();
- this->inout_[i] = gen->gen_fixed_struct ();
- }
- return 0;
-}
-
-int
-Test_Struct_Sequence::reset_parameters (void)
-{
- this->inout_ = new Param_Test::StructSeq; // delete the previous one
- this->out_ = new Param_Test::StructSeq;
- this->ret_ = new Param_Test::StructSeq;
- return 0;
-}
-
-int
-Test_Struct_Sequence::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Param_Test::StructSeq_out out (this->out_.out ());
- this->ret_ = objref->test_struct_sequence (this->in_,
- this->inout_.inout (),
- out,
- env);
- return (env.exception () ? -1:0);
-}
-
-int
-Test_Struct_Sequence::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- CORBA::Any in_arg (Param_Test::_tc_StructSeq,
- &this->in_,
- 0);
-
- CORBA::Any inout_arg (Param_Test::_tc_StructSeq,
- &this->inout_.inout (),
- 0);
-
- CORBA::Any out_arg (Param_Test::_tc_StructSeq,
- &this->out_.inout (), // .out () causes crash
- 0);
-
- // add parameters
- param_list->add_value ("s1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("s2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("s3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value type
- retval->item (0, env)->value ()->replace (Param_Test::_tc_StructSeq,
- &this->ret_.inout (), // see above
- 0, // does not own
- env);
- return 0;
-}
-
-CORBA::Boolean
-Test_Struct_Sequence::check_validity (void)
-{
- if (this->compare (this->in_, this->inout_.in ()) &&
- this->compare (this->in_, this->out_.in ()) &&
- this->compare (this->in_, this->ret_.in ()))
- return 1;
- else
- return 0;
-}
-
-CORBA::Boolean
-Test_Struct_Sequence::check_validity (CORBA::Request_ptr req)
-{
- ACE_UNUSED_ARG (req);
- return this->check_validity ();
-}
-
-void
-Test_Struct_Sequence::print_values (void)
-{
- ACE_DEBUG ((LM_DEBUG,
- "*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*\n"
- "IN sequence\n"));
- this->print_sequence (this->in_);
- ACE_DEBUG ((LM_DEBUG,
- "*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*\n"
- "INOUT sequence\n"));
- this->print_sequence (this->inout_.in ());
- ACE_DEBUG ((LM_DEBUG,
- "*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*\n"
- "OUT sequence\n"));
- this->print_sequence (this->out_.in ());
- ACE_DEBUG ((LM_DEBUG,
- "*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*\n"
- "RET sequence\n"));
- this->print_sequence (this->ret_.in ());
-}
-
-CORBA::Boolean
-Test_Struct_Sequence::compare (const Param_Test::StructSeq &s1,
- const Param_Test::StructSeq &s2)
-{
- if (s1.maximum () != s2.maximum ())
- return 0;
- if (s1.length () != s2.length ())
- return 0;
-
- for (CORBA::ULong i=0; i < s1.length (); i++)
- {
- const Param_Test::Fixed_Struct& vs1 = s1[i];
- const Param_Test::Fixed_Struct& vs2 = s2[i];
-
- if (vs1.l != vs2.l
- || vs1.c != vs2.c
- || vs1.s != vs2.s
- || vs1.o != vs2.o
- || vs1.f != vs2.f
- || vs1.b != vs2.b
- || vs1.d != vs2.d )
- return 0;
- }
-
- return 1; // success
-}
-
-void
-Test_Struct_Sequence::print_sequence (const Param_Test::StructSeq &s)
-{
- ACE_DEBUG ((LM_DEBUG,
- "maximum = %d\n"
- "length = %d\n",
- s.maximum (),
- s.length ()));
- ACE_DEBUG ((LM_DEBUG, "Elements -\n"));
- for (CORBA::ULong i=0; i < s.length (); i++)
- {
- const Param_Test::Fixed_Struct& vs = s[i];
-
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "\tl = %d\n"
- "\tc = %c\n"
- "\ts = %d\n"
- "\to = %x\n"
- "\tf = %f\n"
- "\tb = %d\n"
- "\td = %f\n",
- i,
- vs.l, vs.c, vs.s, vs.o, vs.f, vs.b, vs.d));
- }
-}
-
-
-// ************************************************************************
-// Test_Unbounded_Struct_Sequence
-// ************************************************************************
-
-Test_Unbounded_Struct_Sequence::Test_Unbounded_Struct_Sequence (void)
- : opname_ (CORBA::string_dup ("test_unbounded_struct_sequence")),
- inout_ (new Param_Test::PathSpec),
- out_ (new Param_Test::PathSpec),
- ret_ (new Param_Test::PathSpec)
-{
-}
-
-Test_Unbounded_Struct_Sequence::~Test_Unbounded_Struct_Sequence (void)
-{
- CORBA::string_free (this->opname_);
- this->opname_ = 0;
- // the other data members will be freed as they are "_var"s and objects
- // (rather than pointers to objects)
-}
-
-const char *
-Test_Unbounded_Struct_Sequence::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_Unbounded_Struct_Sequence::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-int
-Test_Unbounded_Struct_Sequence::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Generator *gen = GENERATOR::instance (); // value generator
-
- ACE_UNUSED_ARG (objref);
- ACE_UNUSED_ARG (env);
-
- // get some sequence length (not more than 10)
- CORBA::ULong len = (CORBA::ULong) (gen->gen_long () % 10) + 1;
-
- // set the length of the sequence
- this->in_.length (len);
- this->inout_->length (len);
- // now set each individual element
-
- for (CORBA::ULong i = 0; i < this->in_.length (); i++)
- {
- // generate some arbitrary string to be filled into the ith location in
- // the sequence
- this->in_[i] = gen->gen_step ();
- this->inout_[i] = gen->gen_step ();
- }
- return 0;
-}
-
-int
-Test_Unbounded_Struct_Sequence::reset_parameters (void)
-{
- this->inout_ = new Param_Test::PathSpec; // delete the previous one
- this->out_ = new Param_Test::PathSpec;
- this->ret_ = new Param_Test::PathSpec;
- return 0;
-}
-
-int
-Test_Unbounded_Struct_Sequence::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Param_Test::PathSpec_out out (this->out_.out ());
- this->ret_ = objref->test_unbounded_struct_sequence (this->in_,
- this->inout_.inout (),
- out,
- env);
- return (env.exception () ? -1:0);
-}
-
-int
-Test_Unbounded_Struct_Sequence::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- CORBA::Any in_arg (Param_Test::_tc_PathSpec,
- &this->in_,
- 0);
-
- CORBA::Any inout_arg (Param_Test::_tc_PathSpec,
- &this->inout_.inout (),
- 0);
-
- CORBA::Any out_arg (Param_Test::_tc_PathSpec,
- &this->out_.inout (),
- 0);
-
- // add parameters
- param_list->add_value ("s1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("s2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("s3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value type
- retval->item (0, env)->value ()->replace (Param_Test::_tc_PathSpec,
- &this->ret_.inout (),
- 0,
- env);
- return 0;
-}
-
-CORBA::Boolean
-Test_Unbounded_Struct_Sequence::check_validity (void)
-{
- if (this->compare (this->in_, this->inout_.in ()) &&
- this->compare (this->in_, this->out_.in ()) &&
- this->compare (this->in_, this->ret_.in ()))
- return 1;
- else
- return 0;
-}
-
-CORBA::Boolean
-Test_Unbounded_Struct_Sequence::check_validity (CORBA::Request_ptr req)
-{
- ACE_UNUSED_ARG (req);
- return this->check_validity ();
-}
-
-void
-Test_Unbounded_Struct_Sequence::print_values (void)
-{
- ACE_DEBUG ((LM_DEBUG,
- "*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*\n"
- "IN sequence\n"));
- this->print_sequence (this->in_);
- ACE_DEBUG ((LM_DEBUG,
- "*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*\n"
- "INOUT sequence\n"));
- this->print_sequence (this->inout_.in ());
- ACE_DEBUG ((LM_DEBUG,
- "*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*\n"
- "OUT sequence\n"));
- this->print_sequence (this->out_.in ());
- ACE_DEBUG ((LM_DEBUG,
- "*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*\n"
- "RET sequence\n"));
- this->print_sequence (this->ret_.in ());
-}
-
-CORBA::Boolean
-Test_Unbounded_Struct_Sequence::compare (const Param_Test::PathSpec &s1,
- const Param_Test::PathSpec &s2)
-{
- if (s1.maximum () != s2.maximum ())
- return 0;
- if (s1.length () != s2.length ())
- return 0;
-
- for (CORBA::ULong i=0; i < s1.length (); i++)
- {
- const Param_Test::Step& vs1 = s1[i];
- const Param_Test::Step& vs2 = s2[i];
-
- if (ACE_OS::strcmp (vs1.name.id.in (), vs2.name.id.in ())
- || ACE_OS:: strcmp (vs1.name.kind.in (), vs2.name.kind.in ())
- || vs1.process != vs2.process)
- return 0;
- }
- return 1; // success
-}
-
-void
-Test_Unbounded_Struct_Sequence::print_sequence (const Param_Test::PathSpec &s)
-{
- ACE_DEBUG ((LM_DEBUG,
- "maximum = %d\n"
- "length = %d\n",
- s.maximum (),
- s.length ()));
- ACE_DEBUG ((LM_DEBUG, "Elements -\n"));
- for (CORBA::ULong i=0; i < s.length (); i++)
- {
- const Param_Test::Step& vs = s[i];
-
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "\tname.id = %s\n"
- "\tname.kind = %s\n"
- "\tprocess = %d\n",
- i,
- vs.name.id.in (), vs.name.kind.in (), vs.process));
- }
-}
diff --git a/TAO/tests/Param_Test/ub_struct_seq.h b/TAO/tests/Param_Test/ub_struct_seq.h
deleted file mode 100644
index f104b59813c..00000000000
--- a/TAO/tests/Param_Test/ub_struct_seq.h
+++ /dev/null
@@ -1,163 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// ub_struct_seq.h
-//
-// = DESCRIPTION
-// Tests unbounded struct sequence
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_UNBOUNED_STRUCT_SEQUENCE_H
-#define PARAM_TEST_UNBOUNED_STRUCT_SEQUENCE_H
-
-#include "param_testCli.h"
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test sequence of structs
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-
-class Test_Struct_Sequence
-{
-public:
- Test_Struct_Sequence (void);
- // ctor
-
- ~Test_Struct_Sequence (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-protected:
- CORBA::Boolean compare (const Param_Test::StructSeq &s1,
- const Param_Test::StructSeq &s2);
- // compare
-
- void print_sequence (const Param_Test::StructSeq &s);
- // print individual sequence
-
-private:
- char *opname_;
- // operation name
-
- Param_Test::StructSeq in_;
- // in parameter
-
- // these need memory management
- Param_Test::StructSeq_var inout_;
- // inout parameter
-
- Param_Test::StructSeq_var out_;
- // out parameter
-
- Param_Test::StructSeq_var ret_;
- // return value
-};
-
-
-
-class Test_Unbounded_Struct_Sequence
-{
-public:
- Test_Unbounded_Struct_Sequence (void);
- // ctor
-
- ~Test_Unbounded_Struct_Sequence (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-protected:
- CORBA::Boolean compare (const Param_Test::PathSpec &s1,
- const Param_Test::PathSpec &s2);
- // compare
-
- void print_sequence (const Param_Test::PathSpec &s);
- // print individual sequence
-
-private:
- char *opname_;
- // operation name
-
- Param_Test::PathSpec in_;
- // in parameter
-
- // these need memory management
- Param_Test::PathSpec_var inout_;
- // inout parameter
-
- Param_Test::PathSpec_var out_;
- // out parameter
-
- Param_Test::PathSpec_var ret_;
- // return value
-};
-
-
-#endif /* PARAM_TEST_UNBOUNED_STRUCT_SEQUENCE_H */
diff --git a/TAO/tests/Param_Test/ulonglong.cpp b/TAO/tests/Param_Test/ulonglong.cpp
deleted file mode 100644
index 92eecd725c5..00000000000
--- a/TAO/tests/Param_Test/ulonglong.cpp
+++ /dev/null
@@ -1,157 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// ulonglong.cpp
-//
-// = DESCRIPTION
-// tests 64 bit longs
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "helper.h"
-#include "ulonglong.h"
-
-ACE_RCSID(Param_Test, ulonglong, "$Id$")
-
-Test_ULongLong::Test_ULongLong (void)
- : opname_ (CORBA::string_dup ("test_ulonglong"))
-{
-}
-
-Test_ULongLong::~Test_ULongLong (void)
-{
- CORBA::string_free (this->opname_);
- this->opname_ = 0;
-}
-
-const char *
-Test_ULongLong::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_ULongLong::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-int
-Test_ULongLong::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Generator *gen = GENERATOR::instance (); // value generator
-
- ACE_UNUSED_ARG (objref);
- ACE_UNUSED_ARG (env);
-
- this->in_ = gen->gen_long ();
- this->inout_ = 0;
- return 0;
-}
-
-int
-Test_ULongLong::reset_parameters (void)
-{
- this->inout_ = 0;
- this->out_ = 0;
- this->ret_ = 0;
- return 0;
-}
-
-int
-Test_ULongLong::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- this->ret_ = objref->test_ulonglong (this->in_,
- this->inout_,
- this->out_,
- env);
-
- return (env.exception () ? -1:0);
-}
-
-int
-Test_ULongLong::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- // we provide top level memory to the ORB to retrieve the data
- CORBA::Any in_arg (CORBA::_tc_ulonglong,
- &this->in_,
- 0);
-
- CORBA::Any inout_arg (CORBA::_tc_ulonglong,
- &this->inout_,
- 0);
-
- CORBA::Any out_arg (CORBA::_tc_ulonglong,
- &this->out_,
- 0);
-
- // add parameters
- param_list->add_value ("s1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("s2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("s3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value. Let the ORB allocate storage. We simply tell the ORB
- // what type we are expecting.
- retval->item (0, env)->value ()->replace (CORBA::_tc_ulonglong,
- &this->ret_,
- 0, // does not own
- env);
- return 0;
-}
-
-CORBA::Boolean
-Test_ULongLong::check_validity (void)
-{
- if (this->inout_ == this->in_ * 2 &&
- this->out_ == this->in_ * 3 &&
- this->ret_ == this->in_ * 4)
- return 1; // success
- else
- return 0;
-}
-
-CORBA::Boolean
-Test_ULongLong::check_validity (CORBA::Request_ptr req)
-{
- ACE_UNUSED_ARG (req);
- return this->check_validity ();
-}
-
-void
-Test_ULongLong::print_values (void)
-{
- ACE_DEBUG ((LM_DEBUG,
- "\n=*=*=*=*=*=*\n"
- "in = %d, "
- "inout = %d, "
- "out = %d, "
- "ret = %d\n"
- "\n=*=*=*=*=*=*\n",
- this->in_,
- this->inout_,
- this->out_,
- this->ret_));
-}
diff --git a/TAO/tests/Param_Test/ulonglong.h b/TAO/tests/Param_Test/ulonglong.h
deleted file mode 100644
index 7e3aeaee240..00000000000
--- a/TAO/tests/Param_Test/ulonglong.h
+++ /dev/null
@@ -1,80 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// ulonglong.h
-//
-// = DESCRIPTION
-// Tests 64bit unsigned longs.
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_ULONGLONG_H
-#define PARAM_TEST_ULONGLONG_H
-
-#include "param_testCli.h"
-
-class Test_ULongLong
-{
-public:
- Test_ULongLong (void);
- // ctor
-
- ~Test_ULongLong (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-private:
- char *opname_;
- // operation name
-
- CORBA::ULongLong in_;
- // in parameter
-
- CORBA::ULongLong inout_;
- // inout parameter
-
- CORBA::ULongLong out_;
- // out parameter
-
- CORBA::ULongLong ret_;
- // return value
-};
-
-#endif /* PARAM_TEST_ULONGLONG_H */
diff --git a/TAO/tests/Param_Test/var_array.cpp b/TAO/tests/Param_Test/var_array.cpp
deleted file mode 100644
index 1e82a7ec744..00000000000
--- a/TAO/tests/Param_Test/var_array.cpp
+++ /dev/null
@@ -1,187 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// var_array.cpp
-//
-// = DESCRIPTION
-// tests fixed size arrays
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "helper.h"
-#include "var_array.h"
-
-ACE_RCSID(Param_Test, var_array, "$Id$")
-
-// ************************************************************************
-// Test_Var_Array
-// ************************************************************************
-
-Test_Var_Array::Test_Var_Array (void)
- : opname_ (CORBA::string_dup ("test_var_array")),
- out_ (new Param_Test::Var_Array),
- ret_ (new Param_Test::Var_Array)
-{
-}
-
-Test_Var_Array::~Test_Var_Array (void)
-{
- CORBA::string_free (this->opname_);
- this->opname_ = 0;
-}
-
-const char *
-Test_Var_Array::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_Var_Array::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-int
-Test_Var_Array::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Generator *gen = GENERATOR::instance (); // value generator
-
- ACE_UNUSED_ARG (objref);
- ACE_UNUSED_ARG (env);
-
- // fill the in_ array
- for (CORBA::ULong i=0; i < Param_Test::DIM2; i++)
- {
- this->in_[i] = gen->gen_string ();
- }
-
- return 0;
-}
-
-int
-Test_Var_Array::reset_parameters (void)
-{
- // free the out, and return value arrays
- Param_Test::Var_Array_free (this->out_._retn ());
- Param_Test::Var_Array_free (this->ret_._retn ());
- this->out_ = new Param_Test::Var_Array;
- this->ret_ = new Param_Test::Var_Array;
- return 0;
-}
-
-int
-Test_Var_Array::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Param_Test::Var_Array_out out_arr (this->out_.out ());
- this->ret_ = objref->test_var_array (this->in_,
- this->inout_,
- out_arr,
- env);
- return (env.exception () ? -1:0);
-}
-
-int
-Test_Var_Array::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- // We provide the top level memory
- // the Any does not own any of these
- CORBA::Any in_arg (Param_Test::_tc_Var_Array,
- this->in_,
- 0);
-
- CORBA::Any inout_arg (Param_Test::_tc_Var_Array,
- this->inout_,
- 0);
-
- CORBA::Any out_arg (Param_Test::_tc_Var_Array,
- this->out_.inout (),
- 0);
-
- // add parameters
- param_list->add_value ("v1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("v2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("v3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value type
- retval->item (0, env)->value ()->replace (Param_Test::_tc_Var_Array,
- this->ret_.in (),
- 0, // does not own
- env);
- return 0;
-}
-
-CORBA::Boolean
-Test_Var_Array::check_validity (void)
-{
- if (this->compare (this->in_, this->inout_) &&
- this->compare (this->in_, this->out_.in ()) &&
- this->compare (this->in_, this->ret_.in ()))
- return 1;
- else
- return 0;
-}
-
-CORBA::Boolean
-Test_Var_Array::check_validity (CORBA::Request_ptr req)
-{
- ACE_UNUSED_ARG (req);
- return this->check_validity ();
-}
-
-CORBA::Boolean
-Test_Var_Array::compare (const Param_Test::Var_Array_slice *a1,
- const Param_Test::Var_Array_slice *a2)
-{
- for (CORBA::ULong i=0; i < Param_Test::DIM2; i++)
- {
- if (strcmp (a1[i].in (), a2[i].in ()))
- return 0;
- }
- return 1; // success
-}
-
-void
-Test_Var_Array::print_values (void)
-{
- ACE_DEBUG ((LM_DEBUG, "IN array\n"));
- this->print (this->in_);
- ACE_DEBUG ((LM_DEBUG, "INOUT array\n"));
- this->print (this->inout_);
- ACE_DEBUG ((LM_DEBUG, "OUT array\n"));
- this->print (this->out_.in ());
- ACE_DEBUG ((LM_DEBUG, "RET array\n"));
- this->print (this->ret_.in ());
-}
-
-void
-Test_Var_Array::print (const Param_Test::Var_Array_slice *a)
-{
- for (CORBA::ULong i = 0; i < Param_Test::DIM2; i++)
- {
- ACE_DEBUG ((LM_DEBUG, "\t\tElement #%d = %s\n",i, a[i].in ()));
- }
-}
diff --git a/TAO/tests/Param_Test/var_array.h b/TAO/tests/Param_Test/var_array.h
deleted file mode 100644
index 1f301485220..00000000000
--- a/TAO/tests/Param_Test/var_array.h
+++ /dev/null
@@ -1,91 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// var_array.h
-//
-// = DESCRIPTION
-// Tests arrays whose base types are of variable size
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_VAR_ARRAY_H
-#define PARAM_TEST_VAR_ARRAY_H
-
-#include "param_testCli.h"
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test var arrays
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-class Test_Var_Array
-{
-public:
- Test_Var_Array (void);
- // ctor
-
- ~Test_Var_Array (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
- // add args to NVList for DII
-
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-private:
- CORBA::Boolean compare (const Param_Test::Var_Array_slice *a1,
- const Param_Test::Var_Array_slice *a2);
- // compare arrays
-
- void print (const Param_Test::Var_Array_slice *a);
- // print an array
-
- char *opname_;
- // operation name
-
- Param_Test::Var_Array in_;
- // in parameter
-
- Param_Test::Var_Array inout_;
- // inout parameter
-
- Param_Test::Var_Array_var out_;
- // out parameter
-
- Param_Test::Var_Array_var ret_;
- // return value
-};
-
-#endif /* PARAM_TEST_VAR_ARRAY_H */
diff --git a/TAO/tests/Param_Test/var_struct.cpp b/TAO/tests/Param_Test/var_struct.cpp
deleted file mode 100644
index d1251ab4b7d..00000000000
--- a/TAO/tests/Param_Test/var_struct.cpp
+++ /dev/null
@@ -1,250 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// var_struct.cpp
-//
-// = DESCRIPTION
-// test variable sized structures
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "helper.h"
-#include "var_struct.h"
-
-ACE_RCSID(Param_Test, var_struct, "$Id$")
-
-// ************************************************************************
-// Test_Var_Struct
-// ************************************************************************
-
-Test_Var_Struct::Test_Var_Struct (void)
- : opname_ (CORBA::string_dup ("test_var_struct")),
- inout_ (new Param_Test::Var_Struct),
- out_ (new Param_Test::Var_Struct),
- ret_ (new Param_Test::Var_Struct)
-{
-}
-
-Test_Var_Struct::~Test_Var_Struct (void)
-{
- CORBA::string_free (this->opname_);
- this->opname_ = 0;
- // the other data members will be freed as they are "_var"s and objects
- // (rather than pointers to objects)
-}
-
-const char *
-Test_Var_Struct::opname (void) const
-{
- return this->opname_;
-}
-
-void
-Test_Var_Struct::dii_req_invoke (CORBA::Request *req)
-{
- req->invoke ();
-}
-
-int
-Test_Var_Struct::init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Generator *gen = GENERATOR::instance (); // value generator
-
- ACE_UNUSED_ARG (objref);
- ACE_UNUSED_ARG (env);
-
- // get some sequence length (not more than 10)
- CORBA::ULong len = (CORBA::ULong) (gen->gen_long () % 10) + 1;
-
- // set the length of the sequence
- this->in_.dummy1 = gen->gen_string ();
- this->in_.dummy2 = gen->gen_string ();
- this->in_.seq.length (len);
- // now set each individual element
- for (CORBA::ULong i=0; i < this->in_.seq.length (); i++)
- {
- // generate some arbitrary string to be filled into the ith location in
- // the sequence
- char *str = gen->gen_string ();
- this->in_.seq[i] = str;
- }
- return 0;
-}
-
-int
-Test_Var_Struct::reset_parameters (void)
-{
- this->inout_ = new Param_Test::Var_Struct; // delete the previous ones
- this->out_ = new Param_Test::Var_Struct;
- this->ret_ = new Param_Test::Var_Struct;
- return 0;
-}
-
-int
-Test_Var_Struct::run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env)
-{
- Param_Test::Var_Struct_out out (this->out_.out ());
- this->ret_ = objref->test_var_struct (this->in_,
- this->inout_.inout (),
- out,
- env);
- return (env.exception () ? -1:0);
-}
-
-int
-Test_Var_Struct::add_args (CORBA::NVList_ptr param_list,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env)
-{
- CORBA::Any in_arg (Param_Test::_tc_Var_Struct,
- &this->in_,
- 0);
-
- CORBA::Any inout_arg (Param_Test::_tc_Var_Struct,
- &this->inout_.inout (), // .out () causes crash
- 0);
-
- CORBA::Any out_arg (Param_Test::_tc_Var_Struct,
- &this->out_.inout (),
- 0);
-
- // add parameters
- param_list->add_value ("s1",
- in_arg,
- CORBA::ARG_IN,
- env);
-
- param_list->add_value ("s2",
- inout_arg,
- CORBA::ARG_INOUT,
- env);
-
- param_list->add_value ("s3",
- out_arg,
- CORBA::ARG_OUT,
- env);
-
- // add return value
- retval->item (0, env)->value ()->replace (Param_Test::_tc_Var_Struct,
- &this->ret_.inout (), // see above
- 0, // does not own
- env);
- return 0;
-}
-
-
-CORBA::Boolean
-Test_Var_Struct::check_validity (void)
-{
- CORBA::Boolean flag = 0;
- if ((!ACE_OS::strcmp (this->in_.dummy1, this->inout_->dummy1)) &&
- (!ACE_OS::strcmp (this->in_.dummy1, this->out_->dummy1)) &&
- (!ACE_OS::strcmp (this->in_.dummy1, this->ret_->dummy1)) &&
- (!ACE_OS::strcmp (this->in_.dummy2, this->inout_->dummy2)) &&
- (!ACE_OS::strcmp (this->in_.dummy2, this->out_->dummy2)) &&
- (!ACE_OS::strcmp (this->in_.dummy2, this->ret_->dummy2)) &&
- (this->in_.seq.length () == this->inout_->seq.length ()) &&
- (this->in_.seq.length () == this->out_->seq.length ()) &&
- (this->in_.seq.length () == this->ret_->seq.length ()))
- {
- flag = 1; // assume all are equal
- // lengths are same. Now compare the contents
- for (CORBA::ULong i=0; i < this->in_.seq.length () && flag; i++)
- {
- if (ACE_OS::strcmp (this->in_.seq[i], this->inout_->seq[i]) ||
- ACE_OS::strcmp (this->in_.seq[i], this->out_->seq[i]) ||
- ACE_OS::strcmp (this->in_.seq[i], this->ret_->seq[i]))
- // not equal
- flag = 0;
- }
- }
- return flag;
-}
-
-CORBA::Boolean
-Test_Var_Struct::check_validity (CORBA::Request_ptr req)
-{
- ACE_UNUSED_ARG (req);
- return this->check_validity ();
-}
-
-void
-Test_Var_Struct::print_values (void)
-{
- ACE_DEBUG ((LM_DEBUG,
- "\n*=*=*=*=*=*=*=*=*=*=\n"
- "in_.dummy1 = %s\n"
- "inout_.dummy1 = %s\n"
- "out_.dummy1 = %s\n"
- "ret_.dummy1 = %s\n",
- this->in_.dummy1.in (),
- this->inout_->dummy1.in (),
- this->out_->dummy1.in (),
- this->ret_->dummy1.in ()));
-
- ACE_DEBUG ((LM_DEBUG,
- "\n*=*=*=*=*=*=*=*=*=*=\n"
- "in_.dummy2 = %s\n"
- "inout_.dummy2 = %s\n"
- "out_.dummy2 = %s\n"
- "ret_.dummy2 = %s\n",
- this->in_.dummy2.in (),
- this->inout_->dummy2.in (),
- this->out_->dummy2.in (),
- this->ret_->dummy2.in ()));
-
- CORBA::ULong i;
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; i < this->in_.seq.length (); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in.seq : %s\n",
- i,
- (this->in_.seq[i]? (const char *)this->in_.seq[i]:"<nul>")));
- }
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->inout_.ptr () && (i < this->inout_->seq.length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "inout : %s\n",
- i,
- (this->inout_->seq[i]? (const char *)this->inout_->seq[i]:"<nul>")));
- }
- if (!this->inout_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\ninout struct does not exist\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->out_.ptr () && (i < this->out_->seq.length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- (this->out_->seq[i]? (const char *)this->out_->seq[i]:"<nul>")));
- }
- if (!this->out_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\nout struct is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
- for (i=0; this->ret_.ptr () && (i < this->ret_->seq.length ()); i++)
- {
- ACE_DEBUG ((LM_DEBUG,
- "Element #%d\n"
- "in : %s\n",
- i,
- (this->ret_->seq[i]? (const char *)this->ret_->seq[i]:"<nul>")));
- }
- if (!this->ret_.ptr ())
- ACE_DEBUG ((LM_DEBUG, "\nret struct is NUL\n"));
- ACE_DEBUG ((LM_DEBUG, "\n*=*=*=*=*=*=*=*=*=*=\n"));
-}
diff --git a/TAO/tests/Param_Test/var_struct.h b/TAO/tests/Param_Test/var_struct.h
deleted file mode 100644
index b4c15f33bfa..00000000000
--- a/TAO/tests/Param_Test/var_struct.h
+++ /dev/null
@@ -1,85 +0,0 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/Param_Test
-//
-// = FILENAME
-// var_struct.h
-//
-// = DESCRIPTION
-// Tests variable sized structures
-//
-// = AUTHORS
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#ifndef PARAM_TEST_VAR_STRUCT_H
-#define PARAM_TEST_VAR_STRUCT_H
-
-#include "param_testCli.h"
-
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-// test variable sized structs
-// =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
-
-class Test_Var_Struct
-{
-public:
- Test_Var_Struct (void);
- // ctor
-
- ~Test_Var_Struct (void);
- // dtor
-
- int run_sii_test (Param_Test_ptr objref,
- CORBA::Environment &env);
- // run the SII test
-
- int add_args (CORBA::NVList_ptr nvlist,
- CORBA::NVList_ptr retval,
- CORBA::Environment &env);
- // add args to NVList for DII
- const char *opname (void) const;
- // return operation name
-
- int init_parameters (Param_Test_ptr objref,
- CORBA::Environment &env);
- // set values for parameters
-
- int reset_parameters (void);
- // reset values for CORBA
-
- CORBA::Boolean check_validity (void);
- // check if results are valid
-
- CORBA::Boolean check_validity (CORBA::Request_ptr req);
- // check if results are valid. This is used for DII results
-
- void print_values (void);
- // print all the values
-
- void dii_req_invoke (CORBA::Request *);
- // invoke DII request with appropriate exception handling.
-
-private:
- char *opname_;
- // operation name
-
- Param_Test::Var_Struct in_;
- // in parameter
-
- // these need memory management
- Param_Test::Var_Struct_var inout_;
- // inout parameter
-
- Param_Test::Var_Struct_var out_;
- // out parameter
-
- Param_Test::Var_Struct_var ret_;
- // return value
-};
-
-#endif /* PARAM_TEST_VAR_STRUCT_H */